You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "CCruz (JIRA)" <de...@myfaces.apache.org> on 2009/04/15 15:21:14 UTC
[jira] Commented: (MYFACES-2186) After using ,
component ids are appended with j_id_1
[ 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.