You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Bille Jensen (JIRA)" <ji...@apache.org> on 2007/12/06 19:57:00 UTC

[jira] Updated: (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 ]

Frank Bille Jensen updated WICKET-825:
--------------------------------------

    Fix Version/s:     (was: 1.3.0-rc2)
                   1.3.0-rc3

> 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.3.0-rc3
>
>
> 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.