Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2186

After using <jsp:include>, component ids are appended with j_id_1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 1.2.6
    • None
    • None
    • None
    • weblogic 10.3, myfaces 1.2.6

    Description

      In migration from Myfaces 1.1.5 to Myfaces 1.2.6.

      On one of my jsp i am using <jsp:include> and after running the application i was getting component ids appended with "pc" then i have modified "UIComponentClassicTagBase.java" class by commenting some code as shown below -

      private String createNextId(String componentId)
      {
      Integer currentCounter = (Integer) getFacesContext().getExternalContext().getRequestMap().get(componentId);
      int iCurrentCounter = 1;
      if (currentCounter != null)

      { iCurrentCounter = currentCounter.intValue(); iCurrentCounter++; }

      getFacesContext().getExternalContext().getRequestMap().put(componentId, new Integer(iCurrentCounter));
      // if (isIncludedOrForwarded()) // Commented these lines
      //

      { // componentId = componentId + "pc" + iCurrentCounter; // }

      // else
      //

      { componentId = componentId + UNIQUE_ID_PREFIX + iCurrentCounter; // }

      return componentId;
      }

      But now ids are getting appended with j_id_1. Is there any fix available for this issue because its kind of show stopper in my work.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arpitjsf Arpit Sakhi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: