AFAIK there is no ajax in tobagos tree,

Tobago has ajax support currently in 'sheet', 'tabgroup', 'box' and
'in' components.

Cory, how did you do the ajax for the tree?

I suppose to modify the defaultMutableTreeNodes and let tobago
rerender the new model.

regards,
  Volker

2006/6/12, Udo Schnurpfeil <[EMAIL PROTECTED]>:
Sorry, when I misunderstood you. I've no experience with the AJAX part
of the tree.

Showers, Cory R schrieb:
> So when you say change the model on the server... are you saying to just
> hook into the managed bean and add the tree node and then call render
> response?  Wouldn't that refresh the entire page?  I guess I'm a little
> confused with how AJAX interacts with the page.  I know AJAX sends a
> request and responds with an XML data format.  And then normally you
> would walk through the DOM tree.  So are saying that AJAX wouldn't have
> to return anything to the client and the modifications will be done in
> the model?
>
> -----Original Message-----
> From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 12, 2006 4:03 PM
> To: MyFaces Discussion
> Subject: Re: tobago - how can i add tree nodes at runtime?
>
> Hallo Cory,
>
> the way I've used, is like this: Changing the model on the server, and
> rerender it in the classical Lifecycle.
>
> I don't know, if the update works using AJAX jet. Maybe the AJAX in the
> TreeRenderer is only for loading opening nodes.
>
> Hope that helps a little.
>
> Udo
>
> Showers, Cory R schrieb:
>> I am trying to add tree nodes dynamically during runtime.  The way the
>
>> nodes will be added is that I am expecting to parse an xml file and
>> create a node with the xml contents.  I am going to have use AJAX but
>> I'm not sure once the xml is parsed how the data will be added to the
>> tree node on the client side or will the adding have to be done on the
>
>> server side in the managed bean.  Tobago uses swing's
>> DefaultMutableTreeNode for its value any suggestion?
>>
>>
>>
>> **Cory Showers**
>>
>> Software Engineer
>>
>> Lockheed Martin MS2
>>
>> (w) 856.866.6075
>>
>>
>>
>
>
>

Reply via email to