[jboss-user] [JBoss Seam] - selectOneMenu in dataTable

mladen.babic do-not-reply at jboss.com
Wed Aug 29 12:29:24 EDT 2007


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#4079265

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079265



More information about the jboss-user mailing list