Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2984

Unable to see f:ajax DOM updates in the primefaces-applicant-portlet after the form is submitted with empty fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: mojarra-2.3.0-m07
    • Fix Version/s: None
    • Component/s: Mojarra
    • Labels:
      None

      Description

      Similar to FACES-2985, this problem was introduced to Mojarra in version 2.3.0-m07. It is not reproducible in version 2.3.0-m06.

      Steps to Reproduce:

      1. Install the Pluto 3.0+Tomcat bundle
      2. Install javax.faces-2.3.0-m07.jar to tomcat/lib (note that the ServletContainerIntializer must first be removed from the jar)
      3. Deploy the primefaces-applicant-portlet
      4. Visit the following URL: http://localhost:8080/pluto/portal/primefaces-applicant
      5. Click "Submit" and verify that there are "Value is required" validation failures for all of the fields
      6. Enter in a value for the "First Name" field and press the TAB key

      Expected Results
      The "Value is required" validation failure should disappear.

      Actual Results
      The "Value is required" validation failure remains.

        Issue Links

          Activity

          Hide
          vernon.singleton Vernon Singleton added a comment -
          $ git bisect bad
          3b1d1e2a1330c6789f566f36597b6b9fcb81d509 is the first bad commit
          
          commit 3b1d1e2a1330c6789f566f36597b6b9fcb81d509
          Author: Bauke Scholtz <bauke.scholtz@kizitos.com>
          Date:   Wed Jul 6 16:25:30 2016 +0200
          
              https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790
              Collected predefined postback params in internal helper enum.
              Replace hardcoded predefined postback params.
              Make sure all predefined postback params are namespaced when UIViewRoot is instance of NamingContainer.
          
          jsf-ri/src/main/java/com/sun/faces/application/ViewHandlerImpl.java
          jsf-ri/src/main/java/com/sun/faces/application/view/MultiViewHandler.java
          jsf-ri/src/main/java/com/sun/faces/context/PartialViewContextImpl.java
          jsf-ri/src/main/java/com/sun/faces/context/RequestParameterMap.java
          jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java
          jsf-ri/src/main/java/com/sun/faces/lifecycle/ClientWindowImpl.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/ClientSideStateHelper.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/RenderKitUtils.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/ResponseStateManagerImpl.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/ServerSideStateHelper.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/StateHelper.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/ButtonRenderer.java
          jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/HtmlBasicRenderer.java
          
          :040000 040000 198098432b1a3dd07abf097448b1d0fe6cbfe386 ba976a3b0c10bc1fed0232c01a832336b694de90 M	jsf-ri
          Show
          vernon.singleton Vernon Singleton added a comment - $ git bisect bad 3b1d1e2a1330c6789f566f36597b6b9fcb81d509 is the first bad commit commit 3b1d1e2a1330c6789f566f36597b6b9fcb81d509 Author: Bauke Scholtz <bauke.scholtz@kizitos.com> Date: Wed Jul 6 16:25:30 2016 +0200 https: //java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790 Collected predefined postback params in internal helper enum . Replace hardcoded predefined postback params. Make sure all predefined postback params are namespaced when UIViewRoot is instance of NamingContainer. jsf-ri/src/main/java/com/sun/faces/application/ViewHandlerImpl.java jsf-ri/src/main/java/com/sun/faces/application/view/MultiViewHandler.java jsf-ri/src/main/java/com/sun/faces/context/PartialViewContextImpl.java jsf-ri/src/main/java/com/sun/faces/context/RequestParameterMap.java jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java jsf-ri/src/main/java/com/sun/faces/lifecycle/ClientWindowImpl.java jsf-ri/src/main/java/com/sun/faces/renderkit/ClientSideStateHelper.java jsf-ri/src/main/java/com/sun/faces/renderkit/RenderKitUtils.java jsf-ri/src/main/java/com/sun/faces/renderkit/ResponseStateManagerImpl.java jsf-ri/src/main/java/com/sun/faces/renderkit/ServerSideStateHelper.java jsf-ri/src/main/java/com/sun/faces/renderkit/StateHelper.java jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/ButtonRenderer.java jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/HtmlBasicRenderer.java :040000 040000 198098432b1a3dd07abf097448b1d0fe6cbfe386 ba976a3b0c10bc1fed0232c01a832336b694de90 M jsf-ri
          Hide
          vernon.singleton Vernon Singleton added a comment -

          FWIW: the last good commit was dd96d7e456f429a75f0ba4040e084c63e8d5ae6d

          Show
          vernon.singleton Vernon Singleton added a comment - FWIW: the last good commit was dd96d7e456f429a75f0ba4040e084c63e8d5ae6d
          Hide
          vernon.singleton Vernon Singleton added a comment -

          Here is a diff of the submitted form data in the post (working on left, broken on the right)

          javax.faces.encodedURL:/pluto/portal/primefa  |	Pluto_com_liferay_faces_demo_primefaces_appl
          ces-applicant/__pdcom.liferay.faces.demo.pri  |	icant_portlet_1__491984052_0_:javax.faces.en
          mefaces.applicant.portlet.1%21-491984052%7C0  |	codedURL:/pluto/portal/primefaces-applicant/
          ;0/__rs0/__clcacheLevelPage/__rv0;_facesView  |	__pdcom.liferay.faces.demo.primefaces.applic
          IdResource:0x3WEB-INF0x3views0x3portletViewM  |	ant.portlet.1%21-491984052%7C0;0/__rs0/__clc
          ode.xhtml/__rv0;_jsfBridgeAjax:true	      |	acheLevelPage/__rv0;_facesViewIdResource:0x3
          					      >	WEB-INF0x3views0x3portletViewMode.xhtml/__rv
          					      >	0;_jsfBridgeAjax:true
          Show
          vernon.singleton Vernon Singleton added a comment - Here is a diff of the submitted form data in the post (working on left, broken on the right) javax.faces.encodedURL:/pluto/portal/primefa | Pluto_com_liferay_faces_demo_primefaces_appl ces-applicant/__pdcom.liferay.faces.demo.pri | icant_portlet_1__491984052_0_:javax.faces.en mefaces.applicant.portlet.1%21-491984052%7C0 | codedURL:/pluto/portal/primefaces-applicant/ ;0/__rs0/__clcacheLevelPage/__rv0;_facesView | __pdcom.liferay.faces.demo.primefaces.applic IdResource:0x3WEB-INF0x3views0x3portletViewM | ant.portlet.1%21-491984052%7C0;0/__rs0/__clc ode.xhtml/__rv0;_jsfBridgeAjax: true | acheLevelPage/__rv0;_facesViewIdResource:0x3 > WEB-INF0x3views0x3portletViewMode.xhtml/__rv > 0;_jsfBridgeAjax: true
          Hide
          vernon.singleton Vernon Singleton added a comment - - edited

          You can see above that the pre defined postback param called "javax.faces.encodedURL" is now namespaced on the right. This appears to be causing issues with the bridge.

          Show
          vernon.singleton Vernon Singleton added a comment - - edited You can see above that the pre defined postback param called "javax.faces.encodedURL" is now namespaced on the right. This appears to be causing issues with the bridge.
          Hide
          neil.griffin Neil Griffin added a comment -

          This issue was fixed in PrimeFaces with Issue#1996 and Issue#1997.

          Show
          neil.griffin Neil Griffin added a comment - This issue was fixed in PrimeFaces with Issue#1996 and Issue#1997 .

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Subcomponents