Sorry for interruption. After reading your discussion, I try to read the more about Shale. >From the webpage, http://struts.apache.org/shale/index.html, it is found that Shale does not depend on Struts.
I wonder if Shale will be independent of Struts? 2005/9/20, Gary VanMatre <[EMAIL PROTECTED]>: > > > > > The only difference is instead of <span jsfid=content.html /> in profile > > > screen I need profile.html and in main I need main.html components. How > > > can I do this? > > > > Well... to me, this sounds like a job for Tiles. Gary, what do you think? > > > > Yes, I agree. The role of Clay is to glue togather JSF components. This is > at a smaller granularity than pulling together page fragments as tiles does. > > The main difference is that Clay doesn't have a concept of a abstract page > layout like tiles. In tiles, you can define a single layout that is used by > all pages. With Clay you have to have a concrete HTML template or JSP page. > > In your example you could construct a jsp page that has a single clay > component that includes your layout components. But, you would still have to > create a jsp or clay template for each page. > > mainPage.jsp > **JSP page declarations** > <clay:clay id="page" jsfid="mainPage" managedBeanName="mybean" /> > > Or a page with a single span tag. > Mypage.clay > <span " jsfid="mainPage" managedBeanName="mybean" /> > > Tiles allows you to define an abstract page where Cay currently requires a > concrete page where you abstract the content. > > > -- > > Wendy Smoak > > > > > > Gary > > > > From: "Maksimenko Alexander" <[EMAIL PROTECTED]> > > > > > The only difference is instead of <span jsfid=content.html /> in profile > > > screen I need profile.html and in main I need main.html components. How > > > can I do this? > > > > Well... to me, this sounds like a job for Tiles. Gary, what do you think? > > > > As far as Shale + Tiles documentation goes, there is David's blog entry: > > http://jroller.com/page/dgeary?entry=shale_adds_tiles_integration > > > > And another list member, Geeta Ramani, has put together an example webapp: > > http://marc.theaimsgroup.com/?l=struts-user&m=112507041612466&w=2 > > > > One thing to keep in mind is that Standalone Tiles is still in the Struts > > Sandbox. It hasn't had a release yet and it could undergo some changes > > before it does. > > > > If you're using MyFaces, they have support for Struts Tiles-- there's a > > 'tiles.war' example app as part of their distribution, and a new Wiki page > > here: http://wiki.apache.org/myfaces/Tiles_and_JSF . > > > > I haven't worked with it enough to know what the difference is between using > > Struts Tiles or Standalone Tiles in a webapp. Somewhere on my TODO list is > > to take the MyFaces tiles.war example and see what it takes to convert it to > > Standalone Tiles. > > > > -- > > Wendy Smoak > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]