Hi Anitha, I have a similar situation. Will be great if you can share your code
Ty On 6/23/05, Anitha <[EMAIL PROTECTED]> wrote: > Viktor Szathmary <phraktle <at> gmail.com> writes: > > > > > On 6/23/05, Anitha <aa1596 <at> sbc.com> wrote: > > > > > > The implementation is very similar to the tacos file tree demo. However, > > > the > > > condition "node==selectedNode" always evaluates to false. I have also > > > tried > > > the "node.equals(selectedNode)", but that doesn't work either. Any > > > pointers, > > > suggestions would be greatly appreciated. > > > > first of all i see that in your implementation you have a TreeNode > > class.. do you really need this? the idea is that your ContentProvider > > implementation should directly expose your domain objects (so you dont > > have to create a TreeNode class)... > > > > regardless, how does your domain object (TreeNode in this case) > > implement the equals() method? since you're creating a new instance in > > your select() listener, you must ensure that the equals(..) is > > overriden and will return true for a different object instance that's > > identical... > > > > viktor > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tapestry-user-unsubscribe <at> jakarta.apache.org > > For additional commands, e-mail: tapestry-user-help <at> jakarta.apache.org > > > > > > Thanks Viktor. It works great now that I've overriden the equals > implementation. > > The TreeNode class is used for traversing the tree and is a light weight > alternative to the actual domain object . The idea was to delay populating the > actual domain object data only when it needs to be viewed / modified. > > -Anitha. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
