Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Update a database in WebGrid (JSF)
posted

Can you please point me to some example code to doing C.R.U.D. operations using the JSF WebGrid?  I did not see any examples in the demo code and the knowledge base articles only have VB and C# examples. 

I have a WebGrid that is bound to an Oracle database, with gridEditing enabled.  But I'm not sure how to go about pushing updates from the grid back to the database.

Thanks,

Nick

  • 1579
    posted

    Hi,

    You can create a DataModel to bind to the grid and use Hibernate to update the changes in your DataModel in the database. Remember to rebind your grid to the DataModel after changes are performed (using grid.dataBind() ).

    Regards!