> The panel is a detail form. The detail form contains a link back to the
> search results. I want to put the link in the detail form since this is the
> only time that it will appear, but this link action needs a reference to the
> search results panel to toggle the visibility back to true.
It is better not to "toggle" visibility. It is best if you override
the isVisible method and evaluate whether it should be visible or not
('hollywood principle').
> 1) Have all panels be anonymous subclasses so they can all reference each
> other.
> 2) Have the other panel passed in as constructor argument for the other panel.
> 3) Have the main application page passed into the constructor the controlling
> panel.
You could also have a new Model<Boolean>() that you pass to the object
that is responsible for 'toggling'.
The bottom line being not to reference using Wicket Components,
instead try to reference across using models, if necessary.
**
Martin
>
> Any thoughts on the options?
>
> BTW, wow- i am doing some amazing stuff with wicket and I am excited!
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]