Skip to content

Commit

Permalink
Add checkbox css to java world
Browse files Browse the repository at this point in the history
  • Loading branch information
keesvandieren committed Dec 18, 2024
1 parent 7ee7fea commit a94a7cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import nl.rotterdam.design_system.wicket.components.button.utrecht.UtrechtButton;
import nl.rotterdam.design_system.wicket.components.button_group.utrecht.UtrechtButtonGroupBorder;
import nl.rotterdam.design_system.wicket.components.form_field_checkbox.utrecht.UtrechtFormFieldCheckbox;
import org.apache.wicket.markup.html.form.*;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.PasswordTextField;
import org.apache.wicket.markup.html.form.RequiredTextField;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;
Expand Down Expand Up @@ -42,14 +45,20 @@ protected void onInitialize() {
actionGroup.add(new UtrechtButton("submit"));
}

@Override
protected void onError() {
super.onError();
error("On error called. Only possible in classic browsers who don't support 'required' attribute.");
}

@Override
protected void onSubmit() {
super.onSubmit();

info("Submitted!");

System.out.println("Received username: " + username.getObject());
System.out.println("Received rememberMe: " + rememberMe.getObject());

super.onSubmit();
}
}
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<wicket:extend>
<main>
<form wicket:id="loginForm"></form>
<div wicket:id="loginForm"></div>
</main>
</wicket:extend>

0 comments on commit a94a7cf

Please sign in to comment.