Results 1 to 2 of 2
  1. #1
    desiretolearn is offline Member
    Join Date
    Mar 2014
    Posts
    4
    Rep Power
    0

    Default 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.
    any suggestions???

    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??

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,004
    Rep Power
    6

    Default 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.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. How to save the results for checkbox
    By pink123 in forum AWT / Swing
    Replies: 1
    Last Post: 03-07-2011, 10:19 PM
  2. How can i save DATETIME to the database?
    By ashin in forum SWT / JFace
    Replies: 5
    Last Post: 08-24-2010, 04:05 AM
  3. How to save image in database
    By sandeep23k in forum Advanced Java
    Replies: 3
    Last Post: 08-02-2010, 12:02 PM
  4. Replies: 3
    Last Post: 07-27-2010, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •