Heh...If it were correctly not submitting the form I'm still not sure
if you'd be able to figure out what the value bound to the checkbox
is.

Marcus did add something semi - recently that may actually give you
what you want.   If your BrowserEvent object has a
getMethodArguments() method then you may be in luck. (maybe, don't get
too excited until you try it)

In theory it will take all the arguments to the client side function
(including the javascript event,  which should have a
target/relatedTarget/etc attribute attached to it) and serialize them
in some form that you can then try to interact with in the form of a
JSONArray.    I've not used it though so don't know what will happen
under which circumstances / etc..

On Dec 20, 2007 5:18 PM, Kevin Menard <[EMAIL PROTECTED]> wrote:
> 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]
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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

Reply via email to