Provides integration between Tapestry and Seam, allowing Seam components to be injected into and outjected from Tapestry pages and components.
SeamListener
to your web.xml. SeamListener is responsible for initialization and cleanup
of a Seam application and session contexts.
<listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener>
ApplicationServlet
by SeamApplicationServlet
.
<servlet> <servlet-name>app</servlet-name> <servlet-class>net.sf.tacos.seam.SeamApplicationServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet>
<servlet> <servlet-name>Seam Resource Servlet</servlet-name> <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Seam Resource Servlet</servlet-name> <url-pattern>/seam/resource/*</url-pattern> </servlet-mapping>
<library id="seam" specification-path="/net/sf/tacos/Seam.library"/>
@In public abstract User getUser();
@In(create=true)
@In(create=true) @Out public abstract User getUser();
@In("#{user.username}") public abstract String getUsername();
el
binding prefix allows you to use EL expressions in Tapestry templates.
EL is similar to OGNL but has some advantages when using Seam in Tapestry pages and components.
<span jwcid="@Insert" value="el:user.getUsername()"/>
Remoting
.
The parameter include
expects a list of Seam component names.
<span jwcid="@seam:Remoting" include="ognl:Bean"/>
<span jwcid="@seam:Remoting" include="ognl:{'Bean','User'}"/>