Thanks igor.. Just one more thing which i just noticed..not sure if it has got to with the mounting of urls...so in certain instances i seet he jsession="[id]" postfixed with the urls, but not for all pages, its just random..even at times it appears for one and at a different time it doesn't. Any idea why is that so?
igor.vaynberg wrote: > > see PackageRequestTargetUrlCodingStrategy > > -igor > > > On Jan 24, 2008 10:02 AM, mfs <[EMAIL PROTECTED]> wrote: >> >> So basically we would need to mount each page seperately with a url for >> it ? >> Is there a mechanism with which one can mount a bunch of pages at the >> same >> time, where lets say the page-name itself gets attached to the url (given >> for that subset of pages) so as to make the url unique for each page, >> this >> way if your application has 40 pages you wouldnt need to mount them >> individually. >> >> >> >> >> >> igor.vaynberg wrote: >> > >> > you wouldnt mount one per user, you would do it like this: >> > >> > mount(new indexedurlcodingstrategy("/user", userprofilepage.class)); >> > >> > class UserProfilePage extends WebPage { >> > public UserProfilePage(PageParameters params) { >> > String userid=params.get("0"); >> > } >> > } >> > >> > then your urls are myapp.com/user/username >> > >> > and one page can handle all usernames >> > >> > makes sense? >> > >> > -igor >> > >> > >> > On Nov 27, 2007 7:22 AM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: >> >> Hi. >> >> >> >> In my app I would like to have a easy url for a user, say: >> >> >> >> http://myapp.com/username >> >> >> >> to make this, in wicket, I only know the mount url way. >> >> Anyone know about problems in adding a large number of url this way? >> >> >> >> Just in case, any alternatives? >> >> >> >> Thanks. >> >> >> >> -- >> >> Daniele Dellafiore >> >> http://ildella.wordpress.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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/mounting-large-number-of-url-tp13972929p15071022.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] > > > -- View this message in context: http://www.nabble.com/mounting-large-number-of-url-tp13972929p15075121.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]