You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2008/05/07 16:20:56 UTC

[jira] Resolved: (WICKET-825) web browser displays empty page when WebPage mounted with HybridUrlCodingStrategy

     [ https://issues.apache.org/jira/browse/WICKET-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matej Knopp resolved WICKET-825.
--------------------------------

       Resolution: Later
    Fix Version/s:     (was: 1.4-M2)
                   1.5-M1

I'm affraid this is not fixable now. HybridUrlCodingStrategy doesn't behave nicely with stateless pages. This will be resolved in 1.5 (which will hopefully come soon) where HybridUrlCodingStrategy and other strategies will be replaced with one flexible strategy. 

> web browser displays empty page when WebPage mounted with HybridUrlCodingStrategy
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-825
>                 URL: https://issues.apache.org/jira/browse/WICKET-825
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta2
>            Reporter: Sean Sullivan
>            Assignee: Matej Knopp
>             Fix For: 1.5-M1
>
>
> My Wicket 1.3 application mounts pages using the 
> org.apache.wicket.request.target.coding.HybridUrlCodingStrategy:
>      this.mount(new HybridUrlCodingStrategy("/bar", BarPage.class));
>      this.mount(new HybridUrlCodingStrategy("/foo", FooPage.class));
>      this.mount(new HybridUrlCodingStrategy("/faq", FaqPage.class));
> Most of my web pages work fine but one of them ( /foo ) is not working.  The /foo page displays no content. The entire page is blank in the web browser.
> Using a debugger, I stepped into HybridUrlCodingStrategy.java and I think there might (?) be a problem in the respond method:
> 		public void respond(RequestCycle requestCycle)
> 		{
> 				Page page = getPage(requestCycle);
> 				if (page.isPageStateless() == false && redirect)
> 				{
> 					requestCycle.redirectTo(page);
> 				}
> 		}
> When the browser requests /foo, the corresponding web page class is FooPage.  When accessing FooPage, the isPageStateless() method returns true.   This means that the if expression evaluates to false.  
> Should HybridUrlCodingStrategy have code to handle the situation where isPageStateless() returns true?

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