Panel A puts the state information in the session during Link.onClick()

Panel B uses Session.getSession() to retrieve the state information during
render()

this simple technique is what i use and its very efficient.


On 2/18/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> panels in session is a bad idea.
>
> Why not just keep the panel state information in the session and then let
> them just pull it from there when they instantiate?
>
>
> By the way, what are you trying to achieve with your panels cuz it is a
> bad idea to be stuffing up panels in your session when you can simply keep
> the state information the panels need there.
>
> If you instantiate a new Panel, the new Panel can call
> getSession().getInformationStateId(), pass that informationState to an
> IModel and then the Panel has whatever it needs
>
>
>
> On 2/18/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> >
> > WHY ARE YOU SHOUTING?
> >
> > Martijn
> >
> > On 2/18/08, Mazzanti Luca <[EMAIL PROTECTED]> wrote:
> > >
> > > i have a question: how can i comunicate between panels in wicket?
> > >
> > > my application contains a frameset of 2 pages, each of these has a
> > > tabbedPanel containing many panels:
> > > ----------------structure--------------
> > >
> > >                          APP
> > >        PAGE1                         PAG2
> > > panel panel panel        panel panel panel
> > >
> > > ---------------------------------------
> > >
> > > what is a good solution?
> > > MY solution is to:
> > >
> > > 1)extends WicketSession and implements get/set methods to retrieve
> > insances
> > > of these panels
> > > 2)use it:
> > >
> > >    Panel donald = ( (MySession) panel.getSession()
> > ).getPanel('donaldduck');
> > >
> > > so i can retrieve insance of foo panel everywhere and use its public
> > > methods.
> > >
> > > IS A CORRECT SOLUTION?
> > > and then... PUTTING PANELS INSTANCES IN SESSION is a bad
> > implementation
> > > about MEMORY AND wicket SERIALIZATION ?
> > >
> > > There is a BEST SOLUTION? that i don't know
> > > Thanks.
> > >
> > > --
> > > View this message in context:
> > http://www.nabble.com/comunication-between-panels-tp15542127p15542127.html
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.1 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Aladejebi Ayodeji A.,
> DabarObjects Solutions
> Phone: +234 9 481 7 156
> Mobile: +234 803 589 1780
> Email: [EMAIL PROTECTED]
> Web: www.dabarobjects.com
> Blog: blog.dabarobjects.com
>
> Participate, Collaborate, Innovate
> Join Community:
> http://www.cowblock.net/
>
> Get A Free Blog:
> http://blogs.cowblock.net/




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/

Reply via email to