You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ondrej Fafejta (JIRA)" <ji...@apache.org> on 2013/03/05 11:37:12 UTC
[jira] [Commented] (WICKET-5076) Wizard: form.process is called
after step content is replaced
[ https://issues.apache.org/jira/browse/WICKET-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13593291#comment-13593291 ]
Ondrej Fafejta commented on WICKET-5076:
----------------------------------------
Example is available on
https://github.com/fafejtao/wicketWizardInnerFormBug
> Wizard: form.process is called after step content is replaced
> -------------------------------------------------------------
>
> Key: WICKET-5076
> URL: https://issues.apache.org/jira/browse/WICKET-5076
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.5.6, 6.6.0
> Environment: Linux debian unstable 64-bit
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Reporter: Ondrej Fafejta
>
> I use wizard api from wicket extensions.
> Next button is implemented like org.apache.wicket.extensions.wizard.NextButton.
> It means: if step is complete wizardModel.next() is called and step content is replaced.
> I send you example - see attachment.
> In the example Step2Panel contains inner form "innerForm".
> The problem is when we leave step 1 (click to next button) - innerForm.onSubmit from step 2 is called.
> Obversely when we leave step 2 innerForm.onSubmit is not called!
> One solution is to call form.process(null) manually in Nextbutton.onClick before step content is replaced. It is wrong again becaouse innerForm.onSubmit is called twice.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira