About setResponsePage(Class)
I think, there should also be members of wicket.{age that would accept
class as parameters (like there is SetResponsePage(wicket.Page)
e.g.
setResponsePage(Class pageClass) {
getRequestCycle().setResponsePage(pageClass);
}
as well as one that would take page parameters.
-Matej
Johan Compagner wrote:
3 other features:
<1> short url support through ApplicationPages.putClassAlias:
getPages().putClassAlias(HelloWorld.class, "helloworld");
These aliases will be used for 2 things:
1> bookmarkablePage url support. "bookmarkablePage=helloworld" will map
on the HelloWorld class
2> all url that wicket is generating will map the Class to that string.
So that all urls are shortend:
See pub example you now have:
/wicket-examples/pub/resources/home/Beer.gif
instead of
/wicket-examples/pub/resources/wicket.examples.pub.Home/Beer.gif
<2> HomePage rendering support
If a homepage is accesses through just "/" then you can now specify
what wicket should do, see ApplicationPages:
/**
* Use this homepage strategy if you don't want to redirect so the
url just stays '/' .
*/
public static final HomePageRenderStrategy NO_REDIRECT = new
HomePageRenderStrategy("no-redirect");
/**
* Use this homepage strategy if you want to redirect the homepage to
a bookmarkable url like: bookmarkablePage=mybookmarkablepage
* This is the same as calling: setResponsePage(MyPage.class);.
*/
public static final HomePageRenderStrategy BOOKMARK_REDIRECT = new
HomePageRenderStrategy("bookmark-redirect");
/**
* Use this homepage strategy if you want to redirect the homepage
just as a normal page would be in
* wicket (when you submit a form on the page or when you do in the
code: setResponsePage(new MyPage());
* If you have set the overall Redirect Strategy to ONE_PASS_RENDER
then the homepage response will honor that.
* Then it is the same as setting the homepage strategy to NO_REDIRECT.
*/
public static final HomePageRenderStrategy PAGE_REDIRECT = new
HomePageRenderStrategy("page-redirect");
<3> With the homepage rendering support to a bookmarkable page we now
also have redirect to a bookmarkable url from within wicket
just set the response class in the RequestCycle
setResponsePage(MyPage.class); You can give that one also PageParameters
The call tho setResponsePage(Class) will always result into a client
redirect. It doesn't render the page directly if the ONE_PASS_RENDER
is set as a rendering strategy. You must use setResponsePage(Page) for
that.
johan
Martijn Dashorst wrote:
Can anybody make a decent feature list of stuff we include in 1.1? The
changes.xml file is not enough information (quite empty!), and the
trackers also don't supply much information.
Stuff I have until now:
o JavaScript support
o CSS support
o Markup inheritence
o Simplified choice component
o Include tag
o experimental AJAX
Martijn
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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