Hello everyone.
I'm trying to use the convertEntity tag from
Jboss Seam in a <rich:comboBox> but I'm cannot manage to make it work.
I've read at the documentation that:
You must use Seam managed transactions (see Section 9.2, “Seam managed transactions”) with <s:convertEntity />.
So firstly I've worked on that... As I'm not using
EJB and JTA transactions I've added this:
to my components.xml.
Then, I've inserted this
to my components.xml. I don't really understand why, but it was in the docs.
My .xhtml looks like this:
What I got as a result is a combobox that displays correctly, however, when I submit the form, I get the following error:
java.lang.NumberFormatException: For input string: ""
I assume that the value from the id is not being passed to the entity converter...
Has anyone had this problem before?