ICEfaces
  1. ICEfaces
  2. ICE-7952

The DataTable examples with component bindings throw duplicate id exception when running on MyFaces (was: The DataTable Row State example throws duplicate id exception when running as a portlet with MyFaces)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, EE-3.0.0.GA, 3.1.0.BETA1
    • Fix Version/s: 3.2
    • Labels:
      None
    • Environment:
      ICEfaces 3 ACE Liferay portlet MyFaces
    • Assignee Priority:
      P1
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Set the following context parameter to prevent MyFaces from checking for duplicates:


          <context-param>
              <param-name>org.apache.myfaces.CHECK_ID_PRODUCTION_MODE</param-name>
              <param-value>false</param-value>
          </context-param>
      Show
      Set the following context parameter to prevent MyFaces from checking for duplicates:     <context-param>         <param-name>org.apache.myfaces.CHECK_ID_PRODUCTION_MODE</param-name>         <param-value>false</param-value>     </context-param>

      Description

      When testing the DataTable Row State demo on Liferay 6 with MyFaces, I was able to get it to fail with a duplicate ID exception. Other Data Table examples also show this behaviour but I haven't test them all. It can be done in a couple of different ways:

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #40966 Thu May 08 15:24:58 MDT 2014 art.zambrano ICE-9542 modified ace:dataTable Grouping demo to use a DataTable binding either in a request-scoped bean or in a window-scoped bean, depending whether MyFaces is being used or not; this is related to ICE-7952
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableGrouping.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableGrouping.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableBindings.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31503 Tue Oct 16 10:20:50 MDT 2012 nils.lundquist ICE-7952 - Fix MyFaces compatibility. ace:dataTable showcase example now access component binding via RequestScoped bean. Corrected EL typo.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableFind.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31485 Mon Oct 15 17:17:23 MDT 2012 nils.lundquist ICE-7952 - Fix MyFaces compatibility. ace:dataTable showcase example now access component binding via RequestScoped bean.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableFind.xhtml
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableFind.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableRowState.java
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableBindings.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableGrouping.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableRowState.xhtml
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableGrouping.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29369 Thu Jun 07 12:41:14 MDT 2012 deryk.sinotte ICE-7952: overridge checking for duplicate ids in MyFaces
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase-portlet/src/main/webapp/WEB-INF/web.xml

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: