you may take a look at WebRequestWithCryptedUrl or
WebRequestCrawlerSave as well. They are experimental only, but may
point you into the right direction. Any improvements on this code are
of course wellcome.

Juergen

On 11/7/05, Jeff Miller <[EMAIL PROTECTED]> wrote:
>
> putClassAlias is close to what I was suggesting but it does not remove all
> of the implementation details from the url.  It eliminates the package name
> but the url still contains "?bookmarkablePage=" which is an implementation
> detail for Wicket but is not related to the semantic value of the url.
>
> No alias:
> http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2
>
> With putClassAlias(Page2.class, "Page2"):
> http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=Page2
>
> Desired alias:
> http://www.wicket-library.com/wicket-examples/template/Page2
>
>
> Jeff
>
> Johan Compagner <[EMAIL PROTECTED]> wrote:
> ApplicationPages is just a configuration object you can set properties that
> are used for pages (Error pages etc)
>
> For aliasses see wicket-examples, we use there as an example a few page
> aliasses.
>
> Just put youre bookmarkable page class as a allias:
>
> putClassAlias(MyPage.class, "mypage");
>
>
>
> On 11/7/05, Jeff Miller <[EMAIL PROTECTED]> wrote:
> >
> > Where would I find an example?  I could not find any on wiki,
> wicket.sourceforge.net, or in examples.
> >
> > The javadoc is not clear how to use ApplicationPages except that I need to
> use putClassAlias method.  What object, if any, needs reference to the
> ApplicationPages object with the aliases?
> >
> > Thanks,
> > Jeff
> >
> >
> > Johan Compagner <[EMAIL PROTECTED] > wrote:
> >
> > there is already support for page aliasses see ApplicationPages
> >
> >
> >
> >
> > On 11/4/05, Jeff Miller <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > >
> > >
> > > Is there a way to create bookmarkable page without embedding any of the
> Wicket implementation details in the url?  For example, the template example
> page 2 url is:
> > >
> http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2
> > >
> > > However, "bookmarkablePage=wicket.examples.template" is a Wicket
> implementation detail that is used because Wicket needs it and not because
> it is relevant to the url.  It would be good if the url could be simpler
> like:
> > >
> http://www.wicket-library.com/wicket-examples/template/Page2
> > >
> > > Now I realize that Wicket needs to know how to map "Page2" to
> "wicket.examples.template.Page2".  One way to accomplish this could be to
> add a method to WebApplication like addAlias(String alias, Class page).  For
> example:
> > >
> > > public class TemplateApplication extends WicketExampleApplication
> > > {
> > >     public TemplateApplication()
> > >     {
> > >         getPages().setHomePage(Page1.class);
> > >         addAlias("Page1", Page1.class);
> > >         addAlias("Page2", Page2.class);
> > >     }
> > > }
> > >
> > > Here are some articles that recommend keeping implementation details out
> of urls:
> > > http://www.w3.org/Provider/Style/URI
> > > http://www.useit.com/alertbox/990321.html
> > >
> > > Thanks,
> > > Jeff
> > >
> > > Jeff Miller
> > > [EMAIL PROTECTED]
> > >
> > > ________________________________
> Yahoo! FareChase - Search multiple travel sites in one click.
> ________________________________
> Yahoo! FareChase - Search multiple travel sites in one click.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > Jeff Miller
> > [EMAIL PROTECTED]
> >
> > ________________________________
> Yahoo! FareChase - Search multiple travel sites in one click.
> >
> >
>
>
>
> Jeff Miller
> [EMAIL PROTECTED]
>
> ________________________________
> Yahoo! FareChase - Search multiple travel sites in one click.
>
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to