Hi,
Is is possible to put h:selectOneMenu component in data table when value of selectitems of
selectOneMenu is list created by call to bean method and parameter of that function is
row of datatable. When page is displayed list of selectOneMenu component is populated
correctly only for first row of datatable. While debuging I noticed that bean's method
is called only ones.
SelectOneMenu in other rows are populated with same value as first one.This is fragment
of my code:
| <t:dataTable value="#{productPropertyList}"
var="productProperty">
|
| <t:column>
| <h:outputText
value="#{productProperty.name}"></h:outputText>
| </t:column>
| <t:column>
| <h:selectOneMenu id="selectStatus"
| value="#{adminNewOrderAction.property}">
| <s:convertEntity />
| <s:selectItems var="item" label="#{item.name}"
noSelectionLabel="------------"
| value="#{adminNewOrderAction.getPropertyValues(productProperty)}"
/>
| </h:selectOneMenu>
|
| </t:column>
| </t:dataTable>
|
Best regards,
mb
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079265#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...