Re: AJAX Events

2012-06-27 Thread Gep
I feel quite dumb, My issue was simply the capital o on my OnInc method (becoming lazy about case sensitivy in Tapestry :p ). Although, thank you for the requestParameter link! -- View this message in context: http://tapestry.1045711.n5.nabble.com/AJAX-Events-tp2429263p5714109.html Sent from t

Re: AJAX Events

2012-06-26 Thread Ray Nicholus
Have a look at the RequestParameter annotation. On Tue, Jun 26, 2012 at 11:05 AM, Gep wrote: > Sorry to dig out this post, but I'm having the exact same issue. > > After having a look at : > http://samroyale.blogspot.fr/2009/11/controlling-ajax-in-tapestry.html I > tried to use this trick, but I

Re: AJAX Events

2012-06-26 Thread Gep
Sorry to dig out this post, but I'm having the exact same issue. After having a look at : http://samroyale.blogspot.fr/2009/11/controlling-ajax-in-tapestry.html I tried to use this trick, but I failed. In my page.java, I create a link this way: With a simple OnInc method in the same page: Wh

Re: Ajax events, expired session and @Persist fields

2011-09-19 Thread Lenny Primak
I finally figured out how to handle Ajax events and sessions from the @XHR annotation. It involved Thiago's suggested SessionState object, but as a means of communicating between the annotation worker and the session state tracker. The session state tracker turned out to be pretty complex, unfort

Re: Ajax events, expired session and @Persist fields

2011-09-18 Thread Lenny Primak
I finally had a chance to try these methods, unfortunately with little success. Yes, I can check only one @Persist field for null to see whether the session still exists, which works. Request.getSession(false) does not really work, because a new (empty) session can be created within this request

Re: Ajax events, expired session and @Persist fields

2011-09-15 Thread Lenny Primak
Thanks Thiago. I will try all these options and report the results. On Sep 14, 2011, at 5:19 PM, "Thiago H. de Paula Figueiredo" wrote: > On Wed, 14 Sep 2011 16:25:14 -0300, Lenny Primak > wrote: > >> This is a design/best practices question. >> We set up @Persist fields inside @SetupRend

Re: Ajax events, expired session and @Persist fields

2011-09-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Sep 2011 16:25:14 -0300, Lenny Primak wrote: This is a design/best practices question. We set up @Persist fields inside @SetupRender method. When a session is invalid/expired and an Ajax event is called, All these fields at null. The question is if there is a better way to handle t

Re: AJAX Events

2009-02-25 Thread Robert Zeigler
Check out EventLink and/or ComponentResources.createEventLink. Like: public class SomeComponent { @Inject private ComponentResources resources; public String getEventLink() { return resources .createEventLink ("MyCustomEventName",contextParameter1,contextParameter2,...); } void onMyCustom

Re: AJAX Events

2009-02-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Feb 2009 08:07:18 -0300, Davor Miku escreveu: Question is how can some arbitraryJavaScriptFunction() invoke corresponding Tapestry method? Make your Javascript invoke an URL created by ComponentResources.createEventLink(). ;) -- Thiago H. de Paula Figueiredo Independent Java

Re: AJAX Events

2009-02-25 Thread Davor Miku
Clicking on actionlink component, some Tapestry method is invoked (method for action event). Question is how can some arbitraryJavaScriptFunction() invoke corresponding Tapestry method? I'm not sure I'm clear enough. On Wed, Feb 25, 2009 at 4:17 AM, Alex Kotchnev wrote: > Davor, > what do

Re: AJAX Events

2009-02-24 Thread Alex Kotchnev
Davor, what do you mean by "when some is dropped" ? Can you please describe in slightly more detail by "custom events" ? Cheers, Alex Kotchnev On Mon, Feb 23, 2009 at 1:56 PM, Davor Miku wrote: > Hi! > > I've found some tutorials for AJAX in Tapestry, but there all about action > event, fi