use of org.apache.wicket.markup.html.form.RadioChoice in project midpoint by Evolveum.
the class ExecuteChangeOptionsPanel method createTracingRadioChoicesFragment.
private Fragment createTracingRadioChoicesFragment(String componentId) {
Fragment fragment = new Fragment(componentId, ID_TRACING_CONTAINER, ExecuteChangeOptionsPanel.this);
RadioChoice<TracingProfileType> tracingProfile = new RadioChoice<>(ID_TRACING, PropertyModel.of(ExecuteChangeOptionsPanel.this.getModel(), ExecuteChangeOptionsDto.F_TRACING), PropertyModel.of(ExecuteChangeOptionsPanel.this.getModel(), ExecuteChangeOptionsDto.F_TRACING_CHOICES), createTracinnChoiceRenderer());
fragment.add(tracingProfile);
AjaxLink<Void> resetChoices = new AjaxLink<>(ID_RESET_CHOICES) {
@Override
public void onClick(AjaxRequestTarget target) {
ExecuteChangeOptionsPanel.this.getModelObject().setTracing(null);
target.add(ExecuteChangeOptionsPanel.this);
}
};
fragment.add(resetChoices);
return fragment;
}
Aggregations