[jboss-user] [JBoss Seam] - Seam over JSF 1.2 performance
mgrouch
do-not-reply at jboss.com
Sat Jun 23 15:01:37 EDT 2007
I've added tomahawk 1.1.6 and wrapped document using tomahawk
t:document. App is using JSF 1.2 and Seam 1.3.0.A on JBoss 4.2.
The rendering works noticably faster, not sure why though.
Might be Seam development team could look at that and if performance
is indeed better Seam could be improved so no tomahawk is needed (I do not use tomahawk for anything else in my app, and no myfaces JSF implementation at all).
anonymous wrote :
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <f:view xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:t="http://myfaces.apache.org/tomahawk"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <t:document>
| <t:documentHead>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| Seam App
|
| </t:documentHead>
| <t:documentBody>
| <ui:include src="menu.xhtml">
| </ui:include>
|
| <ui:insert name="body"/>
|
| </t:documentBody>
| </t:document>
| </f:view>
|
Added into
web.xml
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| <description>Set the size limit for uploaded files.
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
| </description>
| </init-param>
| </filter>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
|
|
| <context-param>
| <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
| <param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
| <param-value>false</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
| <param-value>false</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
| <param-value>20</param-value>
| <description>Only applicable if state saving method is "server" (= default).
| Defines the amount (default = 20) of the latest views are stored in session.
| </description>
| </context-param>
|
|
|
added commons-fileupload-1.2.jar into WEB-INF/lib
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057149#4057149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057149
More information about the jboss-user
mailing list