After I found some tutorials and updated my config I'm still stuck with the
following Exception when I access the website.

Exception while calling encodeBegin on component : {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /index.xhtml][Class:
javax.faces.component.html.HtmlForm,Id: j_id4]}

web.xml and faces-config.xml are attached.

my versions:
tomahawk 1.1.3
jsf-facelets 1.1.14
softeu-rewriter 11
myfaces-api 1.2.4
myfaces-impl 1.2.4
jstl 1.1.2
trinidad-api 1.2.10
trinidad-impl 1.2.10

Any help would be appreciated
Bast



2009/10/2 baeschtu baeschtu <[email protected]>

> Right, I did not following the installation instructions :-) Thanks for the
> help!
>
>
> 2009/10/2 Richard Yee <[email protected]>
>
> You should be using facelets 1.1.14 instead of 1.1.11
>>
>> Sent from my iPhone
>>
>> On Oct 2, 2009, at 8:07 AM, baeschtu baeschtu <[email protected]> wrote:
>>
>>  Hello, I'm pretty new to jsf and would like to make a small website. I
>>> try to make a tabbed menu with tr:navigationPane but I'm stuck with the
>>> following error:
>>>
>>> WARNING: Could not find renderer for CoreNavigationPane[UIXFacesBeanImpl,
>>> id=j_id8] rendererType = org.apache.myfaces.trinidad.Pane
>>>
>>> my versions:
>>> tomahawk 1.1.3
>>> jsf-facelets 1.1.11
>>> softeu-rewriter 11
>>> myfaces-api 1.2.4
>>> myfaces-impl 1.2.4
>>> jstl 1.1.2
>>> trinidad-api 1.2.10
>>> trinidad-impl 1.2.10
>>>
>>> What I'm doing wrong?
>>>
>>> tnx
>>> Bast
>>>
>>
>
<?xml version="1.0"?>
<web-app 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";
	version="2.4">

	<description>my-manager Web</description>

	<context-param>
		<description>Comma separated list of URIs of (additional) faces config files.
            (e.g. /WEB-INF/my-config.xml)
            See JSF 1.0 PRD2, 10.3.2
            Attention: You do not need to put /WEB-INF/faces-config.xml in here.
        </description>
		<param-name>javax.faces.CONFIG_FILES</param-name>
		<param-value>/WEB-INF/my-config.xml</param-value>
	</context-param>
	<context-param>
		<description>State saving method: "client" or "server" (= default)
            See JSF Specification 2.5.3</description>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>client</param-value>
	</context-param>
	<context-param>
		<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>
		<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<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>
		<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.request.charset</param-name>
		<param-value>UTF-8</param-value>
	</context-param>
	<context-param>
		<description>Used for encrypting view state. Only relevant for client side
            state saving. See MyFaces wiki/web site documentation for instructions
            on how to configure an application for diffenent encryption strengths.
        </description>
		<param-name>org.apache.myfaces.SECRET</param-name>
		<param-value>NzY1NDMyMTA=</param-value>
	</context-param>

	<context-param>
		<description>
            Validate managed beans, navigation rules and ensure that forms are not nested.
        </description>
		<param-name>org.apache.myfaces.VALIDATE</param-name>
		<param-value>true</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.xhtml</param-value>
	</context-param>

	<context-param>
		<param-name>facelets.DEVELOPMENT</param-name>
		<param-value>true</param-value>
	</context-param>

	<!-- Extensions Filter -->
	<filter>
		<filter-name>extensionsFilter</filter-name>
		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
		<init-param>
			<description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                10k - 10 KB
                10m - 10 MB
                1g - 1 GB</description>
			<param-name>uploadMaxFileSize</param-name>
			<param-value>100m</param-value>
		</init-param>
		<init-param>
			<description>Set the threshold size - files
                below this limit are stored in memory, files above
                this limit are stored on disk.

                Format: 10 - 10 bytes
                10k - 10 KB
                10m - 10 MB
                1g - 1 GB</description>
			<param-name>uploadThresholdSize</param-name>
			<param-value>100k</param-value>
		</init-param>
	</filter>

	<filter>
		<filter-name>RewriterFilter</filter-name>
		<filter-class>cz.softeu.rewriter.RewriterFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>RewriterFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>/faces/*</url-pattern>
	</filter-mapping>

	<!-- Listener, to allow serving MyFaces apps -->
	<listener>
		<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
	</listener>

	<!-- Faces Servlet -->
	<servlet>
		<servlet-name>faces</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-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>

	<!-- Welcome files -->
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>

	<!-- Trinidad -->
	<filter>
		<filter-name>trinidad</filter-name>
		<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
	</filter>

	<filter-mapping>
		<filter-name>trinidad</filter-name>
		<!-- This assumes that the FacesServlet has been registered -->
		<!-- under the name "faces" -->
		<servlet-name>faces</servlet-name>
	</filter-mapping>

	<context-param>
		<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
		<!--
			TrinidadFaceletViewHander must be the alternate view handler if
			SessionChangeManager is used
		-->
		<param-value>org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler</param-value>
	</context-param>

	<context-param>
		<!--
			Unfortunately, Facelets provides no hook for plugging the
			PageResolver into the logic handling "facelets.VIEW_MAPPINGS". You
			should leave "facelets.VIEW_MAPPINGS" unset and use
			"org.apache.myfaces.trinidad.FACELETS_VIEW_MAPPINGS" instead.
		-->
		<param-name>org.apache.myfaces.trinidad.FACELETS_VIEW_MAPPINGS</param-name>
		<param-value>*.xhtml</param-value>
	</context-param>
</web-app>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config 
    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd";>

<faces-config>
	<application>
		<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
	</application>

	<application>
		<default-render-kit-id>
			org.apache.myfaces.trinidad.core
		</default-render-kit-id>
	</application>
</faces-config>


Reply via email to