Yep, it's impossible to do. (and would be extremely inefficient if tapestry did do it for very large apps)
I'd recommend using something like the tacos SiteMap service - I still seem to end up using it on almost every project I work on. http://tacos.sourceforge.net/hivemind/SiteMap.html On 7/31/07, Craig Spry <[EMAIL PROTECTED]> wrote: > Thanks > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 31 July 2007 4:47 PM > To: users@tapestry.apache.org > Subject: RE: T4.1 List of pages > > Hi Craig, > > most probably, you don't have your page-specifications listed in your > *.application (or *.library, if you're interested in a library's pages.) > > Unfortunately, Tapestry's page-/component-lookup mechanism is > sufficiently complicated to make it hard to detect all pages before > usage -- unless they're listed in the specification. > > Marcus > > > -----Original Message----- > > From: Craig Spry [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 31, 2007 3:46 AM > > To: Tapestry users > > Subject: RE: T4.1 List of pages > > > > Hello, > > > > I tried to do getNamespace().getPageNames() and all I got was > > the name of the current page. Then I tried this: > > List<String> pages = new Vector<String>(); for ( Object id : > > getNamespace().getChildIds() ) { > > INamespace lib = getNamespace().getChildNamespace( > > id.toString() ); > > pages.addAll(lib.getPageNames()); } > > > > This gave me a list of components. Is there anything eles > > that I need to do? > > > > Craig > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, 25 July 2007 4:16 PM > > To: users@tapestry.apache.org > > Subject: RE: T4.1 List of pages > > > > getNamespace().getPageNames() > > > > /Marcus > > > > > -----Original Message----- > > > From: Craig Spry [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, July 25, 2007 8:01 AM > > > To: Tapestry users > > > Subject: T4.1 List of pages > > > > > > Hello All, > > > > > > I'm currently adding user permissions to my application, > > this is going > > > to be done on a per page basis. I was wondering if it is > > possible to > > > get tapestry to give me a list of pages so I can build the > > permissions > > > page dynamically to save me having to manually up date this > > every time > > > a new page is added. > > > > > > TIA, > > > Craig > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > --------------------------------------------------------------------- > 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] > > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]