Re: JSONStreamResponse. How to return an array?

2008-12-23 Thread Howard Lewis Ship
Francois is right, the client side can not directly invoke methods of Tapestry pages or components; this is by design. The component side can send events to specific components, and then what happens is totally defined by the server (and therefore, more predictable and less hackable). Component ev

Re: JSONStreamResponse. How to return an array?

2008-12-18 Thread Francois Armand
superoverdr...@gmx.de wrote: Where is this "autocomple mixin" example? I have looked everywhere, but can't find it. Also read about this on the Tapestry website... So you mean something like: @OnEvent(component = "getnodes") Would be value in place of component, or name your method "onGetn

Re: JSONStreamResponse. How to return an array?

2008-12-18 Thread superoverdrive
ttp://localhost:8080/reorder:getnodes says: "Request event 'getnodes' (on component Reorder) was not handled; you must provide a matching event handler method in the component or in one of its containers." Thanks! Original-Nachricht ---- > Datum: Thu, 18 Dec

Re: JSONStreamResponse. How to return an array?

2008-12-18 Thread Francois Armand
superoverdr...@gmx.de wrote: http://localhost:8080/reorder.getnodes I get: "Component Reorder does not contain an embedded component with id 'getnodes'. Available components: (none)." It's because what you actually asked here is : call the "getnodes" component on page reorder. Dot in T5 u

Re: JSONStreamResponse. How to return an array?

2008-12-18 Thread superoverdrive
l-Nachricht > Datum: Thu, 18 Dec 2008 10:33:12 +0100 > Von: superoverdr...@gmx.de > An: users@tapestry.apache.org > Betreff: JSONStreamResponse. How to return an array? > I am trying to return a JSON Array from a Page: > > Array > ( > [0] =>

JSONStreamResponse. How to return an array?

2008-12-18 Thread superoverdrive
I am trying to return a JSON Array from a Page: Array ( [0] => Array ( [text] => adapter [id] => /adapter [cls] => folder ) [1] => Array ( [text] => air [id] => /air [cls] => folder )