Tree2 facets and duplicate IDs
------------------------------
Key: TOMAHAWK-439
URL: http://issues.apache.org/jira/browse/TOMAHAWK-439
Project: MyFaces Tomahawk
Type: Bug
Components: Tree2
Versions: 1.1.3-SNAPSHOT
Environment: java 1.5
myfaces 1.1.3
tomahawk 1.1.2
Reporter: Chris Hane
When I create a tree using the following code:
<tree2 var='node'.....>
<facet name="facet1">
<h:inputText value="${node.item.quantity}" id="QTY"/>
</facet>
<facet name="facet2">
<h:inputText value="${node.item.quantity}" id="QTY"/>
</facet>
</tree2>
Where node is a subclass of TreeModel that adds a property:
public Item getItem();
Because the input values both have an id = "QTY", when I update the quantity
value, it is not updated in the model. What I see happening is the screen
re-displayed without any of the changes applied.
When I change on of the id's to something else so they are unique, everything
works as expected.
If the ID's need to be unique across facets, is it possible for the component
to issue a warning or error letting the developer know what the issue is? I
finally figured it out......
Chris....
--
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