RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
r your network www.servprise.com +1 508.892.3823 x308 > -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 11:07 AM > To: Tapestry users > Subject: Re: [4.1.5] @EventListener question > > > Bad luck. As

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Bad luck. As I see you are the reporter of that bug. Did you find a workaround? A. Kevin Menard schrieb: autosubmit="false" is currently broken. You can track the following issue: https://issues.apache.org/jira/browse/TAPESTRY-2003 --

RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
gt; -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 10:54 AM > To: Tapestry users > Subject: Re: [4.1.5] @EventListener question > > > I changed my @EventListener like that: > > @EventListener( >

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Worked instantly. Thanks. But shouldn't "elements" work as well? Kevin Menard schrieb: -Original Message- From: Andy Pahne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 10:41 AM To: Tapestry users Subject: [4.1.5] @EventListener quest

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
d some time to get used to it... A. Kevin Menard schrieb: -Original Message- From: Andy Pahne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 10:41 AM To: Tapestry users Subject: [4.1.5] @EventListener question Page class: @EventListener(elements = "formField1",

RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
> -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 10:41 AM > To: Tapestry users > Subject: [4.1.5] @EventListener question > > Page class: > > @EventListener(elements = "formField1", >

[4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Hi, I am trying out the @EventListener Ajax features and already got some impressive results without knowing anything about Javascript, but there's one thing that does not work: Template: Page class: public void formSubmit() { setMessage("Form 1 submitted");

Re: [t4] EventListener question

2007-06-28 Thread Jesse Kuhnert
Hmmm I'm not sure completely. If you had an example I can play with more easily attached to a jira issue I can take a look. On 6/28/07, Julian Wood <[EMAIL PROTECTED]> wrote: Well I'll look forward to the time when that's implemented! But I'm still curious what the problem is with my origina

Re: [t4] EventListener question

2007-06-28 Thread Julian Wood
Well I'll look forward to the time when that's implemented! But I'm still curious what the problem is with my original approach, as it seems to be a different problem. That is, after an initial async submission, the eventlistener invokes the listener on the submit button when it shouldn't.

Re: [t4] EventListener question

2007-06-27 Thread Jesse Kuhnert
Haha look at that. I forget that it can bind to any function sometimes. That's neat. :) Yes that was what I was thinking as the "strategy" for doing EventListener connections on this specific type of component. It would need to honor any existing informal onclick attributes and back off to

Re: [t4] EventListener question

2007-06-27 Thread Julian Wood
I used a little trick to get the radiobuttons to send an event, which I suppose could be the problem. All you need to do is add this onclick handler to each radio button, and then the tapestry event listener will respond. value="ognl:@[EMAIL PROTECTED]" onclick="document.getElementB

Re: [t4] EventListener question

2007-06-27 Thread Julian Wood
I've made a sample application, as simply as I could, to show the problem. I've put it on my blog if anyone is interested in looking. http://jwoodchip.blogspot.com/2007/06/event-listener-oddities.html Thanks, J On 26-Jun-07, at 10:45 PM, Marcus Schulte wrote: That should really work. I'm us

Re: [t4] EventListener question

2007-06-27 Thread Jesse Kuhnert
EventListener && Radio Groups don't really get along so well. The reason being that each radio group button must have the same name attribute and there is no dom equivalent of a select->options wrapper around them. It's possible that ~something~ can be done for this but I'm not sure of what that

Re: [t4] EventListener question

2007-06-26 Thread Marcus Schulte
That should really work. I'm using something very similar (checkbox instead of radiobutton). If you post some code, I can look for differences. 2007/6/27, Julian Wood <[EMAIL PROTECTED]>: I have a pretty straight forward paradigm: - two groups of 3 radio buttons followed by a property selecti

[t4] EventListener question

2007-06-26 Thread Julian Wood
I have a pretty straight forward paradigm: - two groups of 3 radio buttons followed by a property selection. - an async form with no listener whatsoever - a submit button with an action listener (called saveTime) The idea is that choosing a radio button narrows down the list in the property se

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

@EventListener Question

2007-05-28 Thread Janos Mucsi
Hi Thanks, Jesse, for your answer. What if I want to return values from the listener method? Instead of @EventListener(elements = "myFavoriteDiv", events = "onmouseover") public void watchText(BrowserEvent event) { System.out.println("watch text entered"+event); } I want somethin

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

@EventListener Question

2007-05-27 Thread Janos Mucsi
Hi I am new to Tapestry, so excuse my basic question. I am reading http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html and was wondering how @EventListener implements asynchronous calls. Does anybody have a sample that behaves like the example: @EventListener(events = "sele

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

Eventlistener question

2007-01-02 Thread Markus Joschko
Hi all, I have a page in which a Eventlistener is defined. As the event occurs a component is added programmatically to the updatelist (in the listener) and the response is rendered. In the response there is always the initialization part of the Eventlistener included. Is there something I need to

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

@EventListener question

2006-09-08 Thread Vinicius Carvalho
Hello there! Does EventListener + ResponseBuilder supports all components? For instance, is it possible to update contents presented by a @Insert? I was trying a simple quote app and can't get it working: @EventListener(elements = "fetchQuotes", events="onmouseover") public void getQuotes

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

@EventListener question

2006-08-28 Thread Andy Pahne
Currently I am playing with the new @EventListener feature and I like it very much. That's how Ajax should be. I have a question: in the form there are two @PropertySelection components. The second one is supposed the change it's selected value dependant on the first one. Both PropertySelec