You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Chris Hane <ch...@itsolut.com> on 2006/05/17 20:04:48 UTC

Are Tree2 cells updatable?

I have an <h:inputText> field in a tree2 cell.  If the user updates this 
value and then the "tree" is submited back via  <h:commandLink/Button>, 
will the tree model be updated with the new value?

I overrode the TreeModel so that it includes a new property:
   public Item getItem();

There are several properties on the Item object.  Here is a snippit of code:

<t:tree2 var="node" ....>
   </snip>
     <h:inputText value="${node.item.quantity}" />

Everything displays correctly.  However, the quantity value is not 
updated when the form is posted back....

In my trials, I can't seem to make this work?  Should this be possible 
or am I trying to do something that wont work?

Thanks,
Chris....


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 5/16/2006