Re: Nested forms in WizardStep

2017-11-17 Thread Sven Meier

Hi,

I never had to build such a scenario, but IFormVisitorParticipant can 
help you?


Let your nested Form (or its parent) implement the interface and return 
false from #processChildren().


Have fun
Sven


Am 17.11.2017 um 09:18 schrieb Dirk Forchel:

No, I was not searching for a solution how to "disabling nested form
validation" as I was unsure whether it's a proper solution to use nested
forms in a WizardStep.
To get an impression how the checkout should look like have a look at
http://demo.designing-world.com/bigshop-aa/bigshop/checkout-1.html.
Exists a best practice solution how to deal with those scenarios? I'm just
curious.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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




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



Re: Nested forms in WizardStep

2017-11-17 Thread Dirk Forchel
No, I was not searching for a solution how to "disabling nested form
validation" as I was unsure whether it's a proper solution to use nested
forms in a WizardStep. 
To get an impression how the checkout should look like have a look at
http://demo.designing-world.com/bigshop-aa/bigshop/checkout-1.html. 
Exists a best practice solution how to deal with those scenarios? I'm just
curious.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Nested forms in WizardStep

2017-11-16 Thread Sven Meier
Have you tried 
https://stackoverflow.com/questions/26502864/disabling-nested-form-validation-in-wicket 
?


Have fun
sven


Am 16.11.2017 um 18:19 schrieb Dirk Forchel:

Currently we use the Wizard/WizardStep classes from wicket-extensions to set
required data for an object (in our case a checkout process with some user
Information, e.g. addresses etc.).
The first step contains a Login form with two "required" input components
for the credentials and a separate "Login" button and a Panel with two ratio
buttons where the user must decide whether to go on without login
(anonymous) or to register a new user account.
Only the values for the ratio buttons should be triggered by this step with
the "next" button.
The Login itself should be triggered with the additional "login" button
which is not part of the ButtonBar.

As far as I know it's not good to have nested forms. We don't need to have
forms inside our steps actually, since the Wizard itself has a form already.
I've noticed that if the user hits the "next" button, the form validation
for the login form ist triggered as well, but it should not. The form
processing for the login form should actually not part of step, but the
"login container" must be part of the view.

What is the best solution to implement this scenario? I implemented the step
without an additional form component and used an AjaxButton. In
AjaxButton#onSubmit I implemented the authentication stuff.  But further on
I got some problems with updating the current state and how to go on to the
next step.
Also I've noticed, that pressing the "next" button would require some input
for the credentials. So I'm a bit confused now.
I hope, I could express myself clearly.

Could someone give me some hint? Thank you very much.


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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




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