I don't think you're allowed to alternate <filter> and
<filter-mapping> sections.

You have to define all of your <filter> elements, and then all of your
<filter-mapping> elements.

Note that the order you list the filter-mappings is the other that
they get executed.

I recommend making the myfaces extension filter the last filter mapping.


On 2/9/06, Raj Rajendran <[EMAIL PROTECTED]> wrote:
> Please help !!
> I am using <t:inputDate type="date" popupCalendar="true"/>
> but getting Javascript errors like
>
> Error: loadPopupScript is not defined
> Error: Error in parsing value for property 'display'. Declaration dropped.
> Error: jscalendarPopUpCalendarForInputDate is not defined
> Error: Error in parsing value for property 'width'. Declaration dropped.
>
> Parts of my web.xml :
> (Please not that I have another Filter, does the order in which you define
> them matter ?
>
>
> <?xml version="1.0"?>
>
> <!DOCTYPE web-app PUBLIC
>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  "http://java.sun.com/dtd/web-app_2_3.dtd ">
>
> <web-app>
>  <display-name>xxxx</display-name>
>  <description>xxxxxxxxxxxxx</description>
>  <context-param>
>  <param-name>saveStateInClient</param-name>
>  <param-value>false</param-value>
>  </context-param>
>
>  <context-param>
> <param-name>javax.faces.application.CONFIG_FILES</param-name>
>  <param-value>/WEB-INF/faces-config.xml</param-value>
>  </context-param>
>
>  <context-param>
>  <param-name>com.sun.faces.validateXml</param-name>
>  <param-value>true</param-value>
>  </context-param>
>
>
>  <context-param>
> <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
>  <param-value>true</param-value>
>  <description>
>  This parameter tells MyFaces if javascript code should be allowed in the
>  rendered HTML output.
>  If javascript is allowed, command_link anchors will have javascript code
>  that submits the corresponding form.
>  If javascript is not allowed, the state saving info and nested parameters
>  will be added as url parameters.
>  Default: "true"
>  </description>
>  </context-param>
>
>  <context-param>
> <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
>  <param-value>false</param-value>
>  </context-param>
>
>  <context-param>
>  <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
>  <param-value>true</param-value>
>  <description>
>  If true, rendered HTML code will be formatted, so that it is "human
> readable".
>  i.e. additional line separators and whitespace will be written, that do not
>  influence the HTML code.
>  Default: "true"
>  </description>
>  </context-param>
>
>
>
> <!-- Begin - My Faces Extensions -->
>  <filter>
>  <filter-name>MyFacesExtensionsFilter</filter-name>
> <filter-class>org.apache.myfaces.component.html.util.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>
>
>
>  <filter-mapping>
>  <filter-name>MyFacesExtensionsFilter</filter-name>
>  <url-pattern>/faces/*</url-pattern>
>  </filter-mapping>
>  <filter-mapping>
>  <filter-name>MyFacesExtensionsFilter</filter-name>
> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>  </filter-mapping>
>
>
>
> <!-- End - My Faces Extensions -->
>
>  <filter>
>  <filter-name>AuthenticationFilter</filter-name>
>  <filter-class>com.xxx.AuthenticationFilter</filter-class>
>  </filter>
>  <filter-mapping>
>  <filter-name>AuthenticationFilter</filter-name>
>  <url-pattern>*.do</url-pattern>
>  </filter-mapping>
>
>
> <servlet>
>  <servlet-name>Tiles Servlet</servlet-name>
> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>  <init-param>
>  <param-name>definitions-config</param-name>
>  <param-value>/WEB-INF/tiles.xml</param-value>
>  </init-param>
>  <load-on-startup>2</load-on-startup>
>  </servlet>
>  <!-- Faces Servlet -->
>  <servlet>
>  <servlet-name>Faces Servlet</servlet-name>
>  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>  <load-on-startup>1</load-on-startup>
>  </servlet>
>
>  <!-- Faces Servlet Mapping -->
>  <servlet-mapping>
>  <servlet-name>Faces Servlet</servlet-name>
>  <url-pattern>*.do</url-pattern>
>  </servlet-mapping>
>
>  <!-- add a welcome-file-list to ensure our index page
>  goes through the Face Servlet as well! -->
>  <welcome-file-list>
>  <welcome-file> welcome.do</welcome-file>
>  </welcome-file-list>
>
>  <error-page>
>  <exception-type>java.lang.Throwable</exception-type>
>  <location>/errorPage.jsp</location>
>  </error-page>
>  <error-page>
>  <error-code>500</error-code>
>  <location>/errorPage.jsp</location>
>  </error-page>
>
>  <session-config>
>  <session-timeout>30</session-timeout>
>  </session-config>
>
>  <taglib>
>  <taglib-uri> http://corejsf.com/pager</taglib-uri>
>  <taglib-location>/WEB-INF/pager.tld</taglib-location>
>  </taglib>
>  <taglib>
>  <taglib-uri> http://corejsf.com/pager</taglib-uri>
>  <taglib-location>/WEB-INF/pager.tld</taglib-location>
>  </taglib>
> </web-app>

Reply via email to