Em Mon, 22 Jun 2009 19:08:40 -0300, nille hammer <tapestry.nilleham...@winfonet.eu> escreveu:

Hi List,

Hi Hammer! :)

    @SessionState
    private T value;

@SessionState is handled by ApplicationStateManager per type, so I guess that it looked at your field and saw an Object.

I have looked for inspiration on ars-machina (http://www.arsmachina.com.br/project/tapestrycrud/usage).

Hey! That's my open source code being used by someone besides me! Nice. :D

But there the generic values aren't used as SessionState but get/set in the code. Is it somehow possible to use generic fields as SessionState values?

Tapestry CRUD (one of the packages in the Ars Machina Project) has a class, BaseEditPage, that should be the one you were looking. But it uses @Persist, not @SessionState, and they're handled a little bit differently by Tapestry. Maybe the solution to what you want to do is to use ApplicationStateManager directly, but I guess you should use @Persist instead of @SessionState.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to