Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-08 Thread Inge Solvoll
Is there any way to access Tapestry pages from other frameworks in the same web applications? My web app is part struts, part tapestry. Sometimes I really would like to make this kind of code in my struts action: TapestryUtils.getPage(pageNameString, httpServletRequest).setMyProperty(myValue); I

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Dan Williams
Thanks for your input guys. I appreciate your reasoning - I guess I just had a different conceptual idea of how Tapestry works! I had already implemented the dummy page solution, but just didn't really like it - it seemed a little messy against the backdrop of the rest of Tapestry. If you look thr

RE: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Mark Stang
can you affect or access it. hth, Mark Name: Mark J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Richard Kirby [mailto:[EMAIL PROTECTED] Sent: Thu 9/7/2006 10:56 AM To: Tapestry users Subject: Re: Retrie

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Richard Kirby
Hi Dan, Conceptually, component instances do not exist outside of pages. This is just how Tapestry works. If you want to access your component, you will need to place it on a dummy page and access it via that page as you suspect. Is there any particular reason why you don't want a dummy page?

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Dan Williams
Hi, Thanks for responding! That's true, but my component is not part of any page - just an isolated component. In my original post I used the example of a page (instead of a component) to highlight how easy it is to do this if your 'component' is a page. But if your component is an actual compon

RE: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Mark Stang
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