Re: Tiles and Facades
Hello, Paul, I am not sure exactly what you are getting at here, although the topic is clear. I guess that one thing that makes reading this difficult is that I have not investigated SiteMesh. I do use Tiles definitions in XML exclusively, and you seem to be talking about situations where that is not done. Can you expand on this a bit? I am not working, obviously, on the Tiles development, so I won't be able to answer your question in any event, but find the question itself interesting. Thanks, Jack On Thu, 3 Feb 2005 10:12:44 -0500, Benedict, Paul C [EMAIL PROTECTED] wrote: I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? Also, I think Tiles is great, but I find it very annoying to litter every JSP page with tiles tags to decorate my pages. While it makes sense to put the tile definitions in XML when I do Struts development, sometimes JSP needs to be accessed directly. Is there (or will be) any mechanism (like a filter) to can automatically decorate JSP (ala SiteMesh)? Thanks, Paul Jack -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and Facades
Not Jakarta, but Apache. Jakarta is a subproject. And it's no rumor http://wiki.apache.org/struts/TilesTopLevel You should only need to litter the layout file(s) that you need. I usually get away with 1 or 2. In the projects that I have any control over, linking directly to a JSP is unacceptable. If Tiles doesn't cut the mustard, use SiteMesh, or if you need both, use it in combination with Tiles. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Benedict, Paul C [EMAIL PROTECTED] To: struts-user@jakarta.apache.org Sent: Thursday, February 03, 2005 10:12 AM Subject: Tiles and Facades I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? Also, I think Tiles is great, but I find it very annoying to litter every JSP page with tiles tags to decorate my pages. While it makes sense to put the tile definitions in XML when I do Struts development, sometimes JSP needs to be accessed directly. Is there (or will be) any mechanism (like a filter) to can automatically decorate JSP (ala SiteMesh)? Thanks, Paul -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and Facades
At 10:12 AM -0500 2/3/05, Benedict, Paul C wrote: I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? There was considerable discussion about this on the dev list about a month ago. The intention first is to refactor Tiles to demonstrate that it is independent of the Struts core. Whether it continues to live as a Struts sub-project, move to an Apache TLP, a Jakarta TLP, or to Source Forge, Java.net, or any place else seems open, as far as I can tell. Also, I think Tiles is great, but I find it very annoying to litter every JSP page with tiles tags to decorate my pages. While it makes sense to put the tile definitions in XML when I do Struts development, sometimes JSP needs to be accessed directly. Is there (or will be) any mechanism (like a filter) to can automatically decorate JSP (ala SiteMesh)? If you like SiteMesh, why not use SiteMesh? Is there something that needs to be done to make it integrate better with Struts? If not, I don't see any reason to re-invent the wheel. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Narrow minds are weapons made for mass destruction -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles and Facades
Jack and Joe, I believe there are 2 ways of using Tiles: 1. Placing definitions in XML. This solution works well with Struts because I can hide all my JSP in WEB-INF, define how each page is decorated, and invoke the tile definition name in a Struts forward. 2. Placing Tiles tags in JSP. This solution works well during rapid prototyping or where JSP pages need to be directly accessed by the user. Personally, it's a bear to inline decorate my pages when I am not doing Struts. I'd rather work with a filter and the XML configuration. If you like SiteMesh, why not use SiteMesh? Is there something that needs to be done to make it integrate better with Struts? If not, I don't see any reason to re-invent the wheel. If I have a system already built in Struts, it becomes a little awkward to host multiple JSP decorating technologies together. Yes, SiteMesh will do this, but my first love is Tiles :) I hope this helps! I don't mind going another round if it doesn't :) Thanks, Paul -Original Message- From: Shey Rab Pawo [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 10:26 AM To: Struts Users Mailing List Cc: struts-user@jakarta.apache.org Subject: Re: Tiles and Facades Hello, Paul, I am not sure exactly what you are getting at here, although the topic is clear. I guess that one thing that makes reading this difficult is that I have not investigated SiteMesh. I do use Tiles definitions in XML exclusively, and you seem to be talking about situations where that is not done. Can you expand on this a bit? I am not working, obviously, on the Tiles development, so I won't be able to answer your question in any event, but find the question itself interesting. Thanks, Jack On Thu, 3 Feb 2005 10:12:44 -0500, Benedict, Paul C [EMAIL PROTECTED] wrote: I read a rumor that said Tiles will become its own top-level subproject in Jakarta. Is that true? Also, I think Tiles is great, but I find it very annoying to litter every JSP page with tiles tags to decorate my pages. While it makes sense to put the tile definitions in XML when I do Struts development, sometimes JSP needs to be accessed directly. Is there (or will be) any mechanism (like a filter) to can automatically decorate JSP (ala SiteMesh)? Thanks, Paul Jack -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and Facades
On Thu, 3 Feb 2005 10:36:50 -0500, Benedict, Paul C [EMAIL PROTECTED] wrote: 1. Placing definitions in XML. This solution works well with Struts because I can hide all my JSP in WEB-INF, define how each page is decorated, and invoke the tile definition name in a Struts forward. 2. Placing Tiles tags in JSP. This solution works well during rapid prototyping or where JSP pages need to be directly accessed by the user. Personally, it's a bear to inline decorate my pages when I am not doing Struts. I'd rather work with a filter and the XML configuration. If you are using the definitions in XML, which I find works faster during rapid prototyping than putting Tiles tags in JSP, do you still have the problem? As James said, all the Tiles tags then just go into the layout pages. -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]