Use Wicket's models:

PanelA(id) { ... add(new PanelB("B", someVarModel)) ... }

PanelB(id, someVarModel) { ... someVarModel.setObject(anotherValue) ... }
Sven


On 05/15/2012 07:57 PM, nunofaria11 wrote:
Hi everyone,

I am fairly new to Wicket, and probably my question has more to do with Java
than with Wicket, but still I'd like to get some feedback if thats ok.

Lets say that I have a Panel "B" inside a Panel "A"; panel B receives a
parameter from A

PanelA(id)            { ... add(new PanelB("B", someVar)) ... }

PanelB(id, someV) { ... someV = anotherValue ... }

what is the best way to communicate to A that the value was changed in B.

I though of using the following: Ajax and AtomicReferences.
Does anyone have any opinion?

Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Changing-values-by-reference-in-child-components-is-it-possible-tp4635008.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
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]

Reply via email to