On Tue, Mar 4, 2008 at 4:34 AM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > Nice. thank you! > > But the real problem is that the RequestCycle#urlFor( Class, PageParams ) is > returning a relating path like: > > ../?wicket:bookmarkablePage=the.class.Name
why dont you mount your page and then use requestutils... > > Well the javadoc for urlFor() states: > > *Returns a bookmarkable URL that references a given page class using a given > set of page > parameters. Since the URL which is returned contains all information > necessary to instantiate > and render the page, it can be stored in a user's browser as a stable > bookmark.* > > But a RELATIVE url (like the above) how can be considered a stable > bookmarkable url? > > Am I missing something ? when you click on it the browser will convert it into an absolute url and that is what the user bookmarks.... -igor > > > Thanks. > > / Paolo > > > > > On Tue, Mar 4, 2008 at 12:47 PM, Daniel Frisk <[EMAIL PROTECTED]> wrote: > > > I use RequestUtils to convert the path to an absolute path, seems to > > work like a charm :-) > > > > import org.apache.wicket.protocol.http.RequestUtils; > > > > RequestUtils.toAbsolutePath(relativePath); > > > > Regards > > // Daniel > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]