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]

Reply via email to