tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "Tapestry5DisplayableSelectionModel" by DanielJue
Date Mon, 06 Aug 2007 15:29:32 GMT
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message