• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" />
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 !
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!