You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2010/03/15 16:50:30 UTC
[jira] Resolved: (TOBAGO-657) not running at all
[ https://issues.apache.org/jira/browse/TOBAGO-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Udo Schnurpfeil resolved TOBAGO-657.
------------------------------------
Resolution: Invalid
Such kind of questions should asked on the user mailing list.
> not running at all
> ------------------
>
> Key: TOBAGO-657
> URL: https://issues.apache.org/jira/browse/TOBAGO-657
> Project: MyFaces Tobago
> Issue Type: Bug
> Reporter: adam
> Attachments: small application.rar
>
>
> Hey Guys .. I'm new with Tobago and i make small example to test my knowledge and when i press the button nothing run plz can any one help me and tell me why not running?
> I attached all files that u will need to see it
> Waiting for ur replay as soon as possible
> plz any one help me on my first application
> faces-config.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE faces-config PUBLIC
> "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
> "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
> <faces-config>
> <managed-bean>
> <managed-bean-name>
> goClass</managed-bean-name>
> <managed-bean-class>
> com.GoClass</managed-bean-class>
> <managed-bean-scope>
> session</managed-bean-scope>
> </managed-bean>
> <navigation-rule>
> <display-name>
> index</display-name>
> <from-view-id>
> /index.jsp</from-view-id>
> <navigation-case>
> <from-outcome>success</from-outcome>
> <to-view-id>
> /success.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
> </faces-config>
> tobago-config.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE tobago-config PUBLIC
> "-//The Apache Software Foundation//DTD Tobago Config 1.0//EN" "tobago-config_1_0.dtd">
> <tobago-config>
> <theme-config>
> <default-theme>speyside</default-theme>
> <supported-theme>scarborough</supported-theme>
> <supported-theme>richmond</supported-theme>
> <supported-theme>charlotteville</supported-theme>
> </theme-config>
> <resource-dir>tobago-resource</resource-dir>
> <ajax-enabled>true</ajax-enabled>
> </tobago-config>
> web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4"
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
> <display-name>TestJSF</display-name>
> <!-- add filter to tobago facet -->
> <filter>
> <filter-name>multipartFormdataFilter</filter-name>
> <filter-class>
> org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter
> </filter-class>
> <init-param>
> <description>
> Set the size limit for uploaded files. Default value is
> 1 MB. Format: 10 = 10 bytes 10k = 10 KB 10m = 10 MB 1g =
> 1 GB
> </description>
> <param-name>uploadMaxFileSize</param-name>
> <param-value>20m</param-value>
> </init-param>
> <!--<init-param>
> <description>Set the upload repository path for uploaded files. Default value is java.io.tmpdir.</description>
> <param-name>uploadRepositoryPath</param-name>
> <param-value>/tmp</param-value>
> </init-param>-->
> </filter>
> <filter-mapping>
> <filter-name>multipartFormdataFilter</filter-name>
> <url-pattern>/faces/*</url-pattern>
> </filter-mapping>
> <!-- add listener to tobago facet -->
> <listener>
> <listener-class>
> org.apache.myfaces.tobago.webapp.TobagoServletContextListener
> </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>/faces/*</url-pattern>
> </servlet-mapping>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> <welcome-file>index.htm</welcome-file>
> <welcome-file>index.jsp</welcome-file>
> <welcome-file>default.html</welcome-file>
> <welcome-file>default.htm</welcome-file>
> <welcome-file>default.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
> index.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx"%>
> <f:view>
> <tc:page>
> <tc:panel>
> <f:facet name="layout">
> <tc:gridLayout rows="fixed;*" />
> </f:facet>
> <tc:button label="Enter Here" action="#{goClass.go}"></tc:button>
> </tc:panel>
> </tc:page>
> </f:view>
> success.jsp:....
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>Insert title here</title>
> </head>
> <body>
> <h1>Success</h1>
> </body>
> </html>
> tell me where is the error i use appach server version 6
> Thanks & Regards
> Adam
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.