-
1. Re: Can't get s:selectItems and s:convertEntity to work
fhh Apr 5, 2007 9:05 AM (in response to waynebagguley)You have no Seam managed entityManager.
Regards
Felix -
2. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 9:51 AM (in response to waynebagguley)Ok, thanks for that? I've managed to find out how to configure the Seam managed persistence context and now I'm not getting the error any more but now the method attached to the action of the command button is not getting called and I'm getting no errors whatsoever in the logs...
:( -
3. Re: Can't get s:selectItems and s:convertEntity to work
pmuir Apr 5, 2007 9:52 AM (in response to waynebagguley)Make sure you have a messages component on your page.
-
4. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 10:12 AM (in response to waynebagguley)I added <h:messages/> and now I get "Validation error" on the page but I've not set up any validation for the form.
-
5. Re: Can't get s:selectItems and s:convertEntity to work
pmuir Apr 5, 2007 10:15 AM (in response to waynebagguley)What environment are you running in? JSF version?
-
6. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 10:19 AM (in response to waynebagguley)JBoss 4.0.5.GA
Seam 1.2.1.GA
MyFaces 1.1.5
Java 5
Windows XP -
7. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 11:15 AM (in response to waynebagguley)Could this be a bug in MyFaces?
-
8. Re: Can't get s:selectItems and s:convertEntity to work
pmuir Apr 5, 2007 11:17 AM (in response to waynebagguley)Hmm, I would have expected that to be
Validation Error: value is not a valid option
- anyway, make sure you have done this
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ -
9. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 11:45 AM (in response to waynebagguley)This bit sounds useful:
Your component may not have been found (see another FAQ) or the errors may be hidden. The JSF lifecycle consists of a number of phases; in some of these phases errors can occur which don't cause an exception to be thrown and logged (at least at the default logging level for JBoss AS) - for example conversion errors, validation errors, model update errors. These can be viewed on the page using the <h:messages /> tag. You can also put in exception breakpoints for ConverterException and ValidatorException to get more details on why the phase errored.
However, it doesn't tell you how to set up the exception breakpoints. -
10. Re: Can't get s:selectItems and s:convertEntity to work
pmuir Apr 5, 2007 11:51 AM (in response to waynebagguley)I meant the last item on convertEntity
-
11. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 5, 2007 11:53 AM (in response to waynebagguley)Oh right, I already had a long running conversation that spans the list creation and the form submission. I'm going to try and do some debugging.
-
12. Re: Can't get s:selectItems and s:convertEntity to work
fhh Apr 5, 2007 1:58 PM (in response to waynebagguley)No, check the equals() implementation first.
Regards
Felix -
13. Re: Can't get s:selectItems and s:convertEntity to work
waynebagguley Apr 6, 2007 6:29 AM (in response to waynebagguley)Fantastic! All I needed to do was to implement the equals method and it now calls the action method correctly.
Many thanks.