You mean something like:

new MarkupContainer("foo").add(new Link("link").add(new Label("label")){ public void onClick() {
   getParent();
});

?

Nick Heudecker wrote:

Hi,

Suppose I have a newly created parent object and I want to create
child objects that belong to the parent. By "belong", I mean that I
set the reference from the parent to the child. How do I get access to
the parent object?  I'm not explicitly removing it from the Page class
when the user completes the process.

Is there an example app that does this?  Thanks.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to