-
Notifications
You must be signed in to change notification settings - Fork 1
CheckBox Input Block
Socheat KHAUV edited this page Dec 3, 2017
·
5 revisions
HTML Code
<div wicket:id="{logic}Block" class="form-group">
<wicket:container wicket:id="{logic}IContainer">
<label> </label>
<span style="display: block">
<label>
<input type="checkbox" wicket:id="{logic}Field">
<wicket:message key="{logic}Field">{{logic}Field}</wicket:message>
</label>
</span>
<span wicket:id="{logic}Feedback" class="help-block"></span>
</wicket:container>
</div>
Java Code
protected WebMarkupBlock {logic}Block;
protected WebMarkupContainer {logic}IContainer;
protected Boolean {logic}Value;
protected CheckBox {logic}Field;
protected TextFeedbackPanel {logic}Feedback;
protected void init{Logic}Block() {
this.{logic}Block = new WebMarkupBlock("{logic}Block", Size.Six_6);
this.form.add(this.{logic}Block);
this.{logic}IContainer = new WebMarkupContainer("{logic}IContainer");
this.{logic}Block.add(this.{logic}IContainer);
this.{logic}Field = new CheckBox("{logic}Field", new PropertyModel<>(this, "{logic}Value"));
this.{logic}IContainer.add(this.{logic}Field);
this.{logic}Feedback = new TextFeedbackPanel("{logic}Feedback", this.{logic}Field);
this.{logic}IContainer.add(this.{logic}Feedback);
}