Skip to content

Commit

Permalink
changed Form to MidpointForm on the wizard panel; set multipart=true …
Browse files Browse the repository at this point in the history
…to avoid 500 error
  • Loading branch information
KaterynaHonchar committed Sep 19, 2023
1 parent 35b2f23 commit a52eb4d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.AssignmentHolderDetailsModel;

import com.evolveum.midpoint.web.component.form.MidpointForm;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.form.Form;
Expand Down Expand Up @@ -72,7 +74,8 @@ private void showFragment(AjaxRequestTarget target, Fragment fragment) {
protected Fragment createWizardFragment(Component wizardPanel) {
Fragment fragment = new Fragment(ID_FRAGMENT, ID_WIZARD_FRAGMENT, AbstractWizardPanel.this);
fragment.setOutputMarkupId(true);
Form mainForm = new Form(ID_MAIN_FORM);
MidpointForm mainForm = new MidpointForm(ID_MAIN_FORM);
mainForm.setMultiPart(true);
fragment.add(mainForm);
wizardPanel.setOutputMarkupId(true);
mainForm.add(wizardPanel);
Expand Down

0 comments on commit a52eb4d

Please sign in to comment.