Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by DanielJue: http://wiki.apache.org/tapestry/Tapestry5DisplayableSelectionModel ------------------------------------------------------------------------------ Another new feature I worked in helps solve two problems: - 1. Many times you want to inform the user they need to select something, without presenting error messages to them. This is especially true if they've never visited the page before. + 1. Many times you want to inform the user they need to select something, without presenting error messages to them. This is especially true if they've never visited the page before. You don't want your users to think they've already selected something, unless you are setting it for them. - 2. If you only have one item in the list, you can't select it if you use the "onchange" event to submit the enclosing form. The value will be displayed already, so "onchange" won't fire! + 2. If you only have one item in the list, you can't select it if you use the "onchange" event to submit the enclosing form. The value will be displayed already, so "onchange" won't fire! This is pertinent if you don't plan to have a submit button for your select box. For problem 1, HLS suggested using Groups. Groups are nice in that they allow like options to be grouped together under a select component. They also provide indention and look slick. However, the label for the group is not selectable, so it doesn't help with the second issue. (This implementation still lets you supply !GroupModels if you want!) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
