Change grid on "onSuccess"

2016-04-25 Thread Morgan Hautman
Hi, I'm trying to make a make grid update when submitting a form within the same page. Here is the code: https://gist.github.com/mhautman/e178fdcca46331e1f4932b1cd7074de7 The page gets refreshed but the table/source doesn't seem to be updated. Any help is greatly appreciated. Regards, Morgan

Re: Change grid on "onSuccess"

2016-04-25 Thread Felix Gonschorek
Hi, you have to store the results (or preferable the search parameters) because tapestry redirects the browser after the form POST: https://tapestry.apache.org/component-events-faq.html To store the state you can add @Persist annotations to the fields that store your search parameters and move t

Re: Change grid on "onSuccess"

2016-04-25 Thread Nathan Quirynen
Hey, By returning "this" in the onSuccess event, a redirect happens resulting in a new request. If you want to preserve data between requests, you will have to save it into the http session. If you add http session persistence, the data will be available after a new request.

Re: Change grid on "onSuccess"

2016-04-25 Thread Morgan Hautman
Hi, Thank you guys. I first tried the fix stated by Felix (@PageActivationContext) but it doesn't work. I then tried the ajax way Nathan provided and I have better results but my grid shows 4 pages/links but I don't see any data. I added *[Grid here

Re: Change grid on "onSuccess"

2016-04-25 Thread Barry Books
Use @pageactvation context and put what's in your onSucess method in setupRender On Monday, April 25, 2016, Morgan Hautman wrote: > Hi, > > Thank you guys. > I first tried the fix stated by Felix (@PageActivationContext) but it > doesn't work. > I then tried the ajax way Nathan provided and I ha

Re: Integrating Tapstry IOC only

2016-04-25 Thread Thiago H de Paula Figueiredo
On Fri, 22 Apr 2016 04:27:26 -0300, Adam X wrote: Why? Just curious. :) Well, that brings me to my problem. What I'm really after is Tapestry's ordered configuration and its chain builder service, so I thought I may as well use IOC since I don't think I can split them. You mean just use dis