Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf checkbox

 
jayashri hosur
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope the below url provide solution to your problem.
http://balusc.blogspot.com/search/label/Validator
 
Bhaskar GR
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:column>
<h:selectBooleanCheckbox value="#{jobs.marked}">

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

like this every checkBox you have to call method in backing bean
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic