You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jesse Kuhnert <jk...@gmail.com> on 2007/08/14 04:22:15 UTC

Re: T4.1 List of pages

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 <cr...@redflex.com.au> wrote:
> 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
>
>


-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org