Hi,

I've just finally gotten back around to messing with the T4 async stuff.
The first thing I wanted to try was a simple shipping/billing info wizard
where clicking a checkbox labeled "same shipping info" would grab the
shipping info and populate the form on the billing info page.

Generally I have it working.  I can update everything asynchronously, which
is awesome.  The problem I have is getting the checkbox state.  If I use
"elements", the server-side value isn't updated and it appears I can't get
the actual checkbox value from the BrowserEvent.  If I use "targets", the
server-side value is updated, but I can't suppress the form submission.  I
have something like the following:

@EventListener(targets="sameShippingInfo", events="onchange",
autoSubmit=false)
public void copyShippingInfo(final IRequestCycle cycle, final BrowserEvent
event)
{
   ...
}

It seems to me that setting autoSubmit to false should not submit the form,
but it is anyway.  Even if this were working, would that mean that the
server-side value that the checkbox is bound to would not be updated?

Thanks,
Kevin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to