Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Thiago, Hi Hammer! :) Friends call me nille. Hey! That's my open source code being used by someone besides me! Nice. :D Just trying to learn from the masters ;-) .Maybe the solution to what you want to do is to use ApplicationStateManager directly. That's the trick! Thinking about your

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread Martin Strand
On Tue, 23 Jun 2009 22:32:25 +0200, nille hammer tapestry.nilleham...@winfonet.eu wrote: That's the trick! Thinking about your hint I rewrote GenericEntityPageT a bit. Code follows: /** * @return the page to be forwarded to in case value does not exist as SSO */

Re: Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Martin, thanks for the hint. protected ClassT getValueClass() { return (ClassT) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; } I use something similar in DAOs, idea came from here: https://www.hibernate.org/328.html Similar to the

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread Thiago H. de Paula Figueiredo
Em Tue, 23 Jun 2009 17:32:25 -0300, nille hammer tapestry.nilleham...@winfonet.eu escreveu: Hi Thiago, Hi Nille! Hi Hammer! :) Friends call me nille. Just joking. :P Hey! That's my open source code being used by someone besides me! Nice. :D Just trying to learn from the masters ;-)