Re: @EventListener Question

2007-05-28 Thread Jesse Kuhnert
It behaves exactly the same way as a normal listener method - the only difference being what causes it be invoked. So, in your example I'm not sure what would happen but probably an error of some kind. If you want to update a component you can use ResponseBuilder (grabbed via IRequestCycle or h

Re: @EventListener Question

2007-05-27 Thread Jesse Kuhnert
I'm not sure what you mean, the asynchronous portion should happen automatically. It should also behave exactly the same way as your listener method would if it were say a @Submit component listener or @DirectLink listener. The major difference is that it automatically submits your form if you h

Re: Eventlistener question

2007-01-02 Thread Jesse Kuhnert
It's necessary because of the slew of nightmares associated with preventing memory leaks on the client side as well as not knowing which actual dom nodes do and do not exist(in the browser) already for each request. There's no other way to know without some sort of state knowledge, which would pr

Re: @EventListener question

2006-12-12 Thread Julian Wood
I think what Jesse says is exactly what is expected and intuitive, but I've just spent 3 hours proving that it needs those "redundant" divs if you want it to work (unless I've misunderstood, or am approaching this wrong). Case in point, using the Dec 12, 4.1.1 snapshot: @EventListener( eve

Re: @EventListener question

2006-09-11 Thread Vinicius Carvalho
Thanks, that was it :D On 9/11/06, Chaitanya Jeerage <[EMAIL PROTECTED]> wrote: I have faced problems before while updating components other than div, may be I was doing something wrong, anyway afaik this should work I think this is what Josh was indicating too. -Chaitanya On 9/11/06,

Re: @EventListener question

2006-09-11 Thread Chaitanya Jeerage
I have faced problems before while updating components other than div, may be I was doing something wrong, anyway afaik this should work I think this is what Josh was indicating too. -Chaitanya On 9/11/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Josh, I really can't see how would t

Re: @EventListener question

2006-09-11 Thread Vinicius Carvalho
Josh, I really can't see how would that work... since I'm using @Any, where would the text be rendered? I gave it a try and it is not working... Any other ideas? Regards On 9/10/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Also, just as an FYI a lot of the examples I've been seeing lately incl

Re: @EventListener question

2006-09-10 Thread Jesse Kuhnert
Also, just as an FYI a lot of the examples I've been seeing lately include what appears to be a lot of redundant enclosures around content you want to update. I've worked very hard to make sure the component id logic is universally correct, so you should be able to just reference a particular co

Re: @EventListener question

2006-09-09 Thread Josh Long
I'm not 100% sure, but try changing div id ="quoteDiv" to ... That way, builder.updateComponent wil update a tapestry component.. Peace, Josh On 9/8/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! Does EventListener + ResponseBuilder supports all components? For instance, is it

Re: @EventListener question

2006-08-30 Thread Pedro Viegas
Point taken! No less appreciation though! :-D Thanks all the same Jesse! And keep the spirits up on the Tap 4.1 road ahead... we're all salivating with the released new features! ;-) Keep 'em coming, and the stability of this Alpha makes very Betas I know more than a little embarrassed! Regards,

Re: @EventListener question

2006-08-28 Thread Jesse Kuhnert
I should make a note of it one last time so that guilt doesn't drive me mad... The @EventListener annotation was originally Howard's idea, I just implemented it. I'm sure this will be a common occurrence as more and more of T5 evolves. (as much as makes sense/is possible at least) On 8/28/06, An

Re: @EventListener question

2006-08-28 Thread Andy Pahne
works like a charm with SNAPSHOT... Pedro Viegas schrieb: Yep, all I said only works if you submit the form in async mode. Be aware that until somewhere last week that had problems. You must use the current SNAPSHOT for this to work. If you submit the form asyncronously the validation of the ot

Re: @EventListener question

2006-08-28 Thread Pedro Viegas
Yep, all I said only works if you submit the form in async mode. Be aware that until somewhere last week that had problems. You must use the current SNAPSHOT for this to work. If you submit the form asyncronously the validation of the other fileds wont be a problem and all should work. Regards,

Re: @EventListener question

2006-08-28 Thread Andy Pahne
I can't submit it because the user has to fill in some more fields. Maybe I am wrong. There is nothing about submitting the form (async). I will try that. The user then might fill in the rest... Thanks, Andy Pedro Viegas schrieb: Hi there Andy, Why can't you submit the form like you say? I

Re: @EventListener question

2006-08-28 Thread Pedro Viegas
Hi there Andy, Why can't you submit the form like you say? If you read the bottom comments on: http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html You'll see that... "When your listeneris invoked you can be confi