Unless I am completely off the mark, I typically pass the IRequestCycle to my non-tapestry components and just use it. Once you have the Request Cycle, you can get the page you need and ask it for the component.
Name: Mark J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -----Original Message----- From: news on behalf of Dan Williams Sent: Thu 9/7/2006 9:40 AM To: users@tapestry.apache.org Subject: Retrieving Tapestry 4 components from outside Tapestry Hi, I've searched high and low for a definitive answer to this, but so far no luck. I have a java class, a service class, that needs to retrieve a Tapestry Component. This service class is 'outside' of Tapestry in that it's not a page, not a component, nor does it extend any Tapestry base classes. My question is: how can my service class retrieve a tapestry component? If we change things slightly and make my Tapestry component a Page instead, then this problem has an easy solution: simply pass the IRequestCycle to the service method and use IRequestCycle.getPage(<pagename>), but it seems not possible to retrieve a Component in this way, or am I missing something?! Short of injecting the component into some page, retrieving that page in my service then using IPage.getComponent(), I can't see another way. (And I really don't want to do it that way!) Any help would be greatly appreciated. Thanks, Dan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]