You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by virtualizer <ja...@ppimedia.de> on 2010/10/04 21:31:38 UTC
mountBookmarkablePage and BookmarkablePageLink with PageParameters
Hello,
in my tomcat I have a context (home.xml) with the path "home". So I open my
wicket-stuff with localhost:8080/home. Fine!
Now I have two pages Test1 and Test2. For both I´ve called
mountBookmarkablePage...
mountBookmarkablePage("/test1", Test1.class)
mountBookmarkablePage("/test2", Test2.class)
And I have two BookmarkablePageLink (one for each page) with PageParameters
on every Page...
add(new BookmarkablePageLink<Test1>("testlink1", Test1.class, pp));
add(new BookmarkablePageLink<Test2>("testlink2", Test1.class, pp));
...where pp is test=hello.
If I´ve loaded the page with url http://localhost:8080/home/test1 the links
are still ok. Bt if I click on a link and call a page with the
pageparameters the links are suddenly without the "home"-part:
http://localhost:8080/test1/test/hello and
http://localhost:8080/test2/test/hello.
So, if I use no pageparameters everthing is ok. But if I use pageparameters
(and I really want to do this!) the the home-url is wrong.
What couold I´ve done wrong?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2954926.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Create a quickstart and attach it to a JIRA.
On Tue, Oct 5, 2010 at 4:05 AM, virtualizer <ja...@ppimedia.de> wrote:
>
>
> Altuğ Bilgin Altıntaş wrote:
> >
> > Also could you please try without <Test1> just
> >
> > add(new BookmarkablePageLink("testlink1", Test1.class, pp));
> >
> > Which wicket version ?
> >
>
> Without generic type it is the same problem.
>
> I´m using 1.4.9.
>
> I have the same problem if I don´t use PageParameters and
> mount("/some/path", PackageName.forClass(Test1.class))
>
> Thanks!
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2955651.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Jeremy Thomerson
http://www.wickettraining.com
Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters
Posted by Altuğ Bilgin Altıntaş <al...@gmail.com>.
Quickstart please ...
2010/10/5 virtualizer <ja...@ppimedia.de>
>
>
> Altuğ Bilgin Altıntaş wrote:
> >
> > Also could you please try without <Test1> just
> >
> > add(new BookmarkablePageLink("testlink1", Test1.class, pp));
> >
> > Which wicket version ?
> >
>
> Without generic type it is the same problem.
>
> I´m using 1.4.9.
>
> I have the same problem if I don´t use PageParameters and
> mount("/some/path", PackageName.forClass(Test1.class))
>
> Thanks!
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2955651.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: mountBookmarkablePage and BookmarkablePageLink with
PageParameters
Posted by virtualizer <ja...@ppimedia.de>.
Altuğ Bilgin Altıntaş wrote:
>
> Also could you please try without <Test1> just
>
> add(new BookmarkablePageLink("testlink1", Test1.class, pp));
>
> Which wicket version ?
>
Without generic type it is the same problem.
I´m using 1.4.9.
I have the same problem if I don´t use PageParameters and
mount("/some/path", PackageName.forClass(Test1.class))
Thanks!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2955651.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters
Posted by Altuğ Bilgin Altıntaş <al...@gmail.com>.
Also could you please try without <Test1> just
add(new BookmarkablePageLink("testlink1", Test1.class, pp));
Which wicket version ?
Altug
2010/10/4 virtualizer <ja...@ppimedia.de>
>
> Hello,
>
> in my tomcat I have a context (home.xml) with the path "home". So I open my
> wicket-stuff with localhost:8080/home. Fine!
>
> Now I have two pages Test1 and Test2. For both I´ve called
> mountBookmarkablePage...
>
> mountBookmarkablePage("/test1", Test1.class)
> mountBookmarkablePage("/test2", Test2.class)
>
> And I have two BookmarkablePageLink (one for each page) with PageParameters
> on every Page...
>
> add(new BookmarkablePageLink<Test1>("testlink1", Test1.class, pp));
> add(new BookmarkablePageLink<Test2>("testlink2", Test1.class, pp));
>
> ...where pp is test=hello.
>
> If I´ve loaded the page with url http://localhost:8080/home/test1 the
> links
> are still ok. Bt if I click on a link and call a page with the
> pageparameters the links are suddenly without the "home"-part:
> http://localhost:8080/test1/test/hello and
> http://localhost:8080/test2/test/hello.
>
> So, if I use no pageparameters everthing is ok. But if I use pageparameters
> (and I really want to do this!) the the home-url is wrong.
>
> What couold I´ve done wrong?
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2954926.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>