-
1. Re: selectOneMenu : Error finding Converter for component wi
lcoetzee Nov 11, 2005 1:46 AM (in response to gavin.king)Hi,
I think the following 3 threads will be quite useful.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71182
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70558
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70329
Regards
Louis -
2. Re: selectOneMenu : Error finding Converter for component wi
gavin.king Nov 11, 2005 2:05 AM (in response to gavin.king)Well, maybe it is seam-related ;)
Does this need to be a FAQ or Wiki page? -
3. Re: selectOneMenu : Error finding Converter for component wi
henderson_mk Nov 11, 2005 6:14 AM (in response to gavin.king)Yeah I think so.
the selectItems are just tricky to work with
as suggested above...this is a great pattern for it:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=71182
+1 from me. -
4. Re: selectOneMenu : Error finding Converter for component wi
js8523 Nov 11, 2005 6:50 AM (in response to gavin.king)Hi All
Thankyou for your posts, they have been most helpful. However should this be the behaviour if the item I want to set is just a string field. I do not want a select list to select an object from a list, although the pattern quoted would perform this wonderfully, it just seems a bit overbaked for selecting from a list of strings. Surely I don't need a convertor to take the string selection into a string field in my entity bean.
Many thanks again,
James -
5. Re: selectOneMenu : Error finding Converter for component wi
henderson_mk Nov 11, 2005 9:09 AM (in response to gavin.king)have you pehaps got @InterceptType(ALWAYS) at the top of your class?
-
6. Re: selectOneMenu : Error finding Converter for component wi
js8523 Nov 11, 2005 9:50 AM (in response to gavin.king)Hi
I don't have @Intercept(ALWAYS) set in any of the relevant classes.
Although I presume your are talking about my statful session bean, and not my seam enabled entity bean?
The value binding is actually to a entity bean property of a property of a property of the head entity bean.
I am now presuming this is a general jsf problem I am having (using myfaces 1.1.1 currently)
I can't help but feel it is related to the depth of the property I am trying to set from the selectOneMenu.
Many thanks,
James -
7. Re: selectOneMenu : Error finding Converter for component wi
henderson_mk Nov 11, 2005 10:42 AM (in response to gavin.king)hmm.. okay... thats my bright idea scuppered!! :-)
I was having some diffs with a pojo class when that was set at the top of the class. Previously (without that) I was about to use Integer objects to set on the jsf page... but when I was using that to intercept a call to populate a selectMany it spat out the same error as you're seeing on submitting.
ah well...sorry I can't be of more help. -
8. Re: selectOneMenu : Error finding Converter for component wi
patrick_ibg Nov 11, 2005 7:42 PM (in response to gavin.king)"js8523" wrote:
Surely I don't need a convertor to take the string selection into a string field in my entity bean.
Correct. However, I think you wanted to set a Long value into a long field, in which case you need a Long converter (not sure but I think JSF might be able to resolve this). If the Long field happens to be an @Id field of an entity, then you will need something like the LookupConverter pattern discussed in the related posts. -
9. Re: selectOneMenu : Error finding Converter for component wi
patrick_ibg Nov 11, 2005 11:35 PM (in response to gavin.king)"sj8523" wrote:
It happens that there are some selectonemenu's that don't give this method, but all the ones that do have a long value expression (e.g.
...
#{contact.person.requirements.parking}
...
Oops. Maybe I misunderstood your phrase "long value"... Have you tried bijecting "requirements" to make this expression shorter? Somehow I doubt that's the problem... -
10. Re: selectOneMenu : Error finding Converter for component wi
js8523 Nov 14, 2005 10:57 AM (in response to gavin.king)Hi All
thanks henderson, you sent me along the write route, it was that the embeded object was null, but there was no complaint apart from the conversion error.
Thank you all, I shall post something on the myfaces list to enhance their debugging error reporting.
Many thanks all, and sorry for posting stuff that was unrelated to Seam in the end. But I did learn a lot.
James