• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Edit DataTable

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Morning All (Beginner to Java)

I am connected to a mssql database and displaying the results set in my index.jsp page. I now want to update the datable directly to the database. I have a h:selectBooleanCheckbox and want to update the table via the check box

Can someone help em with the code

Tx
Anthonio
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I take it you are familiar with the JDBC API?

I think this thread would sit better on the JDBC forum. Moving.
 
Anthonio Booysen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am not that clued with API, but I have the connections in place. The only thing i need to get my update working.

What I have currently is a selectBooleanCheckbox where they can select what they want to update. I would like to let it render a input text which I have in my code and to buttons





So when they click the radio selectBooleanCheckbox and press the webPageUpdate it should open a text for them to change the values. After changing the values they will then click the saveChanges button it will then write the value to the database.

In my SDRDataAccessDAO class I have a method with my update statement



I need some assistance with this please.

Tx
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic