I'm building an example of selection using T5.3's new Tree component but having 
some difficulties. 

The example will have a tree on the left, and when you click on a leaf the item 
is shown on the right in review mode, with a button for Edit and a button for 
Delete. 

Here are the problems:

- I can't prevent more than one leaf being selected at a time.
- Has anyone succeeded in updating a zone when a leaf is selected.

Ideally, the first one would be solved by a parameter on Tree - a bit like HTML 
Select's "multiple" attribute - and implemented in tree.js. I don't see an 
obvious way to extend the functionality in tree.js so I've tried server-side 
event-handling of NODE_SELECTED and NODE_UNSELECTED. The handlers can alter the 
selectionModel just fine, ie. clear existing selections and set the latest one; 
but the alterations aren't reflected in the tree that's on screen.

And that brings me to the second problem - even if I put the tree in a Zone, it 
appears that the JavaScript ignores the Ajax response so nothing will happen. 
Does this mean I have to provide a Submit button and do full page refresh?

Thanks,

Geoff
http://jumpstart.doublenegative.com.au/jumpstart/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to