I am trying to bind an input box to an entry in a multivalue field, Something like this:
<xp:repeat id="repeat6" rows="30" var="rows" indexVar="ind">
<xp:this.value><![CDATA[#{javascript:order.getItemValue("ArtNo")}]]></xp:this.value>
<xp:inputText id="inputText9" style="width:20px" value="#{order.ArtQuantity[ind]}">
</xp:repeat>
When there are two values in ArtNo field it works but not when there is a single value. My guess here is that when there is only one entry it is no longer an array as I get the this error:
Error getting property '0' from bean of type java.lang.Double - PropertyNotFoundException Error, cannot locate component:
how can I fix my code so that the EL code order.ArtQuantity[ind] always work, i.e is always an array?
thanks
Thomas