JSF selectbooleancheckbox Example

The JSF selectBooleanCheckBox renders an HTML <input> component of type checkbox. Here below is the JSF and its corresponding HTML tag


JSF => <h:selectBooleanCheckbox />

HTML => <input type=”checkbox” id=”j_idt2:i1″ name=”j_idt2:i1″ checked=”checked” />


JSF h:selectBooleanCheckBox Example

The below form has a h:selectBooleanCheckBox bound to the backing bean property ‘human’. The backing bean prints the status of checkbox when the users hits the submits button




Below is the backing bean class. The boolean property bound to the selectBooleanCheckbox




The h:selectBooleanCheckBox renders like below in the browser


JSF_SelectBooleanCHeckBox_Example-1 JSF selectbooleancheckbox Example



Download the JSF Project



govindan JSF selectbooleancheckbox Example
Connect me


Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan JSF selectbooleancheckbox Example
Connect me
By | 2017-11-25T00:58:58+00:00 November 25th, 2017|Categories: JSF|Tags: , , , , |0 Comments
Like us on Facebook.