myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maurojava <mauro2java2...@gmail.com>
Subject Re: config web.xml myfaces for use with primefaces
Date Mon, 08 Apr 2013 21:36:19 GMT
tank you for your response.
When i create a new project with netbeans 7.3 and tomee server, and i add
the JSF framework, i get automatically into web.xml the following
configuration for myfaces:

<listener>
       
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

from your response not says over <listener>
       
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>


it is necessaries?

what  it is the work of the <listener>
       
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
at startup of my web application??


2)Other questions:
from the link:
http://tandraschko.blogspot.de/2012/08/increase-your-jsf-application.html

i read :

Use JUEL as EL implementation 

    Add the newest JUEL API + implementation as depedency
    Configure MyFaces to use JUEL:
   
    	
    <context-param>
            <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
            <param-value>de.odysseus.el.ExpressionFactoryImpl</param-value>
    </context-param>

Increase expression cache in JUEL

    Create src/main/resources/el.properties
    Add property javax.el.cacheSize with a custom size. The default size is
1000. In my application i use a size of 3000.

DO i can download the JUEL ? it is from myfaces core???
-----------------------------------------------------------
If you use CDI, consider to use OpenWebBeans as implementation and configure
this in your web.xml:

	
<context-param>
    <param-name>org.apache.myfaces.EL_RESOLVER_COMPARATOR</param-name>
   
<param-value>org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator</param-value>
</context-param>




--
View this message in context: http://myfaces.10567.n7.nabble.com/config-web-xml-myfaces-for-use-with-primefaces-tp114536p114539.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Mime
View raw message