Unless https://issues.apache.org/jira/browse/TAPESTRY-2286 has been addressed, you cannot respond with JSONArray, but you can with JSONObject.
Sven Homburg wrote: > the JSONObject/JSONArray response too > > 2008/4/24, Sven Homburg <[EMAIL PROTECTED]>: > >> the return type is not limited to StreamResponse. >> all you can respond all that tapestry allowes here >> http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html >> its up to you >> >> 2008/4/24, Marcelo Lotif <[EMAIL PROTECTED]>: >> >>> I had the same issue as Leon some days ago (and this seems to be a very >>> common issue), and i tried your component. It's very good, with some ajax, >>> but the return type is a little bit limited for what i was trying to >>> achieve(update a combo with information from another combo, which has your >>> mixin). The only way to do it was hardcoding the select in my java(or >>> javascript, whatever), that was too creepy for me. >>> >>> My questions: >>> 1 - Is there any way of change my page data with something more elaborate >>> than TextStreamResponse? >>> 1 - Is there any efforts on adding some similar behavior to future >>> releases? >>> >>> Thank you! >>> >>> 2008/4/24 Sven Homburg <[EMAIL PROTECTED]>: >>> >>> >>> >>>> try this >>>> >>>> >>>> >>> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html >>> >>>> 2008/4/24, Leon Derks <[EMAIL PROTECTED]>: >>>> >>>>> Hello >>>>> >>>>> Is it possible to catch the onChange event from a select component in >>>>> >>> the >>> >>>>> java page? >>>>> >>>>> I would expect something like: onChangeFromSelect(long id) {....} >>>>> >>>>> Because I want to update information on my page, based on the value >>>>> >>> that >>> >>>> is >>>> >>>>> selected. >>>>> >>>>> How can I do that? >>>>> >>>>> Leon >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> >>>> -- >>>> with regards >>>> Sven Homburg >>>> http://tapestry5-components.googlecode.com >>>> >>>> >>> >>> >>> -- >>> Atenciosamente, >>> >>> Marcelo Lotif >>> >>> >> >> -- >> with regards >> Sven Homburg >> http://tapestry5-components.googlecode.com >> >> > > > > -- http://thegodcode.net