-
1. Re: Problem with s:convertEntity
seto May 5, 2007 5:07 AM (in response to seto)I've tried the entity-query to be running sucessful.
So it seem that it is caused by the type. The converter seems to have the problem of judge the type of the object. What should I do to make it run? -
2. Re: Problem with s:convertEntity
seto May 5, 2007 5:12 AM (in response to seto)I don't want to use the entity-query because of the limitation of it.
-
3. Re: Problem with s:convertEntity
seto May 5, 2007 5:34 AM (in response to seto)Oh, I see. The @DataModel outjected the List as DataModel, so the entityConverter can't judge the type. Should I add an issue for s:convertEntity DataModel not supported?
-
4. Re: Problem with s:convertEntity
pmuir May 5, 2007 6:54 AM (in response to seto)s:convertEntity doesn't need to know about DataModels, and s:selectItems, which does need to, does know about them.
What version of Seam? Add a message component to the h:selectOneMenu and see why it's not submitting. -
5. Re: Problem with s:convertEntity
seto May 5, 2007 9:40 AM (in response to seto)1.2.1 GA. The reason is 'Error: "_id19": ????.', translating into English as 'Error:"_id19":invalid option.
-
6. Re: Problem with s:convertEntity
seto May 5, 2007 9:52 AM (in response to seto)I thought I'm misunderstanding it. It isn't caused by datamodel. I use the @Out error again. I'm confused.
-
7. Re: Problem with s:convertEntity
seto May 5, 2007 9:56 AM (in response to seto)The field is annotated as below. I forgot to show here.
@SuppressWarnings("unused") @DataModel private List<Category> categoryList;
-
8. Re: Problem with s:convertEntity
pmuir May 5, 2007 9:59 AM (in response to seto)is this happening inside a long running conversation?
-
-
11. Re: Problem with s:convertEntity
seto May 5, 2007 11:19 AM (in response to seto)Thanks. I make it into long-running conversation and it runs.
-
12. Re: Problem with s:convertEntity
fhh May 5, 2007 12:26 PM (in response to seto)Why is the conversation approach recommended.
I thought entites do require overwriting equals() anyway because it is used in many other locations as well.
Regards
Felix -
-
14. Re: Problem with s:convertEntity
fhh May 5, 2007 8:32 PM (in response to seto)Exactly that was my point.
I was refering to the wiki page:
Strongly Recommended Ensure that you are in a long-running conversation that spans the both the select list creation and the submission of the form.
I would strongly recommend to implement a proper equals() method (by comparing ids and using object identity only if ids are null.).
Regards
Felix