On Sun, Mar 27, 2011 at 10:19 PM, fernandospr <fernando...@gmail.com> wrote:
> @James thanks for the example code, but I'm not quite sure if I'm following.
> Please could you please put an example on which would be the first page,
> second page(selection)?

In our application, you would be on a page where you need to choose
(in a drop-down) a "foo".  If it's not there, then you'd click a link
to go through the loop page to create one.  Once it's created, you go
back to the original page and the new "foo" shows up and it's
selected.  In your case, you wouldn't be creating anything
(necessarily), the logic in my onCreate() method (minus the repository
stuff) would go in the handler code for the link to choose one of the
listed objects.

> What is fooRepostiory?

Think of a "repository" as a DAO.  The fooRepository is a reference to
a FooRepository object which represents the collection of all Foo
objects.  For more information on Repositories, Entities, etc., you
should check out the Domain-Driven Design book by Eric Evans:

http://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215

> Is that the object being shared by both pages?

No.

> Where is onCreate method?

For my particular situation, it was on a form.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to