[ http://issues.apache.org/jira/browse/MYFACES-281?page=all ]
sean schofield closed MYFACES-281:
----------------------------------
Fix Version: Nightly Build
Resolution: Fixed
Thanks Brendan for the bug report and fix suggestion.
> myfaces-ext.tld definition for tree2 has id tag defined twice
> -------------------------------------------------------------
>
> Key: MYFACES-281
> URL: http://issues.apache.org/jira/browse/MYFACES-281
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: WSAD, using the source from myfaces-1.0.9-src.zip
> Reporter: Brendan Conner
> Assignee: sean schofield
> Priority: Minor
> Fix For: Nightly Build
>
> myfaces-ext.tld (in myfaces-1.0.9-src.zip) has a definition for tree2 that
> has the id defined twice. When running it on WSAD (or RSA), it has the
> effect of putting an extra set of quotes around the id value itself. Thus,
> id="myId" gets read as the string ""myId"", which then gets rejected at
> run-time. The duplicate definition of id also makes it mandatory, so leaving
> it out is not an option either when using it.
> I corrected the problem in my source code copy by taking out the following
> lines from myfaces-ext.tld within the <tree2> definition:
> <attribute>
> <name>id</name>
> <required>true</required>
> </attribute>
> This seems to work, because there already are the following lines in the the
> tld for tree2 (towards the bottom) to define the id:
> <!-- UIComponent attributes -->
> <attribute>
> <name>id</name>
> <required>false</required>
> <rtexprvalue>false</rtexprvalue>
> <type>java.lang.String</type>
> <description>Every component may have an unique id. Automatically
> created if omitted.</description>
> </attribute>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira