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

                 Key: MYFACES-2186
                 URL: https://issues.apache.org/jira/browse/MYFACES-2186
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.2.6
         Environment: weblogic 10.3, myfaces 1.2.6
            Reporter: Arpit Sakhi
            Priority: Blocker


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to