Examples of OnChangeSingleChoiceBehavior


Examples of org.wicketTutorial.behaviors.OnChangeSingleChoiceBehavior

    List colors = Arrays.asList(new String[] { "Red", "Blue", "Green", "Yellow"});
    IModel radioModel = Model.of();
    IModel selectModel = Model.of();
   
    add(new RadioChoice("choices", radioModel, colors)
          .add(new OnChangeSingleChoiceBehavior()));
    
    add(new DropDownChoice("drpDwnChoices", selectModel, colors)
          .add(new OnChangeSingleChoiceBehavior()))
   
    add(new Label("radioModel", radioModel));
    add(new Label("selectModel", selectModel));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.