You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Chris Hane (JIRA)" <de...@myfaces.apache.org> on 2006/05/18 19:23:05 UTC

[jira] Created: (TOMAHAWK-439) Tree2 facets and duplicate IDs

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


[jira] Commented: (TOMAHAWK-439) Tree2 facets and duplicate IDs

Posted by "sean schofield (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-439?page=comments#action_12416670 ] 

sean schofield commented on TOMAHAWK-439:
-----------------------------------------

This seems to be more of an issue with facets generally then tree2 specifically.  Can you check if this problem exists with other components (say datatable?)

> 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