Re: Fwd: Default values for a grid : concept erroneus ?

2011-11-24 Thread Jose Luis Sanchez
thanks .. that worked :) Hi! Never persist search results: persist the parameters. ;) Besides that, I'd remove the transactions field and make the getTransactions() method look like this: public ListTransaction getTransactions() { return (ListTransaction)

Re: Fwd: Default values for a grid : concept erroneus ?

2011-11-24 Thread Thiago H. de Paula Figueiredo
On Thu, 24 Nov 2011 07:27:42 -0200, Jose Luis Sanchez joseluis.sanc...@m-centric.com wrote: thanks .. that worked :) Are you a previous user of Struts, WebWork or some other request-oriented Web framework? Your previous code made me think that, as you got all data before rendering

Re: Fwd: Default values for a grid : concept erroneus ?

2011-11-24 Thread Jose Luis Sanchez
Well, struts 1.x, but since 2009 i'm using tap5.x So, what are your recomendations ? Which is the default/recommended Tapestry5 behaviour ? I always get the data before rendering .. which WIKI/DOC do you recommend me to take a look at ? On Thu, 24 Nov 2011 07:27:42 -0200, Jose Luis

Re: Fwd: Default values for a grid : concept erroneus ?

2011-11-24 Thread Thiago H. de Paula Figueiredo
On Thu, 24 Nov 2011 08:17:55 -0200, Jose Luis Sanchez joseluis.sanc...@m-centric.com wrote: Well, struts 1.x, but since 2009 i'm using tap5.x Hehehe, I was right. :) So, what are your recomendations ? Which is the default/recommended Tapestry5 behaviour ? I always get the data before

Default values for a grid : concept erroneus ?

2011-11-23 Thread Jose Luis Sanchez
Hi everyone ! I've been using T5 since 5.0, and now, being eager to get my hands on the final 5.3 release, am facing some concepts doubts , that i'd like you to sort me out. Currently, i have a T5.2.6 App, working perfectly, but as i have been asked to perform a change, and it's not working

Re: Default values for a grid : concept erroneus ?

2011-11-23 Thread Thiago H. de Paula Figueiredo
Hi! Template and code please. :) Either way, instead of persisting search results, I just fetch them in getTransactions(). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação

Re: Default values for a grid : concept erroneus ?

2011-11-23 Thread Jose Luis Sanchez
El 23/11/11 20:06, Thiago H. de Paula Figueiredo escribió: Hi! Template and code please. :) Either way, instead of persisting search results, I just fetch them in getTransactions(). Well, this is the page .. no special about it t:form t:id=searchTransactions t:errors/ table tr tdt:label

Fwd: Default values for a grid : concept erroneus ?

2011-11-23 Thread jose luis sanchez
El 23/11/11 20:06, Thiago H. de Paula Figueiredo escribió: Hi! Template and code please. :) Either way, instead of persisting search results, I just fetch them in getTransactions(). Well, this is the page .. no special about it t:form t:id=searchTransactions t:errors/ table

Re: Fwd: Default values for a grid : concept erroneus ?

2011-11-23 Thread Thiago H. de Paula Figueiredo
Hi! Never persist search results: persist the parameters. ;) Besides that, I'd remove the transactions field and make the getTransactions() method look like this: public ListTransaction getTransactions() { return (ListTransaction) theSession.createCriteria(Transaction.class)