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

Seam2.3 @DataModel & @DataModelSelection doesn't work with richfaces4 dataTable

    XMLWordPrintable

    Details

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

      1. Create a seam-gen war project
      2. use "seam add-identity-management" to add identity management
      3. deploy the app and add users in the identity management user manager
      4. Notice attempting to edit a user always selects the last user, instead of the selected user, as the view/useradmin/usermanager.xhtml uses richfaces4 dataTable and the userSearch.selectedUser uses @DataModelSelection

      Show
      1. Create a seam-gen war project 2. use "seam add-identity-management" to add identity management 3. deploy the app and add users in the identity management user manager 4. Notice attempting to edit a user always selects the last user, instead of the selected user, as the view/useradmin/usermanager.xhtml uses richfaces4 dataTable and the userSearch.selectedUser uses @DataModelSelection
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Documented as Known Issue
    • Release Notes Text:
      Hide
       The UIDataTable component (the <rich:dataTable> element) shipped with RichFaces 4 does not extend the JSF UIData class. As a consequence, rendering of Seam components annotated with @DataModel and @DataModelSelection inside a UIDataTable does not work as expected. As a workaround, use the JSF DataTable (the <h:dataTable> element) instead of the Richfaces UIDataTable.
      Show
       The UIDataTable component (the <rich:dataTable> element) shipped with RichFaces 4 does not extend the JSF UIData class. As a consequence, rendering of Seam components annotated with @DataModel and @DataModelSelection inside a UIDataTable does not work as expected. As a workaround, use the JSF DataTable (the <h:dataTable> element) instead of the Richfaces UIDataTable.

      Description

      Description of problem:

      RichFaces 4 UIDataTable doesn't extend the JSF UIData class and so it won't get noticed by Seam components (org.jboss.seam.ui.component.UISeamCommandBase ) to be able to render the required data for the @DataModel & @DataModelSelection functionality.

      This is a regression from RichFaces 3.x + Seam 2.2, as rf3 dataTable worked with Seam @DataModel & @DataModelSelection annotations.

      Version-Release number of selected component (if applicable):
      jboss-seam-2.3.0.Final-redhat-1

      Actual results:
      @DataModelSelection doesn't work with RichFaces4 datatable

      Expected results:
      @DataModelSelection should work with RichFaces4 datatable

      Additional info:

      There are two possible fixes:
      1. change richfaces4 UIDataTable to extend the JSF2 UIData class
      2. change org.jboss.seam.ui.component.UISeamCommandBase to also look for richfaces UIDataAdaptor classes, which would require a dependency on richfaces4 apis in the seam ui module.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                maschmid Marek Schmidt
                Writer:
                Sneha Agarwal Kumar
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: