This content has been marked as final.
Show 3 replies
-
1. Re: h:selectOneMenu - argument type mismatch
notify Nov 15, 2009 12:21 PM (in response to notify)If I remove the converter;
<s:convertEntity/>
I get the entity 'name' not the value passed to my EJB and persisted to the table;
com.notifypinpoint.entity.UserTitles@794a09
Is there a problem with <s:convertEntity/> ? -
2. Re: h:selectOneMenu - argument type mismatch
notify Nov 16, 2009 2:46 PM (in response to notify)Getting nowhere with;
<s:convertEntity/>
So I wrote custom converter.
The list now displays as expected and the converter pulls off the correct value selected from the list. However when it is returned to the XHTML page I get the error message;
“value is not valid” display on the page.
I solved this before my overwriting the equals method in the Entity Bean with a return true, this time it doesn’t help. I also tried the other suggestion from;
http://seamframework.org/Community/EntityConverterValueIsNotValid
I only have one Persistence Context in my components.xml
When I put a debug statement in the equals method it appears not to be calling it!
Been on this for four days now and getting no where, any suggestions please. -