I think the following 3 threads will be quite useful.
Well, maybe it is seam-related ;)
Does this need to be a FAQ or Wiki page?
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,
have you pehaps got @InterceptType(ALWAYS) at the top of your class?
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.
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.
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.
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.
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...
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.