ICEfaces
  1. ICEfaces
  2. ICE-8898

Response id's Incorrect when using Liferay Faces Bridge

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: EE-3.0.0.GA_P01
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Liferay 6.0.6
      Liferay Faces 3.0.0-ga1

      Description

      After upgrading from PortletFaces Bridge to Liferay Faces Bridge, a client's application is unresponsive when clicking on h:commandLinks

      The id's in the response have the portlet namespace prepended twice as follows:

      <partial-response>
      <changes>
      <update id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn"><input id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" name="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" type="hidden" /></update>
      <update id="javax.faces.ViewState">3857415867440424219:3407657154440939010</update>
      <eval>Ice.Prototype.$('A1609:j_idt12:A1609:j_idt12:j_idt15_idtn').value='';//1663176465</eval>
      <extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension>
      </changes>
      </partial-response>

        Activity

        Hide
        Brad Kroeger added a comment -

        Deryk found the following:

        CustomComponentUtils:

        public static String getHiddenTreeExpandFieldName(String componentId,
        String formName)

        { return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_NAV_FIELD_NAME; }

        public static String getHiddenTreeActionFieldName(String componentId,
        String formName)

        { return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_ACTION_FIELD_NAME; }

        Those two methods are taking the formName (which is calculated as "A1609:j_idt12") and then appending the component id (which is calculated as "A1609:j_idt12:j_idt15_idtn")

        Show
        Brad Kroeger added a comment - Deryk found the following: CustomComponentUtils: public static String getHiddenTreeExpandFieldName(String componentId, String formName) { return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_NAV_FIELD_NAME; } public static String getHiddenTreeActionFieldName(String componentId, String formName) { return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_ACTION_FIELD_NAME; } Those two methods are taking the formName (which is calculated as "A1609:j_idt12") and then appending the component id (which is calculated as "A1609:j_idt12:j_idt15_idtn")

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: