Announcement Announcement Module
Collapse
No announcement yet.
spring:bind inside javascript Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring:bind inside javascript

    Is it possible to bind command object values inside javascript??.

    I have a scenario where I want to bind the pageNo value to command object only when the user clicks that specific pageNo.

    Currently, when user clicks pageNo link form gets submitted with pageNo value. I get this value in FormController using request.getParameter("pageNo").

    Code:
    function submitForm(theForm, theFormAction,pageNo) {
        theForm.pageNo.value = pageNo;
        theForm.action=theFormAction;             
        theForm.target="_self";
        theForm.submit(); 
    }
    Thanks,
    Moorthi

  • #2
    Command object values are bound in Java code using submitted form data. You can use Javascript to alter web form field values which are then submitted and bound to the command object. Is this what you mean?

    Comment

    Working...
    X