Thanks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 31 July 2007 4:47 PM To: [email protected] 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: [email protected] > 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]
