The average joe doesn't look at the URL... only developers do
Martijn

On 2/3/08, oliverw <[EMAIL PROTECTED]> wrote:
>
>
> The point is that plain wicket urls might look at bit scary to average joe
> that's why I would like to have pretty urls everywhere. However Johan was
> correct that the page cannot be used without a user_id / user.  Default
> constructor changed.
>
>
> Edvin Syse wrote:
> >
> >> So that page can also work without a user object/id? It is a nice url
> >> then but if the page cant be found it will call the default or
> >> pageparam constructor..
> >
> > You are right, the page is useless as a bookmarkable page, but atleast
> he
> > gets his nice url :)
> >
> > I think Oliver's requirement was that the userid was never exposed in
> the
> > URL, so I guess the default constructor should do something like:
> >
> > throw new
> > RestartResponseAtInterceptPageException(UserRegistrationPage.class);
> >
> >
> > -- Edvin
> >
> >
> >>
> >> On 2/2/08, oliverw <[EMAIL PROTECTED]> wrote:
> >>> Thanks Edwin! That did the trick. Just from the looks it appears as if
> >>> HybridUrlCodingStrategy would be the preferable mount strategy in
> >>> general.
> >>>
> >>>
> >>> Edvin Syse wrote:
> >>>>>>   Can't you just proceed this way:
> >>>>>> setResponsePage(new SummaryPage(userdId));
> >>>>>>
> >>>>>> i.e. pass the id as a parameter to the summary page constructor ?
> >>>>>>
> >>>>>> Regards
> >>>>>>
> >>>>> This works - kind of. Because even though the response page is
> >>>>> mounted, I
> >>>>> not see a pretty url in the browser.
> >>>> You can mount the page with HybridUrlCodingStrategy to get a pretty
> URL
> >>>> even after redirecting:
> >>>>
> >>>> mount(new HybridUrlCodingStrategy("/summary", SummaryPage.class));
> >>>>
> >>>> -- Edvin
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/Short-Design-Question-tp15243739p15246739.html
> >>> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Short-Design-Question-tp15243739p15255622.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

Reply via email to