I've been using the Dialog component for async form entry quite
successfully for some time now. You might want to try using client-
side validation. I've found that the only thing you need to do is
attach some extra functionality to the submit, so that you can close
the dialog if validation passes. Well I guess you also want to set
display:none on the dialog as well :-)
<script>
<initialization>
dojo.event.connectOnce(tapestry.form, "submitAsync", function
(e) {
if (e.id != "addPersonForm") return;
if (tapestry.form.validation.validateForm(dojo.byId
(e.id), tapestry.form.forms[e.id])) {
dojo.widget.byId('addPersonDialog').hide();
}
});
</initialization>
</script>
On 5-Jun-07, at 1:33 AM, Paul Stanton wrote:
OK, I've changed my form declaration from
<form jwcid="@Form" listener="listener:save">
to
<form jwcid="@Form" success="listener:save">
This stops the rendering issues and log messages, however how can I
notify the user of their invalid entry?
--
Julian Wood <[EMAIL PROTECTED]>
Software Engineer
Teaching & Learning Centre
University of Calgary
http://tlc.ucalgary.ca