Johan Compagner wrote:
what we could do if you do this:
setResponsePage(MyPage.class);
So setting a class instead of an instance.
That is always a redirect (why not?) and it is always a redirect to a
bookmarkable page. (so that bookmark url is generated)
then have an extra option that a homepage should be done through a class
(so bookmarkable redirect)
or done by an instance redirect (so that you get an url like /path=0)
Should we have something like:
setResponsePage(MyPage.class, pageParameters);
so that you can get some params for youre page?
Yes, this is exactly what I've meant. Agree with always redirect, don't
think it's possible without it :)
Wouldn't be nice to have this in 1.1
btw. what's that with the /path=0 ?
Does it mean that there will be an option to have homepage not bookmarkable?
I mean that url like /WicketApp (homepage) would immediately redirect
into /wicketApp?page=0 ?
If so, i think it's good idea. But I hope there will be a way to set the
homepage to a bookmarkable URL as well.
-Matej
Matej Knopp wrote:
It seems that I've not expressed myself clearly.
I want redirect. I want to do thing like this does
(e.g. from link handler)
setRedirect(false);
getWebRequestCycle().getWebResponse().getHttpServletResponse().sendRedirect("appName?bookMarkablePage=MyPage");
but to be written more nicely
setResponsePage(MyPage.class);
setRedirect(true);
So after the redirect browser is moved to a bookmarkable page (so that
the url is bookmarkable).
As I said, I don't really need it, it's just that right now there's no
clean way in wicket to do this (that I know about :))
-Matej
Eelco Hillenius wrote:
Matej Knopp wrote:
I can think of one thing, that's kind of missing. Although I don't
really need it, maybe someone alse does.
It's redirect to bookmarkable page. I think it's not possible to
redirect to a bookmarkable page (or at least not trivial), or am I
wrong?
Maybe this could be useful, what do you think?
(By redirect to a bookmarkable page I mean that after redirect
there's no redirect listener or path in url, just
bookmarkablePage=pageClass)
You can do this manually by setRedirect(false). Either when you set
the response page, or in your bookmarkable page constuctor. I haven't
tested it, but I think this is how it works. And... if you /never/
want redirects to happen, you could set the property render strategy
(ApplicationSettings.ONE_PASS_RENDER).
Eelco
-Matej
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop