You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Wouter de Vaal (JIRA)" <ji...@apache.org> on 2007/06/24 20:35:25 UTC
[jira] Created: (WICKET-690) BookmarkablePageLink renders
incorrectly to homepage with page parameters with
QueryStringUrlCodingStrategy
BookmarkablePageLink renders incorrectly to homepage with page parameters with QueryStringUrlCodingStrategy
-----------------------------------------------------------------------------------------------------------
Key: WICKET-690
URL: https://issues.apache.org/jira/browse/WICKET-690
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.0-beta1
Reporter: Wouter de Vaal
I'm writing a BookmarkablePageLink using parameters and the QueryStringUrlCodingStrategy like this:
PageParameters params = new PageParameters();
params.add("y", Integer.toString(cal.get(Calendar.YEAR)));
params.add("m", Integer.toString(cal.get(Calendar.MONTH) + 1));
BookmarkablePageLink link = new BookmarkablePageLink("link", Home.class, params);
This renders nicely when used on the homepage as:
/?y=2007&m=6
but when this is used on a page other than the homepage, the current page gets prepended like:
/page?y=2007&m=6
instead of the above correct link
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-690) BookmarkablePageLink renders
incorrectly to homepage with page parameters with
QueryStringUrlCodingStrategy
Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507795 ]
Jean-Baptiste Quenot commented on WICKET-690:
---------------------------------------------
Can you please copy/paste the generated HTML fragment for the link? There is a good chance that a ../ is missing.
> BookmarkablePageLink renders incorrectly to homepage with page parameters with QueryStringUrlCodingStrategy
> -----------------------------------------------------------------------------------------------------------
>
> Key: WICKET-690
> URL: https://issues.apache.org/jira/browse/WICKET-690
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Reporter: Wouter de Vaal
>
> I'm writing a BookmarkablePageLink using parameters and the QueryStringUrlCodingStrategy like this:
> PageParameters params = new PageParameters();
> params.add("y", Integer.toString(cal.get(Calendar.YEAR)));
> params.add("m", Integer.toString(cal.get(Calendar.MONTH) + 1));
> BookmarkablePageLink link = new BookmarkablePageLink("link", Home.class, params);
> This renders nicely when used on the homepage as:
> /?y=2007&m=6
> but when this is used on a page other than the homepage, the current page gets prepended like:
> /page?y=2007&m=6
> instead of the above correct link
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-690) BookmarkablePageLink renders
incorrectly to homepage with page parameters with
QueryStringUrlCodingStrategy
Posted by "Wouter de Vaal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507817 ]
Wouter de Vaal commented on WICKET-690:
---------------------------------------
Indeed, it has something to do with slashes, I'll add some more information:
So. Here are is the mount I added the BookmarkablePageLink to.
mount(new QueryStringUrlCodingStrategy("/quote", QuoteDetails.class));
and homepage:
@Override
public Class getHomePage() {
return Home.class;
}
So the bookmark link is placed in QuoteDetails and renders this HREF:
<a href="?m=7&y=2007"><span>juli 2007</span></a>
while it should be rendering
<a href="/?m=7&y=2007"><span>juli 2007</span></a>
I said it renders nicely on the homepage, but this isn't true, it does the same as the above, but works because of the relative link
> BookmarkablePageLink renders incorrectly to homepage with page parameters with QueryStringUrlCodingStrategy
> -----------------------------------------------------------------------------------------------------------
>
> Key: WICKET-690
> URL: https://issues.apache.org/jira/browse/WICKET-690
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Reporter: Wouter de Vaal
>
> I'm writing a BookmarkablePageLink using parameters and the QueryStringUrlCodingStrategy like this:
> PageParameters params = new PageParameters();
> params.add("y", Integer.toString(cal.get(Calendar.YEAR)));
> params.add("m", Integer.toString(cal.get(Calendar.MONTH) + 1));
> BookmarkablePageLink link = new BookmarkablePageLink("link", Home.class, params);
> This renders nicely when used on the homepage as:
> /?y=2007&m=6
> but when this is used on a page other than the homepage, the current page gets prepended like:
> /page?y=2007&m=6
> instead of the above correct link
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.