[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: RE: T4.1 List of pages
From: Craig Spry <craigs () redflex ! com ! au>
Date: 2007-07-31 7:08:45
Message-ID: 8AE6CD7104B80845B0732DAC65C8B62903C558EC () rts-exchange1 ! traffic ! redflex ! com ! au
[Download RAW message or body]
Thanks
-----Original Message-----
From: Marcus.Schulte@bmw.ch [mailto:Marcus.Schulte@bmw.ch]
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:craigs@redflex.com.au]
> 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: Marcus.Schulte@bmw.ch [mailto:Marcus.Schulte@bmw.ch]
> 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:craigs@redflex.com.au]
> > 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic