Hi, Martin.  Thanks for your response.  Unfortunately, I still feel lost. 
(Let me say that I have programmed computers every day for over 40 years and
have spent the last three days totally immersed in Tapestry documentation
and a large existing Tapestry code base that doesn't happen to have an
example of this requirement.  I have tried dozens of experiments to meet
this requirement.  So I don't feel my being lost is from a lack of effort or
background.)

I realize that to a more experience T5 person, what you sent would no doubt
be sufficient, but it's missing too much information for me to understand
how to code what I need.  I still don't understand how to code the t:form
element so that the JavaScript code can refer to it, how to code the
t:hidden element so that it matches up with something in the Java code, how
to code the JavaScript code to store a value in the hidden field, how to
code the JavaScript submit statement, and how to access the form data when
the method gets called.

If you don't have time for my original request, here's a simpler one.

I would really appreciate it if you would take a few moments to write out:

* One little example form with a textfield element in it and a hidden field
in it -- please include the entire form, from t:form to the end tag
* One little example JavaScript function that fills in the hidden field and
submits the form
* One little example fragment of Java code that uses System.out.println() to
send the textfield value and the hidden field value to the console.

I think this would be maybe 10 or 15 lines of code tops, and it would really
help me instead of trying to spend several more hours trying to figure out
the missing pieces from the information you already sent.

Or, if you wish, you could refer me to some example code somewhere in the
Tapestry documentation that does this.  It must be a very common
requirement.

Thanks again!

--Lindsay


> I'd also like to have multiple Java methods that receive control depending
> on which submit button is clicked.

You can accomplish this with the Submit component . . .
-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-Submit-Form-from-Javascript-tp25895341p25897130.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to