[Seaside] build drop-down select list when clicked

bobn at rogers.com bobn at rogers.com
Wed Feb 27 16:52:51 UTC 2013

Is there a way to build the 'select' list when the drop-down button is pressed?

Our application uses drop-down lists for options that have a short list to pick from (longer lists use a lightbox list prompt).
In most cases, the list of values is not needed, since the user is not going to change the selection. 
So, I'd prefer to defer getting the list to when the user asks for it (round trip time to get the list is less than 50ms).
Getting the data is not expensive, but including it in the initial data retrieval for the full view is a coding hassle. 

I've tried various #onClick: code, like loading a new rendering of the select component with the list populated, but no luck.

html select
onClick: ("get the list and display it");
list: (Array with: initialSelection); "for initial display"
selected: initialSelection; 
callback: [:value | ... ]
Thanks for any help,
Bob Nemec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130227/1e9a6fe8/attachment.htm

More information about the seaside mailing list