"[EMAIL PROTECTED]" wrote : Dan is correct. However 2.0.1 allows you two options to customize the value. If you don't use the entity converter, use the itemValue attribute on s:selectItems. If you do, you need to implement a custom entity loading strategy. I'll blog about that soon.
What do you mean by the "If you don't use the entity converter, use the itemValue attribute on s:selectItems"? I'm trying to do a case of an entity | @Entity | public class User { | @Id @GeneratedValue | private Integer id; | private String code; | private String name | ... getters/setters/hashCode/equals | and would like to do something like | <f:selectOneMenu value="#{userBean.user.code}" required="true"> | <s:selectItems | value=#{userBean.userList} | var="user" | label="#{user.name}" | itemValue="#{user.code}" | > | <s:convertEntity/> | </selectItems> | </f:selectOneMenu> | where userBean.userList is a List should this be doable (displaying name, selecting code) with convertEntity? I keep getting "Value is required" on it despite of equals/hashcode... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127339#4127339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127339 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user