Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 24786 invoked from network); 5 Sep 2005 08:26:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2005 08:26:19 -0000 Received: (qmail 11648 invoked by uid 500); 5 Sep 2005 08:26:16 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 10759 invoked by uid 500); 5 Sep 2005 08:26:14 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 10740 invoked by uid 99); 5 Sep 2005 08:26:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 01:26:13 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcjtu-tapestry-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 01:26:25 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ECCHA-0000Ax-12 for tapestry-user@jakarta.apache.org; Mon, 05 Sep 2005 10:24:24 +0200 Received: from olve.intermedia.uib.no ([129.177.28.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Sep 2005 10:24:24 +0200 Received: from olve.hansen by olve.intermedia.uib.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Sep 2005 10:24:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tapestry-user@jakarta.apache.org From: Olve Hansen Subject: Re: Get a list of pages in current application? Date: Mon, 05 Sep 2005 10:24:13 +0200 Organization: InterMedia Bergen - Aksis / Unifob AS Lines: 128 Message-ID: <1125908652.27234.6.camel@localhost.localdomain> References: <20050902235224.YFDV27017.mta11.adelphia.net@PCASEY> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-IOyRdOTSa9jRmwTVgUgL" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: olve.intermedia.uib.no In-Reply-To: <20050902235224.YFDV27017.mta11.adelphia.net@PCASEY> X-Mailer: Evolution 2.2.1.1 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=-IOyRdOTSa9jRmwTVgUgL Content-Type: multipart/alternative; boundary="=-2lcMAkHTDMVLsHK+j07+" --=-2lcMAkHTDMVLsHK+j07+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable fre, 02,.09.2005 kl. 16.52 -0700, skrev Patrick Casey: > =20 > Is there a way to get a list of all the pages in the current > application? Preferably one that can be accessed statically so I can get = the > list outside of the response cycle? >=20 We have in a way short-circuited the page specification scheme, where we have a plugins, which in turn makes a set of pages available. When the engine starts, these plugin pages are registered in tapestry, and Then they can be retrieved later on. This works in tapestry 3, in v 4 I really don't know (yet - anyone who can shed some light on this?) private void registerPage(String specPackagePath, BLink bLinkPage) { IApplicationSpecification applicationSpecification =3D getSpecification(); applicationSpecification.setPageSpecificationPath( bLinkPage.getPageName(), specPackagePath + bLinkPage.getSpecificationPath() ); =09 } The BLink is our frameworks notion of a page, knowing the path and a page name, among other things.=20 Later you can get a list of all registered pages in tapestry, if you have access to the engine: IApplicationSpecification applicationSpecification =3D getSpecification(); applicationSpecification.getPageNames();=20 Hth. Olve S. Hansen --=-2lcMAkHTDMVLsHK+j07+ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable fre, 02,.09.2005 kl. 16.52 -0700, skrev Patrick Casey:
 
            Is there a way to get a list of all the=
 pages in the current
application? Preferably one that can be accessed st=
atically so I can get the
list outside of the response cycle?


We have in a way short-circuited the page specification scheme, where we ha= ve a plugins, which in turn makes a set of pages available.
When the engine starts, these plugin pages are registered in tapestry, and = Then they can be retrieved later on.
This works in tapestry 3, in v 4 I really don't know (yet - anyone who can = shed some light on this?)

private void registerPage(String specPackagePath, BLink bLinkPage) {
IApplicationSpecification applicationSpecification =3D getSpecification()= ;

applicationSpecification.setPageSpecificationPath(
        bLinkPage.getPageName(), specP= ackagePath + bLinkPage.getSpecificationPath()
);


}

The BLink is our frameworks notion of a page, knowing the path and a page n= ame, among other things.

Later you can get a list of all registered pages in tapestry, if you have a= ccess to the engine:
IApplicationSpecification applicationSpecification =3D getSpecification()= ;
            &nb= sp;   applicationSpecification.getPageNames();


Hth.

Olve S. Hansen --=-2lcMAkHTDMVLsHK+j07+-- --=-IOyRdOTSa9jRmwTVgUgL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBDHACsAtZqQquHhqARAke4AKCbaj7U5ltSx/iVdtdviZcEgzPURQCeOzOd ZqrR9uQZSuyfhBlo2Kukihs= =7xVb -----END PGP SIGNATURE----- --=-IOyRdOTSa9jRmwTVgUgL--