Greetings,
From my view:
<h:selectOneMenu value="#{partyConnection.client}" id="connection_client"> <s:selectItems var="c" value="#{connectionClients.resultList}" label="#{c.name}" noSelectionLabel="Please Select..."/> <s:convertEntity /> </h:selectOneMenu> <h:inputText value="#{partyConnection.value}" id="connection_value" required="true" /> <h:commandButton value="Add" action="#{companyHome.addConnection}"/>
When I submit the form I get the following:
sourceId=j_id25:connection_client[severity=(ERROR 2), summary=(j_id25:connection_client: Validation Error: Value is not valid), detail=(j_id25:connection_client: Validation Error: Value is not valid)]
I think s:convertEntity chokes because @Id attribute of each item from {connectionClients.resultList} collection is of String type (PK is a string for a lookup table).
Is this a limitation of s:convertEntity? Is there a work around?
Thank you.
See this FAQ.