You can also just use @EventListener. Call a Javascript operation to display
the status and hook up your EventListener to an arbitrary Javascript call.

Kalle

On Fri, Oct 24, 2008 at 12:31 PM, Andreas Andreou <[EMAIL PROTECTED]>wrote:

> dojo.event.connect to it and in there do dojo.event.stopEvent (or
> something like that) if you
> dont want to go on with the submit
>
> On Fri, Oct 24, 2008 at 10:22 PM, Norman Franke <[EMAIL PROTECTED]> wrote:
> > Thanks. I apparently forgot to look at contrib.
> >
> > As for the second question, I'd love to, but how can I update the
> formhidden
> > section of the form such that my controls (that were created via AJAX)
> will
> > be sent on the next AJAX action? If I don't update the entire form, I
> never
> > get the values of the controls, it seems. Changing it from
> > @Persist("client") to @Persist("session") seems to have solved it,
> however.
> >
> > Lastly, how can I get an ajax submit to abort? I want to have an onclick
> on
> > a the submit that will put up "confirm('Are you sure?')" but no matter
> what,
> > it submits anyway.
> >
> > Norman Franke
> > Answering Service for Directors, Inc.
> > www.myasd.com
> >
> > On Oct 24, 2008, at 2:36 PM, Andreas Andreou wrote:
> >
> >> To answer your initial question, just use contrib:ajaxStatus from
> >>
> >>
> http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/ajaxstatus.html
> >>
> >> For the second, why not update only the part in question?
> >>
> >> On Fri, Oct 24, 2008 at 9:22 PM, Norman Franke <[EMAIL PROTECTED]>
> wrote:
> >>>
> >>> I sort of have it working by doing an "onclick" and relying on the
> entire
> >>> form to update, which resets my div.
> >>>
> >>> But that brings up another point. I want to AJAX fetch a list of
> elements
> >>> with a checkbox. Is there a better way to do this than by setting the
> >>> entire
> >>> form as one of the updateComponents? It pretty much forces an update of
> >>> the
> >>> entire page. If I don't, I can't get the values of the checkbox since
> >>> tapestry serializes the state of the @For and checkboxes in fields.
> >>>
> >>> What's the best way to handle this?
> >>>
> >>> Norman Franke
> >>> Answering Service for Directors, Inc.
> >>> www.myasd.com
> >>>
> >>> On Oct 24, 2008, at 12:10 PM, Norman Franke wrote:
> >>>
> >>>> I've searched the documentation, and I can't find how one implements a
> >>>> "loading..." indicator when an AJAX request is sent off. My app will
> be
> >>>> doing a series of database queries which can take 10 seconds or so,
> and
> >>>> it
> >>>> really needs something to tell the user they need to wait a bit.
> >>>> Showing/Hiding a div would be great.
> >>>>
> >>>> Norman Franke
> >>>> Answering Service for Directors, Inc.
> >>>> www.myasd.com
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> >> Tapestry / Tacos developer
> >> Open Source / JEE Consulting
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to