Re: Ajax event for inplace Grid page change

2016-12-07 Thread JumpStart
This example shows how to get around some of the failings of GridPager with a small amount of effort: http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons HTH, Geoff > On 7 Dec 2016, at 9:21 PM, Adam X wrote: > > Howdy, > > I'm trying to implement s

Re: Tapestry 5.4.1 Confirm mixin prevents onSuccessFrom... event from working

2016-12-07 Thread George Ludwig
I did some experimenting and discovered that the confirm mixin works fine for things like an actionlink, but it doesn't work on a form button. Is this intended behavior? I was able to hack around it by styling an action link to look like a button and putting it outside of my form. In this case work

Re: Add javascript every request

2016-12-07 Thread Nathan Quirynen
Would this cover all requests? My application uses a lot of ajax, so preferably the countdown script would reset on every request (xhr or non xhr) right? On 07/12/16 12:47, Thiago H. de Paula Figueiredo wrote: Hi! Another solution, specially if you don't have a single layout component for al

Ajax event for inplace Grid page change

2016-12-07 Thread Adam X
Howdy, I'm trying to implement status counter underneath a grid, something like: Showing 5 - 10 of 100 My grid is handled via ajax (inPlace="true"). Is there a page change event or something similar that grid's pager emits so that I can hook up to it? Something like: void onPageChangeFromMyGri

Re: Add javascript every request

2016-12-07 Thread Thiago H. de Paula Figueiredo
Hi! Another solution, specially if you don't have a single layout component for all the pages, would be creating a mixin to include the JavaScript you want, plus implementing and contributing a ComponentClassTransformWorker to apply it to all pages. I can provide you examples if you want. On Wed,

Re: Add javascript every request

2016-12-07 Thread David Diaz
Hi Nathan, You can use a in your main Layout.tml. For example, in your Layout.tml http://tapestry.apache.org/schema/tapestry_5_4_1.xsd";> Then in your Layout.java public void onSessionTimeout() { ajaxResponseRenderer.addCallback(**do callback stuff here**); } I've im

Add javascript every request

2016-12-07 Thread Nathan Quirynen
Hi, I want to add a session timeout warning popup to a Tapestry5.4 application. I thought of creating a javascript module that counts down the remaining time left before the session times out and then shows a popup warning with the option to logout or keep on going and if no action is taken a