Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2284

Trinidad CoreForm does not render standard javax.faces.encodedURL hidden field

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1-core
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      Trinidad PPR Ajax does not work in JSF 2 portlet bridges (like Liferay Faces Bridge) because the renderer for tr:form does not render the standard hidden field:

      <input type="hidden" name="javax.faces.encodedURL" value="..." />

      http://docs.oracle.com/javaee/6/javaserverfaces/2.1/docs/renderkitdocs/HTML_BASIC/javax.faces.Formjavax.faces.Form.html

      Since the field is not rendered, jsf.js uses the "action" attribute of the form, which invokes the ACTION_PHASE of the portlet lifecycle. If the hidden field is rendered properly, then the value of the hidden field is a portlet ResourceURL which invokes the RESOURCE_PHASE of the portlet lifecycle.

        Attachments

        1. patch.zip
          0.6 kB
          Thomas Möller

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ngriffin7a Neil Griffin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: