[
https://issues.apache.org/jira/browse/MYFACES-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847350#action_12847350
]
Jakob Korherr commented on MYFACES-2598:
----------------------------------------
In ComponentTagHandlerDelegate the UniqueIdVendor is retrieved by the following
code:
UniqueIdVendor uniqueIdVendor = actx.getUniqueIdVendorFromStack();
if (uniqueIdVendor == null)
{
uniqueIdVendor = facesContext.getViewRoot();
}
But at the first time we get there for a UIViewParameter, there is no
UniqueIdVendor on the stack and facesContext.getViewRoot() returns null,
because it is set later. So we either have to push the UIViewRoot to the stack
in DefaultFacelet or check for the parent here too. Because you reverted my
changes for this in DefaultFacelet I will introduce a check for the parent as a
UniqueIdVendor in ComponentTagHandlerDelegate. Maybe that's better!
> UIViewParameter does not get an automatic id
> --------------------------------------------
>
> Key: MYFACES-2598
> URL: https://issues.apache.org/jira/browse/MYFACES-2598
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.0.0-beta-3
> Reporter: Jakob Korherr
> Assignee: Jakob Korherr
> Fix For: 2.0.0-beta-3
>
>
> You see the fancy missing id warning when using f:viewParam:
> 10.03.2010 13:35:36 javax.faces.component.UIComponentBase getClientId
> WARNUNG: WARNING: Component j_id12 just got an automatic id, because there
> was no id assigned yet. If this component was created dynamically (i.e. not
> by a JSP tag) you should assign it an explicit static id or assign it the id
> you get from the createUniqueId from the current UIViewRoot component right
> after creation! Path to Component: {Component-Path : [Class:
> javax.faces.component.UIViewRoot,ViewId: /viewparam.xhtml][Class:
> javax.faces.component.UIPanel,Id: javax_faces_metadata][Class:
> javax.faces.component.UIViewParameter,Id: j_id12]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.