Hi, I'm a tapestry newbie and want to use tapestry5 for a new set of pages.
There is a requirement that some of the new components can be re-used on
some existing struts/JSP based pages. I was hoping that I could write a jsp
tag library which would initialize t5 components, include their javascript /
css and render the html inline.

Perhaps something like:

<%@ taglib uri="/WEB-INF/tapestry5" prefix="t5" %>
<t5:root>
   <t5:init component="grid" name="userGrid">
      <t5:param name="users" value="${users}" />
   </t5:init>
   <t5:init component="beaneditform" name="userForm">
      <t5:param name="id" value="form" />
      <t5:param name="object" value="${user}" />
   </t5:init>

   <html>
      <head>
         <!-- this will include any js or css required grid or beaneditform
-->
         <t5:head />
      </head>

      <!-- reference to the t5:init above -->
      <t5:component name="userGrid">

      <!-- reference to the t5:init above -->
      <t5:component name="userForm" />
   </html>
</t5:root>
 Can someone let me know if i'm barking mad or not?
If this is possible, what classes etc I should be looking at and what
potential issues I might have.


Thanks,
Lance.

Reply via email to