Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 975128

Summary: Seam 2.3 seamdiscs example has issues with selectOneChoice tag of trinidad library
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Ron Šmeral <rsmeral>
Component: SeamAssignee: Marek Novotny <mnovotny>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Marek Schmidt <maschmid>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: amelicha, snagarwa
Target Milestone: ---   
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
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>.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-22 13:14:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
server log none

Description Ron Šmeral 2013-06-17 16:37:16 UTC
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.

Comment 1 Marek Novotny 2013-06-20 19:44:09 UTC
Was seamdiscs broken in 2.2.0?

Comment 2 Marek Schmidt 2013-06-21 10:10:55 UTC
Yes, it seems this is not a new regression. I can reproduce the problem also with WFK 2.2

Comment 4 Sneha 2013-07-04 11:33:27 UTC
Updated doc text.

Comment 5 Marek Novotny 2013-07-22 13:14:33 UTC
migrated to https://issues.jboss.org/browse/WFK2-86