Dojo Checkbox

Complete Java Server Faces (JSF) Tutorial - JSF Tutorials. JSF Tutorials at Rose India covers everything you need to know about JSF, This JSF Tutorial contains readable and interesting content organized in proper and sequential manner. Each concept has been explained by simple examples so that you can understand easily and implement immediately into your java web application. It provides coverage of key JSF concepts such as User Interface(UI) components, Renderers, Backing beans, Validators, Converters, Navigation, Event handling, Expession language, Messages etc...

Dojo Checkbox


In this section, you will learn how to create a checkbox in dojo. For creating checkbox you require "dijit.form.CheckBox". The checkbox button do some action on press. 

[Checkboxes are used when there are multiple lists of options and user may select any number of choices, including zero, one, or more. Each checkbox is independent of all other checkboxes in the list, so checking one box doesn't uncheck the others.]

Check boxes are the same as html but dojo provides more controls and styling options than a conventional check box. The checkbox contains Boolean types value either 'true' or 'false'. The following example creates a Checkbox:


Here is the code of Program:

  <!-- check box -->
  <script type="text/javascript">

  <h2>Check box</h2>
  <input id="cb" dojotype="dijit.form.CheckBox" name="developer" 
"checked" value="on" type="checkbox" />
  <label for="cb"> Are you a Developer </label> 

Output of Program:

Share on Google+Share on Google+

Dojo Checkbox

Posted on: April 18, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles



Discuss: Dojo Checkbox  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image