You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/05/26 16:06:15 UTC
DO NOT REPLY [Bug 29228] New: -
Provide an option to build an EnumPropertySelectionModel with a blank option
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29228>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29228
Provide an option to build an EnumPropertySelectionModel with a blank option
Summary: Provide an option to build an EnumPropertySelectionModel
with a blank option
Product: Tapestry
Version: 3.0
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Framework
AssignedTo: tapestry-dev@jakarta.apache.org
ReportedBy: pazu@animegaiden.com.br
It's just a commom idiom to build a PropertySelectionModel including a blank
option, so one of the two scenarios can be achieved:
1) Make the field optional. It may be left blank, but if it's to be informed by
the user, should be one of the options in the enum, or
2) Force the user to choose an option without defaulting to the first one in the
list.
This could be implemented as an extra boolean argument to the
EnumPropertySelectionModel, something like:
EnumPropertySelectionModel(Enum[] options, ResourceBundle bundle, boolean
includeBlankOption)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org