Hmm . . . Okay, that's what I was afraid of. Unfortunately, it's a port of an existing app, so I'd like to preserve URL structure if possible. I supposed URLRewrite could do the trick.
As a follow-up question, is there anyway to do the following: "orders/43" (DB ID, caught through onActivate()) "orders/latest" (specified in com.example.www.pages.orders.Latest) It looks like Tapestry will still try to pass "latest" through to com.example.www.pages.Orders. I also couldn't figure out how to have a "Start" class for each package, so that the first URL would actually map to com.example.www.pages.orders.Start. Is that doable, or do I have to work around it as well? Thanks, Kevin On 10/30/07 3:54 PM, in article [EMAIL PROTECTED], "Jonathan Barker" <[EMAIL PROTECTED]> wrote: > > > For this use-case, I would suggest taking a string. If it matches a regex > (like a number pattern), then cast and do a db-lookup. Otherwise, do > whatever else you want to do. > > Or you can use something like news/lookup/43 and > news/breaking/breaking-story to be more explicit. > > > >> -----Original Message----- >> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Menard >> Sent: Tuesday, October 30, 2007 3:26 PM >> To: users@tapestry.apache.org >> Subject: T5: Multiple onActivate? >> >> Hi all, >> >> It appears that onActivate() cannot be overloaded in a single page class. >> I'm hoping I just missed something and that conclusion is wrong. If not, >> how are others handling URLs like: >> >> "news/43" (43 = DB ID) >> "new/breaking-story" (breaking-story=slug) >> >> I'd like to avoid a single onActivate() that takes an Object. So, any >> help >> would be much appreciated. >> >> Thanks, >> Kevin >> >> >> >> --------------------------------------------------------------------- >> 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]