I couldn’t reproduce it in a distilled project.  The problem turned up in a model.  Sorry for wasting your time, Igor, and thanks for a really nice framework!

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Thursday, March 09, 2006 2:23 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1

 

wicket examples/ajax has a choice example that does the same thing and has a submit button. i couldnt reproduce the problem.

can you reproduce it in a quickstart project so that i can take a look at it?

-Igor

On 3/9/06, Jerry Smith <[EMAIL PROTECTED]> wrote:

The section that gets updated when the ListMultipleChoice onchange happens is wrapped in a WebMarkupContainer.  Before the form is submitted it works great.  It starts acting weird after the form is submitted.  There are no calls to setRedirect on this page anywhere, I guess I'm using the default render strategy since I haven't set that anywhere.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg
Sent: Thursday, March 09, 2006 2:05 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1

 

also you cannot update a component attached to a select element directly. this is because browsers dont allow select.innertHTML to work. so you will need to wrap your component with a webmarkup container and update that via ajax instead.

there is an example of this in wicket-examples/builtin-ajax

-Igor

On 3/9/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:

thats weird, why is an ajax request causing a redirect? are you setting the redirect manually somewhere? what render strategy do you use?


-Igor

 

On 3/9/06, Jerry Smith <[EMAIL PROTECTED]> wrote:

I have a ListMultipleChoice with an AJAX onchange handler attached to it
in a form.  When I first bring up the form, the behavior works fine.  I
submit the form, which comes back to the same page.  Now when I select
something in the ListMultipleChoice it's throwing:

Caused by: java.lang.ClassCastException:
wicket.ajax.AjaxRequestTarget$EncodingResponse
        at
wicket.protocol.http.WebRequestCycle.getWebResponse (WebRequestCycle.java
:99)
        at
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130
)
        at
wicket.request.target.component.PageRequestTarget.respond(PageRequestTar
get.java :60)
        at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseS
trategy.java:49)
        at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Ab
stractCompoundRequestCycleProcessor.java :66)
        at wicket.RequestCycle.respond(RequestCycle.java:877)
        at wicket.RequestCycle.step(RequestCycle.java:946)
        ... 21 more


-------------------------------------------------------
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?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 

 

Reply via email to