Alexey Timokhin wrote:
Would that mean I need to create some memory spaces inside JS and store the values there, and on Submit or page reload, store the values inside the bean, do the needed processing, and display what needs to be displayed?
I believe your mixing two separate approaches for saving the data.
1. Form submission
- You'll need to store your Bean values in the DOM (as input/checkbox/etc.. elements inside your <form> tag) NOT
- Once the user clicks submit, because they are in the DOM, they would be visible to your destination page/servlet/etc...
- You would not require the submission of the form. You don't require the form tag at all most likely.
Also, to Bear's point, your bean is long gone by the time the page renders. So you would not be able to "store the values inside the bean."