Timo Rantalaiho wrote:
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.

This patch is almost what I want, cool!

A question though: When sharing models between components, or using PropertyModels on a shared model, I would like to have onModelChanged events when something in that model changes. That way Components that use the model could use the onModelChanged method to add themselves to the AjaxRequestTarget (using AjaxRequestTarget.get() or (RequestCycle.get().getRequestTarget() instanceof AjaxRequestTarget) in wicket-1.2.x). Unfortunalety onModelChanged is only called when a model or model object is explicitly set on a component. Is there a way to make this more transparent? I was thinking along the lines of adding PropertyChangeSupport to all my model objects, but that would be very laborious. An aspect-oriented solution might do the trick too.
Any ideas?

Matthijs.

--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500

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

Reply via email to