When Trinidad tag selectOneChoice is used on an Entity that has a @OneToMany relationship with another Entity, the relationship is broken because the Entity does not get the relationship key. As a consequence, you cannot perform edit and save operations on the disc.xhtml file due to the 'java.lang.NumberFormatException: For input string: "org.jboss.seam.example.seamdiscs.model.Band@3dd00249"' exception. To work around this issue, replace the <tr:selectOneChoice> tag in the disc.xhtml file with the standard JSF tag <h:selectOneMenu>.
Created attachment 762101[details]
server log
Description of problem:
The seamdiscs example is broken in one use case due to a problem in integration with the trinidad library.
Version-Release number of selected component (if applicable):
WFK 2.3.0.ER1
Seam 2.3.1.Final-redhat-2
Steps to Reproduce:
1. Build and deploy the seamdiscs example to an EAP 6.1 instance
2. Go to http://localhost:8080/seam-seamdiscs
3. Log in as administrator/administrator
4. Click Discs > [any disc] > Save
Actual results:
An error page with the text "Something bad happened" is shown. Server log contents are attached.
Expected results:
Disc should get saved and the discs page be shown.
Additional info:
If the <tr:selectOneChoice> tag in the disc.xhtml file is replaced with its JSF counterpart <h:selectOneMenu>, the problem doesn't appear.