Populating select tag list with result of static Method
Skip Walker <[email protected]> Tue, 19 Dec 2006 14:59:51 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <26474778.1166562036308.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
I have a class (SearchControl) that has a static method (getSearchCriteriaOptions()) that returns a Map of the options I would like displayed in the select tag.
I can't figure out how to get the list for the select tag to display use the Map that is the result of the SearchControl.getSearchCriteriaOptions() method to populate the select options.
I have:
<ww:select name="searchCriteria"
headerKey="startsWith" headerValue="starts with"
list=" "
required="false"
/>
I tried
list="@SearchControl@getSearchCriteriaOptions"
list="%{@SearchControl@getSearchCriteriaOptions}"
list="%{SearchControl.getSearchCriteriaOptions}"
I continue to get an error the following error:
"tag select, field list: You must specify a collection/array/map/enumeration/iterator. Example: people or people.{name}"
Obviously, I'm not on the right track.
Any suggestions on how to populate this select list from a static method are appreciated.
Thanks,
Skip Walker
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=54375&messageID=108943#108943
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]