myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "CCruz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (MYFACES-2186) After using <jsp:include>, component ids are appended with j_id_1
Date Wed, 15 Apr 2009 14:15:15 GMT

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


Mime
View raw message