File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes jsf checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf checkbox" Watch "jsf checkbox" New topic

jsf checkbox

jayashri hosur

Joined: Jun 05, 2008
Posts: 8
in my jsp i have more than one checkbox buttons if user select all those, then only i want to go to next page otherwise i want to display message all are mendatory .i did the application but if i select one or less also it is going
to nextpage
so help me please
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
Hope the below url provide solution to your problem.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Bhaskar GR

Joined: Jun 13, 2008
Posts: 28
Hi ,
In jsp page every checkbox you have to call one actionListener method.
In backing bean you have to veryfy every actionListener method.If it checked or not.
<h:selectBooleanCheckbox value="#{jobs.marked}">

<a4j:support event="onclick" actionListener="#{tableData.rowSelected}" reRender="navin"/>

like this every checkBox you have to call method in backing bean
I agree. Here's the link:
subject: jsf checkbox
It's not a secret anymore!