Commonea20.js ?
that isn't Trinidad, that was old ADF Faces.

I don't see a Servlet-Mapping for our Resource servlet

(check with the Trinidad demos how to define that)

-M

On Jan 13, 2008 11:20 PM, Mathias Walter <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using Trinidad 1.2.4 (also tried 1.2.5) with JSF 1.2 RI (1.2_07-b03-FCS)
> and Tomahawk 1.1.6 with JSP pages.
>
> As soon as I change the default-render-kit-id to
> org.apache.myfaces.trinidad.core, my login page is broken. I get an script
> error message "_submitFormCheck is not defined".
>
> That seems to be an old reintroduced problem, because I've found a few
> articles at google. I tried all of the recommendations, but nothing helps.
>
> My login page does not use any Tomahawk or Trinidad tags and no external
> script files like 'Commonea20.js' are imported.
>
> What causes the problem and how to solve it?
>
> Here the relevant extract from my web.xml:
>
>         <filter>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-clas
> s>
>                 <init-param>
>                         <param-name>maxFileSize</param-name>
>                         <param-value>20m</param-value>
>                 </init-param>
>         </filter>
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <servlet-name>faces</servlet-name>
>         </filter-mapping>
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <url-pattern>/myFacesExtensionResource/*</url-pattern>
>         </filter-mapping>
>
>         <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>
>         <welcome-file-list>
>                 <welcome-file>index.jsp</welcome-file>
>         </welcome-file-list>
>         <servlet>
>                 <servlet-name>resources</servlet-name>
>
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-c
> lass>
>         </servlet>
>
> and from faces-config.xml:
>
>         <application>
>
> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-
> id>
>                 <message-bundle>Resources</message-bundle>
>         </application>
>
> and the login.jsp:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <[EMAIL PROTECTED] contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <[EMAIL PROTECTED] file="/includes/noCache.jsp"%>
> <f:view>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1" />
>         <title>dnaDB</title>
>         <link type="text/css" rel="stylesheet" href="<%=
> request.getContextPath() %>/main.css" />
>         <style type="text/css">
>                 html, body {height: 100%; margin: 0; padding: 0; }
>                 #layout { height: 100%; border: 0; padding: 0;}
>         </style>
> </head>
> <body style="font-family: Tahoma">
>         <table id="layout" align="center">
>                 <tr>
>                         <td valign="middle">
>                                 <h:form>
>                                 <table width="350" border="0"
> bgcolor="#eaeaea" bordercolor="#eaeaea" cellspacing="0">
>                                         <tr>
>                                                 <td colspan="2">
>                                                         <center>
>                                                                 <font
> face="arial" size="3"><b>Login</b></font>
>                                                                 <br
> /><h:messages globalOnly="true" styleClass="errors" layout="table"/>
>                                                         </center>
>                                                 </td>
>                                         </tr>
>
>                                         <tr>
>                                                 <td><font face="arial"
> size="2"> <h:outputLabel for="loginName">
>                                                         <h:outputText
> value="User Name:" />
>                                                 </h:outputLabel>
> </font></td>
>                                                 <td><h:panelGroup>
>                                                         <h:inputText
> id="loginName" value="#{authenticationBean.loginName}" autocomplete="off"
> size="30" required="true">
>
> <f:validateLength minimum="5" maximum="16" />
>                                                         </h:inputText>
>                                                         <br />
>                                                         <h:message
> for="loginName" styleClass="errors" />
>                                                 </h:panelGroup></td>
>                                         </tr>
>                                         <tr>
>                                                 <td><font face="arial"
> size="2"> <h:outputLabel for="password">
>                                                         <h:outputText
> value="Password:" />
>                                                 </h:outputLabel>
> </font></td>
>                                                 <td><h:panelGroup>
>                                                         <h:inputSecret
> id="password" value="#{authenticationBean.password}" size="30"
> required="true">
>
> <f:validateLength minimum="5" maximum="30" />
>                                                         </h:inputSecret>
>                                                         <br />
>                                                         <h:message
> for="password" styleClass="errors" />
>                                                 </h:panelGroup></td>
>                                         </tr>
>                                         <tr>
>                                                 <td><font face="arial"
> size="1">PatientDB<br />
>                                                 Version 0.11 </font></td>
>                                                 <td align="right">
>                                                         <h:commandButton
> value="Login" action="#{authenticationBean.login}" />
>                                                 </td>
>                                         </tr>
>                                 </table>
>                                 </h:form>
>                         </td>
>                 </tr>
>         </table>
> </body>
> </html>
> </f:view>
>
> --
> Kind regards,
> Mathias Walter
> Germany
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Reply via email to