Customer Object binding problem when submitted as Form "Get".
-------------------------------------------------------------

                 Key: STS-422
                 URL: http://mc4j.org/jira/browse/STS-422
             Project: Stripes
          Issue Type: Bug
          Components: ActionBean Dispatching
    Affects Versions: Release 1.4.3
            Reporter: ray bao
         Assigned To: Tim Fennell


Hi, there,
  I got a rather strange problem, I have to attach some dynamic information to 
to parameter list before "submit", so when user click "submit" type of button, 
function updateDocument() is called, and in this function form eventually 
submitted.

<script>
function updateDocumentNode(nodeid,idname,idvalue) {
                formObj=document.forms[0];
                objectidstring=idname+"="+idvalue; 
               
formObj.action="/do.action?updateNode=&node.nodeId=50&type=iframe&_sourcePage="/view.action"
                   
                formObj.submit();
        }
</script>


The problem is that the Object "node" is not populated in the 
ActionBean(do.action updateNode method), 
while there  is no problem to capture "type" and "_sourcePage".  
If I somehow define "node.nodeId" as a input field inside 
<strips:form action="/do.action">, 
such as <input type="text" name="node.nodeId" /> 
Then node Object is created and nodeId is populated in the ActionBean.  
I did further test, which changed the method of form to "get", such as 
<stripes:form action="/do.action" method="get">
 then the node and node.nodeId is not captured again. 

  Is there anything I need be aware regarding binding customer Object 
in senarios of form  method="get" vs. method="post" ????
  
 Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
Stripes-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to