Hi,
In my form, I have ajax enabled select boxes A,B which work as follows:-
When A select box is changed, selectbox B is repopulated based on that by ajax.

This is working fine, but when I add a fileUpload field to the form the ajax 
part is now giving the following 
error:-

ERROR - RequestCycle               - ServletRequest does not contain multipart 
content
java.lang.IllegalStateException: ServletRequest does not contain multipart 
content
    at 
wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:85)
    at 
wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:234)
    at wicket.markup.html.form.Form.handleMultiPart(Form.java:1084)
    at wicket.markup.html.form.Form.onFormSubmitted(Form.java:285)
    at 
wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:89)
    at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
    at 
wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:236)
    at 
wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:98)
    at 
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
    at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
    at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
    at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934)
    at wicket.RequestCycle.step(RequestCycle.java:1010)
    at wicket.RequestCycle.steps(RequestCycle.java:1084)
    at wicket.RequestCycle.request(RequestCycle.java:454)
    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
    at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
    at org.mortbay.jetty.Server.handle(Server.java:269)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
    at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
    at 
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
    at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)


In the link, 
http://www.nabble.com/MultiPart-Form-and-AjaxSubmitButton-t1655302.html, there 
seems to be a similar problem.
Any suggestions, how should I solve this issue.

Regards,
Vivek












 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to