You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mac <gm...@gmail.com> on 2013/03/13 15:15:51 UTC

Proper models approach

Hi,
I have a wizard-like panel for gathering user input data. Panel is built
with base panel and replaceable steps panels (every step panel gathers
different data, last step stores it to DB).
What is best approach for using Wicket models? Should I create big wrapper
object containig all data, set it as default model (LDM) in base panel and
pass it to steps panels?

Thanks,
mac



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Proper-models-approach-tp4657211.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Proper models approach

Posted by mac <gm...@gmail.com>.
Thanks for the answer.
Existing wizard wasn't fitting for my specification, therefore I needed to
create my own component...

mac



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Proper-models-approach-tp4657211p4657272.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Proper models approach

Posted by Paul Bors <pa...@bors.ws>.
Why not use the existing Wicket Wizard already?
See the live examples at:
http://www.wicket-library.com/wicket-examples/wizard/;jsessionid=25DD01023009791E13E212292E4150D1?0

I think I used a combination of models depending on the panel shown. In the
end they all updated a single model.

~ Thank you,
   Paul Bors
On Wed, Mar 13, 2013 at 10:15 AM, mac <gm...@gmail.com> wrote:

> Hi,
> I have a wizard-like panel for gathering user input data. Panel is built
> with base panel and replaceable steps panels (every step panel gathers
> different data, last step stores it to DB).
> What is best approach for using Wicket models? Should I create big wrapper
> object containig all data, set it as default model (LDM) in base panel and
> pass it to steps panels?
>
> Thanks,
> mac
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Proper-models-approach-tp4657211.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>