You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sebastiaan van Erk (JIRA)" <ji...@apache.org> on 2007/09/10 11:41:29 UTC

[jira] Created: (WICKET-950) StatelessForm + QueryStringUrlCodingStrategy problem

StatelessForm + QueryStringUrlCodingStrategy problem
----------------------------------------------------

                 Key: WICKET-950
                 URL: https://issues.apache.org/jira/browse/WICKET-950
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-beta3
         Environment: Ubuntu Linux Feisty+Firefox2.0.0.6+Tomcat 5.5.23+JDK6
            Reporter: Sebastiaan van Erk


I have a StatelessForm in a page which is mounted via the QueryStringUrlCodingStrategy

However, *WHENEVER* I submit the form, I get a Page Expired.

When I use mountBookmarkablePage it works.

I get NO exceptions in the log.

If more info is necessary, feel free to ask.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WICKET-950) StatelessForm + QueryStringUrlCodingStrategy problem

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner reassigned WICKET-950:
--------------------------------------

    Assignee: Johan Compagner

> StatelessForm + QueryStringUrlCodingStrategy problem
> ----------------------------------------------------
>
>                 Key: WICKET-950
>                 URL: https://issues.apache.org/jira/browse/WICKET-950
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>         Environment: Ubuntu Linux Feisty+Firefox2.0.0.6+Tomcat 5.5.23+JDK6
>            Reporter: Sebastiaan van Erk
>            Assignee: Johan Compagner
>             Fix For: 1.3.0-beta5
>
>
> I have a StatelessForm in a page which is mounted via the QueryStringUrlCodingStrategy
> However, *WHENEVER* I submit the form, I get a Page Expired.
> When I use mountBookmarkablePage it works.
> I get NO exceptions in the log.
> If more info is necessary, feel free to ask.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-950) StatelessForm + QueryStringUrlCodingStrategy problem

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner closed WICKET-950.
----------------------------------

    Resolution: Fixed

Indexed and Query both should work fine now
We should have a few unit test for this
Build from the Stateless example 
1 statefull and 1 stateless pages with both statelessforms on them
and then render them and call the stateless form submit for every url coding strategy we have.

Who wants to make those! :)

> StatelessForm + QueryStringUrlCodingStrategy problem
> ----------------------------------------------------
>
>                 Key: WICKET-950
>                 URL: https://issues.apache.org/jira/browse/WICKET-950
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>         Environment: Ubuntu Linux Feisty+Firefox2.0.0.6+Tomcat 5.5.23+JDK6
>            Reporter: Sebastiaan van Erk
>            Assignee: Johan Compagner
>             Fix For: 1.3.0-beta5
>
>
> I have a StatelessForm in a page which is mounted via the QueryStringUrlCodingStrategy
> However, *WHENEVER* I submit the form, I get a Page Expired.
> When I use mountBookmarkablePage it works.
> I get NO exceptions in the log.
> If more info is necessary, feel free to ask.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-950) StatelessForm + QueryStringUrlCodingStrategy problem

Posted by "Sebastiaan van Erk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526922 ] 

Sebastiaan van Erk commented on WICKET-950:
-------------------------------------------

It also fails with IndexParamUrlCodingStrategy. Now however, I do get an exception. Using Form instead of StatelessForm causes everything to work fine.

WicketMessage: Not all parameters were encoded. Make sure all parameter names are integers in consecutive order starting with zero. Current parameter names are: [wicket:interface]

Root cause:

org.apache.wicket.WicketRuntimeException: Not all parameters were encoded. Make sure all parameter names are integers in consecutive order starting with zero. Current parameter names are: [wicket:interface]
at org.apache.wicket.request.target.coding.IndexedParamUrlCodingStrategy.appendParameters(IndexedParamUrlCodingStrategy.java:102)
at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.encode(BookmarkablePageRequestTargetUrlCodingStrategy.java:134)
at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.pathForTarget(WebRequestCodingStrategy.java:368)
at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:235)
at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:791)
at org.apache.wicket.Component.urlFor(Component.java:2808)
at org.apache.wicket.markup.html.form.Form.onComponentTag(Form.java:1492)
at org.apache.wicket.Component.renderComponent(Component.java:2158)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1315)
at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1619)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1200)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1370)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1305)
at org.apache.wicket.Component.renderComponent(Component.java:2189)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1315)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1227)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1370)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1305)
at org.apache.wicket.Component.renderComponent(Component.java:2189)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1315)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1227)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1370)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1305)
at org.apache.wicket.Component.renderComponent(Component.java:2189)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1315)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1227)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1370)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1305)
at org.apache.wicket.Component.renderComponent(Component.java:2189)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1315)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1227)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1332)
at org.apache.wicket.Page.onRender(Page.java:1433)
at org.apache.wicket.Component.render(Component.java:2013)
at org.apache.wicket.Page.renderPage(Page.java:922)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)
at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1038)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1108)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:261)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)

> StatelessForm + QueryStringUrlCodingStrategy problem
> ----------------------------------------------------
>
>                 Key: WICKET-950
>                 URL: https://issues.apache.org/jira/browse/WICKET-950
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>         Environment: Ubuntu Linux Feisty+Firefox2.0.0.6+Tomcat 5.5.23+JDK6
>            Reporter: Sebastiaan van Erk
>
> I have a StatelessForm in a page which is mounted via the QueryStringUrlCodingStrategy
> However, *WHENEVER* I submit the form, I get a Page Expired.
> When I use mountBookmarkablePage it works.
> I get NO exceptions in the log.
> If more info is necessary, feel free to ask.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.