Getting the value of AjaxCheckBox

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Getting the value of AjaxCheckBox

nomis1
AjaxCheckBox checkbox = new AjaxCheckBox("check", Model.of(Boolean.FALSE)) {
    private static final long serialVersionUID = 1L;

    protected void onUpdate(AjaxRequestTarget target) {
        target.addComponent(this);
    }
};

Component checkbox = findComponent(this.getPage(), ComponentPanel, true);

How do I retrieve the value of the checkbox once the user has submitted the form? Very new to Java.