Hi all guys. I’m writing an application on the web-e . This is a new and complex area for me, I switched from android Jsf(primefaces),Hibernate,Js(jQuery). From each I know a little bit, the bottom line is the table that is filled with data from the database using HIbernate , and I take this data with the help of jquery process it, etc. In the table for each column 100, this is a button. another script that takes my processed data and inserts it into the bin and then through the method I will update this value in the database. click . I have to do it on Jave, but how do I run the script inside the java method ??? The guys will be grateful for everything for any hints of direction, I really need help ... I don’t know what to do ... Thank you
|
1 answer
Perhaps you will help scheme SPA. From java, you can call javascript for example in the form of a callback, i. all the same, to catch click with the help of js, to transfer control to java with the help of Ajax, execute the logic of java code and return the data back to the script where to execute the callback with the necessary js.
- Can you tell me more in detail to transfer the control of java using Ajax to tell me about this?) - elik
- If you use jQuery, then Ajax is well written in Part 3 of the book Adam Freeman "jQuery for Professionals" 2013 - Deum
- Thank you for looking at it! - elik
|