<h:form prependId="false"> not work
-----------------------------------
Key: MYFACES-1844
URL: https://issues.apache.org/jira/browse/MYFACES-1844
Project: MyFaces Core
Issue Type: Bug
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
The following code
<h:form id="form1" prependId="false">
<t:commandButton id="test1" value="Test"/>
<h:commandButton value="Test"/>
</h:form>
should result clientId's for buttons without form1. now it set null:test1 and
null:j_id_jsp_1599505473_4
The fix is doing this on UIComponentBase:
if (namingContainer != null)
{
String containerClientId =
namingContainer.getContainerClientId(context);
if (containerClientId != null )
{
_clientId = containerClientId + NamingContainer.SEPARATOR_CHAR
+ id;
}
else
{
_clientId = id;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.