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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Reply via email to