Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-86

Seam 2.3 seamdiscs example has issues with selectOneChoice tag of trinidad library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.0.GA, 2.4.0.GA, 2.5.0.GA, 2.6.0.ER1, 2.7.0.GA
    • Fix Version/s: 2.7.0.GA
    • Component/s: Seam 2
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      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

      Show
      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
    • Release Notes Docs Status:
      Documented as Known Issue
    • Release Notes Text:
      Hide
      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 following exception:
      java.lang.NumberFormatException: For input string: "org.jboss.seam.example.seamdiscs.model.Band@3dd00249"
      To work around this issue, replace the <tr:selectOneChoice> tag in the disc.xhtml file with the standard JavaServer Faces tag <h:selectOneMenu>.
      Show
      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 following exception: java.lang.NumberFormatException: For input string: " org.jboss.seam.example.seamdiscs.model.Band@3dd00249 " To work around this issue, replace the <tr:selectOneChoice> tag in the disc.xhtml file with the standard JavaServer Faces tag <h:selectOneMenu>.

      Description

      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

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                rsmeral Ron Šmeral
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: