[
https://issues.apache.org/jira/browse/WICKET-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Sullivan updated WICKET-825:
---------------------------------
Description:
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?
was:
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 I'm requesting /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?
returns true
> 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
>
> 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.