Hans L wrote:
2) Now, you're editing the ContactField in a form (which you
omitted), but you're not actually submitting that form anywhere! Try
using AjaxLinkSubmit or AjaxSubmit instead of AjaxDirectLink.
Yeah, that is true. (I hadn't really gotten to dealing with that form
yet.) So my "Add Field" link has to be a form submission? I was
hoping that I could use an AjaxDirectLink to do something & keep my
page's state (i.e. the getContact() method).
Then you would need to use parameters on AjaxDirectLink. Those
parameters would be set at render time, so they wouldn't include your
form contents.
Perhaps you want a partial form submission (only the ContactField, for
example), but Tapestry doesn't support that yet. You'd have to submit
the whole form if you need to update the values.
3) In this case it shouldn't be a problem, but IMO the "listener"
parameter for XXXSubmit is very dangerous. If you put it before the
form, the form's values are not being submitted. I suggest using the
"action" parameter unless you have a really good reason for not doing
so.
Ok, thanks for the tips. When I removed listener="" and replaced it
with action="" I got an exception that said that the listener param
could not be null.
Oh yeah, sorry. My mistake. The action parameter applies only when
dealing with form submissions (i.e. AjaxLinkSubmit).
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Web Application Design and Programming
http://www.dtqsoftware.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel