RE: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Cordenier Christophe
Hello, To add Javascript after an action on the server side, you can use the PageRenderSupport class. Actually, this may work for Ajax and non-Ajax request. To inject this class in your component : @Environmental private PageRenderSupport _pageRenderSupport; Hope it helps.

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
Actually, I get a [ERROR] ExceptionHandler org.apache.tapestry.runtime.ComponentEventException: No object of type org.apache.tapestry.PageRenderSupport is available from the Environment. Available types are org.apache.tapestry.ValidationTracker,

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
PS: I use Tapestry 5.0.12-SNAPSHOT... /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Cordenier Christophe
: Re: Login google-style (with redirect after ajax form refresh) PS: I use Tapestry 5.0.12-SNAPSHOT... /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et les

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Josh Canfield
Executing script in an ajax response requires parsing out the script and eval'ing it separately (your browser protecting you from scripting attacks). This can be done with scriptaculous but is disabled by default. I can't see a way to override this in Tapestry without duplicating code from