On Mon, 18 Feb 2008, Mazzanti Luca wrote:
> i have a question: how can i comunicate between panels in wicket?

The normal Wicket way is to share models, pass references etc, 
but it has its limitations. 

You can find an example of a push-type mechanism here

  https://issues.apache.org/jira/browse/WICKET-1312

though it is done with just one page in mind.

> 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');

This seems strage to me, I wouldn't put Components to Session.

You might want to step back to think about what it is that 
you want to achieve, and maybe post here about the more 
general issue. Maybe there is a better solution for your 
real case than the panels of different pages communicating 
between each other.

> There is a BEST SOLUTION? that i don't know

No :)

  http://www.satisfice.com/blog/archives/27

_Best_ wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to