"gavin.king(a)jboss.com" wrote : You need a JSF converter.
Are you sure, Gavin?
I'm far from being a JSF master, but I don't see yet how to do that. My problem is
the input side rather than the output/display side.
Consider ClassE (the embedded Object) containing more than one instance variable (which is
a bit closer to my real world problem). Let's say ClassE has 2 instance variables
like
int classEVar1
String classEVar2 // <-- new
The conversion from the ClassE object to Strings seems to be quite straightforward. I
could pass the ClassE instance to 2 different converters, one to convert classEVar1 to a
String and another one to convert (extract) classEVar2. Quite inconvenient since I need 2
converters, but that can be done.
However, I don't know how to deal with the input fields since 2 different input fields
are comprising a single ClassE instance. You know, if I follow the approach with the 2
different converters from above, they will produce 2 different ClassE objects, one
containing classEVar1 and another one classEVar2. That won't work.
Hence it looks like I need a converter which is able to handle multiple input Strings and
produces a single ClassE Object. Is that possible at all?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958709#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...