@@ -0,0 +1,1695 @@
+package lt.inventi.wicket.component.bootstrap.form;%0A%0Aimport java.util.Arrays;%0A%0Aimport org.apache.wicket.markup.html.form.IChoiceRenderer;%0Aimport org.apache.wicket.model.IModel;%0A%0A/**%0A * Radio choice which creates two values for a boolean-backed model.%0A * %3Cp%3E%0A * This control serves as an alternative to checkboxes, especially in%0A * bootstrap's horizontal forms. See %3Ca href=%0A * %22http://ux.stackexchange.com/questions/22532/laying-out-checkboxes-in-forms%22%0A * %3Ethis UX Stackexchange question%3C/a%3E for more information and supporting%0A * ideas.%0A * %3Cp%3E%0A * You can localize the labels for true/false options by providing localization%0A * properties for:%0A * %3Col%3E%0A * %3Cli%3EBooleanRadioChoice.YES%3C/li%3E%0A * %3Cli%3EBooleanRadioChoice.NO%3C/li%3E%0A * %3C/ol%3E%0A * %0A * @author vplatonov%0A * %0A */%0Apublic class BootstrapBooleanRadioChoice extends BootstrapRadioChoice%3CBoolean%3E %7B%0A%0A    public BootstrapBooleanRadioChoice(String id) %7B%0A        super(id, Arrays.asList(Boolean.TRUE, Boolean.FALSE), new BooleanRadioChoiceRenderer());%0A    %7D%0A%0A    public BootstrapBooleanRadioChoice(String id, IModel%3CBoolean%3E model) %7B%0A        super(id, model, Arrays.asList(Boolean.TRUE, Boolean.FALSE), new BooleanRadioChoiceRenderer());%0A    %7D%0A%0A    private static class BooleanRadioChoiceRenderer implements IChoiceRenderer%3CBoolean%3E %7B%0A        @Override%0A        public Object getDisplayValue(Boolean object) %7B%0A            return Boolean.TRUE.equals(object) ? %22BooleanRadioChoice.YES%22 : %22BooleanRadioChoice.NO%22;%0A        %7D%0A%0A        @Override%0A        public String getIdValue(Boolean object, int index) %7B%0A            return String.valueOf(object);%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected boolean localizeDisplayValues() %7B%0A        return true;%0A    %7D%0A%7D%0A

Add Bootstrap BooleanRadioChoice as an alternative to single checbox