[richfaces-issues] [JBoss JIRA] Created: (RF-10397) ComponentIdResolver does not resolve id for prependId="false" correctly
Martin Kočí (JIRA)
jira-events at lists.jboss.org
Tue Feb 1 15:55:39 EST 2011
ComponentIdResolver does not resolve id for prependId="false" correctly
-----------------------------------------------------------------------
Key: RF-10397
URL: https://issues.jboss.org/browse/RF-10397
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: base functionality
Affects Versions: 4.0.0.Milestone5
Environment: Richfaces 4.0 trunk svn.rev 21378, mojarra 2.0.3
Reporter: Martin Kočí
Priority: Minor
<h:form id="formId" prependId="false">
<h:inputText id="inputText1" />
<h:inputText id="inputText2" >
<a4j:ajax event="valueChange" execute=":formId:inputText1" />
</h:inputText>
</h:form>
will not execute component id="inputText1". I found that ComponentIdResolver at line 179 contains:
clientId = SEPARATOR_CHAR_JOINER.join(topMatchComponent.getClientId(facesContext), id.substring(idx + 1));
But in this case topMatchComponent is HtmlForm with prependId="false" and spec says that "children of this UIForm instance in the view have the form's clientId prepended to their clientIds if and only if the form's prependId property is true".
so richfaces resolve this clientId as "formId:inputText1", but it should be only "inputText1" in this case
There are similar bugs registered already, but some of them are closed and some not so I can say if it is same problem. Sorry for possible duplicity.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list