Re: 答复: T5: Select component + onchange()

2008-08-15 Thread Lance Java
;text/html",utfStr); > >} > > My javascript code: > >function customerChangeEvent(response){ > > alert(response); > >} > -邮件原件- > 发件人: Sven Homburg [mailto:[EMAIL PROTECTED] > 发送时间: 200

答复: T5: Select component + onchange()

2008-08-13 Thread 滕训华
code: function customerChangeEvent(response){ alert(response); } -邮件原件- 发件人: Sven Homburg [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月25日 2:54 收件人: Tapestry users 主题: Re: T5: Select compo

Re: T5: Select component + onchange()

2008-04-25 Thread Marcelo Lotif
hmmm, I thought about it earlier, but i did not search for a JIRA... this would be really nice! and nice piece of code Sven, I'll try to get this working and take off the workaround with submit... 2008/4/25 Geoff Callender <[EMAIL PROTECTED]>: > It seems to me that Zones would make it very simpl

Re: T5: Select component + onchange()

2008-04-25 Thread Geoff Callender
It seems to me that Zones would make it very simple. Perhaps you would like to vote for this issue: "Add Zone parameter to Select component" https://issues.apache.org/jira/browse/TAPESTRY-2361 Cheers, Geoff http://files.doublenegative.com.au/jumpstart/ On 25/04/2008, at 12:0

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
here some sample code sequences your page class (simplified): @Component(parameters={"event=change" "onCompleteCallback=onSelect1Changed"}) @Mixins("t5components/OnEvent") private Select _select1 @Component private Select _select2 @OnEvent(component = "select1", value = "change") JSONObject sel

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
Yeah, i know this, but none of these responses suit to my needs (maybe a Page response, but this will force a reload)... i tried to return a block with the part of the code that i was trying to change, but i had no success And i don't have the enough knowledge of the JSON api and javascript... So

Re: T5: Select component + onchange()

2008-04-24 Thread Chris Lewis
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 Stre

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
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, Marce

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
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 b

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
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).

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
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: onCha

T5: Select component + onchange()

2008-04-24 Thread Leon Derks
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 ---