click on the checkbox and save into database
hi i have a requirement like when i click on a checkbox and press a button ,which it should dispaly a message get saved onto the database.
to display message i have used FacesContext..
how can it be saved onto to the database on clicking of a button can any body hel me with the code??
Re: click on the checkbox and save into database
This is as basic as you can possibly make it - a normal form submission which leads to an action method being invoked in a JSF backing bean in which you do things and stuff with the information submitted.
I suggest you read -any- book on JSF and learn the basics of the basics. And possibly also read up on JDBC so you know how to do database stuff.