You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Arpit Sakhi (JIRA)" <de...@myfaces.apache.org> on 2009/04/09 13:53:13 UTC

[jira] Created: (MYFACES-2186) After using , component ids are appended with j_id_1

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.


[jira] Commented: (MYFACES-2186) After using , component ids are appended with j_id_1

Posted by "CCruz (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699186#action_12699186 ] 

CCruz commented on MYFACES-2186:
--------------------------------

In MyFaces 1.2.5  occur the same

> 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.


[jira] Issue Comment Edited: (MYFACES-2186) After using , component ids are appended with j_id_1

Posted by "CCruz (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699186#action_12699186 ] 

CCruz edited comment on MYFACES-2186 at 4/15/09 7:14 AM:
---------------------------------------------------------

In MyFaces 1.2.5  occur the same;  in MyFaces 1.2.4  same thing

      was (Author: blacksuit):
    In MyFaces 1.2.5  occur the same
  
> 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.