aspose file tools*
The moose likes Struts and the fly likes html:options tag for iterating an VO array... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:options tag for iterating an VO array..." Watch "html:options tag for iterating an VO array..." New topic
Author

html:options tag for iterating an VO array...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi there !
I have to build a combobox dinamically from a VO array built in the Action. Each of the array objects has the properties I need for the combo, that is , 'id' and 'label' . These objects are VO�s got from the database and I just cannot understand how to configure the <html ptions> to get them properly . My code is :
<html:select property="code" styleClass="FIELD" styleId="select" >
<html ptions collection = "vosArray" property = "id" labelProperty = "label" />
</html:select>
As the tag iterates through the array, it is supposed to get each object (a VO called ParameterVO ) and then show the properties described above... but... I just can�t do this...
Any idea ?
Thanx !
F�bio
 
jQuery in Action, 2nd edition
 
subject: html:options tag for iterating an VO array...