Dashboard > WebWork 1 > WebWork CookBook > Select Tag Tips
  WebWork 1 Log In View a printable version of the current page.  
  Select Tag Tips
Added by Francisco Hernandez, last edited by Hani Suleiman on Apr 25, 2004  (view change)
Labels: 
(None)

ever happen to have a List of Maps that you would like to render as a select tag in html?

just make sure your action returns a List of Maps

heres how to do it:

<ui:select label="'Category'" name="'categoryId'" list="categorys" 
listKey="'[OS:\'id\']'" listValue="'[OS:\'name\']'"/>

what about one huge Map?

<ui:select label="'State'" name="'stateId'" list="states/keySet" 
               listKey="'.'" listValue="'states[.]'"/>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators