package fastSupport.data; public class AllertContext { @ApplicationState(create=false) private DataContext dataContext; private boolean dataContextExists;
@ApplicationState protected Clientes cliente; private boolean clienteExists; @ApplicationState(create=false) private UsuariosClientes usuario; private boolean usuarioExists; This was needed to paste too... About the plural, it was a quick test with cayenne, not production. On Thu, Jan 22, 2009 at 4:03 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 22 Jan 2009 13:58:54 -0300, Sid Ferreira <sid....@gmail.com> > escreveu: > > Im sorry but, I readed twice today, more two or tree times before... I >> can't see a reason to not work. >> > > The key sentence is this: "Any other component or page that declares a > field of the *same type*, regardless of name, and marks it with the > ApplicationState annotation will share the same value. It's that simple." > > In one page, you put @ApplicationState in a Clientes field. In the other, > you put that annotation in a field with another type. They should have the > same type (in this case, Clientes). > > By the way, if Clientes is a class that represents a single client, not a > collection of them, name it Cliente, not Clientes. > > -- > 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 > > -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations