Results 1 to 3 of 3
  1. #1
    raycini is offline Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    0

    Default Updating Displayed Table Rows

    Hi,

    I am using a table in JSF which is binded to a table in a mysql DB to display data in the database. In the same page i have some field to add data to the table in the database and when the button is clicked the entity manager persist function in a separate session bean adds the row to the data base.

    Can please someone tell me how can the table be refreshed as to display the added row in the database

    Thanks

    Ray

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    U should use AJAX, if you add some data in the database at the same page where the table si, then create AJAX, which will execute bean of inserting data into the database and then in the this function call the function to update the table.

  3. #3
    raycini is offline Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Updating database table from JTable
    By yesjava in forum New To Java
    Replies: 1
    Last Post: 08-16-2008, 10:16 PM
  2. Nodes displayed in JTree
    By Orange in forum AWT / Swing
    Replies: 6
    Last Post: 08-08-2008, 05:07 AM
  3. Tooltip not getting displayed...
    By Preethi in forum New To Java
    Replies: 4
    Last Post: 07-31-2008, 10:00 AM
  4. Color cells and rows in SWT table
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-11-2008, 04:31 PM
  5. displayed the rownumbers
    By geeta_ravikanti in forum JDBC
    Replies: 1
    Last Post: 04-22-2008, 02:30 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
  •