You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andreas Grund <an...@valtech.de> on 2007/12/03 09:10:42 UTC

Problem using Trinidad

Hi Mailinglist,

I want to use the trinidad inputNumberSpinbox within my web app, but my 
browser does not render it. I got the following waring within my serverlog 
(weblogic 8.1):
WARNUNG: Unsupported component-family/renderer-type: 
org.apache.myfaces.trinidad.Input/org.apache.myfaces.trinidad.NumberSpinbox
03.12.2007 08:55:39 org.apache.myfaces.trinidad.component.UIXComponentBase 
_getRendererImpl
WARNUNG: Could not find renderer for 
CoreInputNumberSpinbox[UIXEditableFacesBeanImpl, id=_idJsp18] rendererType 
= org.apache.myfaces.trinidad.NumberSpinbox

What should I do to solve this Warnings? I think, the browser should 
render the input-box, if this warnings are solved.

My system environment looks like the following:
Java 1.4.2
Weblogic 8.1
Windows XP OS
Firefox 2.0.0.7 as browser

I weaved to trinidad jars to work with a java 1.4.2 environment as told in 
the Wiki without any problems and I use this jars within my webapp. Do I 
have to configure something else in my web.xml or do I have to put some 
additional tld within my class path. My web.xml looks like the following:
<?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>Standard-Deskriptor für MyFaces</description>
	<display-name>Standard-Deskriptor für MyFaces</display-name>
	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>server</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.CONFIG_FILES</param-name>
		<param-value>/WEB-INF/faces-config.xml</param-value>
	</context-param>

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

	<listener>
		<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
	</listener>

	<!-- listener for initializing quartz -->
	<listener>
		<listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class>
	</listener>

	<listener>
		<listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class>
	</listener>

	<filter>
		<filter-name>MyFacesExtensionsFilter</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>maxFileSize</param-name>
			<param-value>20m</param-value>
		</init-param>
	</filter>

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

	<filter-mapping>
		<filter-name>trinidad</filter-name>
		<servlet-name>faces</servlet-name>
	</filter-mapping>

	<!-- resource loader servlet -->
	<servlet>
		<servlet-name>resources</servlet-name>
		<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
	</servlet>

	<!-- extension mapping for adding <script/>, <link/>, and other resource 
tags to JSF-pages  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<!-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry -->
		<servlet-name>Faces Servlet</servlet-name>
	</filter-mapping>

	<!-- extension mapping for serving page-independent resources 
(javascript, stylesheets, images, etc.)  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>

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

  <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
  </servlet-mapping>

</web-app>

Thanks for your help and please let me know, if you need additional 
information for solving the problem.

Best regards,
Andreas Grund

-- 
Andreas Grund
externer Mitarbeiter Projet GUTS bei Conti
mailto:andreas.grund@valtech.de
Mobile:




Germany

Phone:
Fax:



Geschäftsführer: Ingo Kriescher
Amtsgericht Düsseldorf HRB48672

AW: Problem using Trinidad

Posted by Andreas Grund <an...@valtech.de>.
Hi Matthias,

that was my fault. Thanks for your help.

Best regards,
Andreas


-----Ursprüngliche Nachricht-----
Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
Gesendet: Mo 03.12.2007 09:35
An: MyFaces Discussion
Betreff: Re: Problem using Trinidad
 
Hi,

have you defined the Trinidad-RenderKit inside your faces-cfg ?

-M

On Dec 3, 2007 9:10 AM, Andreas Grund <an...@valtech.de> wrote:
> Hi Mailinglist,
>
> I want to use the trinidad inputNumberSpinbox within my web app, but my
> browser does not render it. I got the following waring within my serverlog
> (weblogic 8.1):
> WARNUNG: Unsupported component-family/renderer-type:
> org.apache.myfaces.trinidad.Input/org.apache.myfaces.trinidad.NumberSpinbox
> 03.12.2007 08:55:39 org.apache.myfaces.trinidad.component.UIXComponentBase
> _getRendererImpl
> WARNUNG: Could not find renderer for
> CoreInputNumberSpinbox[UIXEditableFacesBeanImpl, id=_idJsp18] rendererType
> = org.apache.myfaces.trinidad.NumberSpinbox
>
> What should I do to solve this Warnings? I think, the browser should
> render the input-box, if this warnings are solved.
>
> My system environment looks like the following:
> Java 1.4.2
> Weblogic 8.1
> Windows XP OS
> Firefox 2.0.0.7 as browser
>
> I weaved to trinidad jars to work with a java 1.4.2 environment as told in
> the Wiki without any problems and I use this jars within my webapp. Do I
> have to configure something else in my web.xml or do I have to put some
> additional tld within my class path. My web.xml looks like the following:
> <?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>Standard-Deskriptor für MyFaces</description>
>         <display-name>Standard-Deskriptor für MyFaces</display-name>
>         <context-param>
>                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>                 <param-value>server</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>javax.faces.CONFIG_FILES</param-name>
>                 <param-value>/WEB-INF/faces-config.xml</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>                 <param-value>.jsp</param-value>
>         </context-param>
>
>         <listener>
>                 <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>         </listener>
>
>         <!-- listener for initializing quartz -->
>         <listener>
>                 <listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class>
>         </listener>
>
>         <listener>
>                 <listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class>
>         </listener>
>
>         <filter>
>                 <filter-name>MyFacesExtensionsFilter</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>maxFileSize</param-name>
>                         <param-value>20m</param-value>
>                 </init-param>
>         </filter>
>
>         <filter>
>                 <filter-name>trinidad</filter-name>
>                 <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
>         </filter>
>
>         <filter-mapping>
>                 <filter-name>trinidad</filter-name>
>                 <servlet-name>faces</servlet-name>
>         </filter-mapping>
>
>         <!-- resource loader servlet -->
>         <servlet>
>                 <servlet-name>resources</servlet-name>
>                 <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>         </servlet>
>
>         <!-- extension mapping for adding <script/>, <link/>, and other resource
> tags to JSF-pages  -->
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <!-- servlet-name must match the name of your
> javax.faces.webapp.FacesServlet entry -->
>                 <servlet-name>Faces Servlet</servlet-name>
>         </filter-mapping>
>
>         <!-- extension mapping for serving page-independent resources
> (javascript, stylesheets, images, etc.)  -->
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>         </filter-mapping>
>
>         <!-- 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>*.jsf</url-pattern>
>         </servlet-mapping>
>
>   <servlet-mapping>
>     <servlet-name>resources</servlet-name>
>     <url-pattern>/adf/*</url-pattern>
>   </servlet-mapping>
>
> </web-app>
>
> Thanks for your help and please let me know, if you need additional
> information for solving the problem.
>
> Best regards,
> Andreas Grund
>
> --
> Andreas Grund
> externer Mitarbeiter Projet GUTS bei Conti
> mailto:andreas.grund@valtech.de
> Mobile:
>
>
>
>
> Germany
>
> Phone:
> Fax:
>
>
>
> Geschäftsführer: Ingo Kriescher
> Amtsgericht Düsseldorf HRB48672
>



-- 
Matthias Wessendorf

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


Re: Problem using Trinidad

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,

have you defined the Trinidad-RenderKit inside your faces-cfg ?

-M

On Dec 3, 2007 9:10 AM, Andreas Grund <an...@valtech.de> wrote:
> Hi Mailinglist,
>
> I want to use the trinidad inputNumberSpinbox within my web app, but my
> browser does not render it. I got the following waring within my serverlog
> (weblogic 8.1):
> WARNUNG: Unsupported component-family/renderer-type:
> org.apache.myfaces.trinidad.Input/org.apache.myfaces.trinidad.NumberSpinbox
> 03.12.2007 08:55:39 org.apache.myfaces.trinidad.component.UIXComponentBase
> _getRendererImpl
> WARNUNG: Could not find renderer for
> CoreInputNumberSpinbox[UIXEditableFacesBeanImpl, id=_idJsp18] rendererType
> = org.apache.myfaces.trinidad.NumberSpinbox
>
> What should I do to solve this Warnings? I think, the browser should
> render the input-box, if this warnings are solved.
>
> My system environment looks like the following:
> Java 1.4.2
> Weblogic 8.1
> Windows XP OS
> Firefox 2.0.0.7 as browser
>
> I weaved to trinidad jars to work with a java 1.4.2 environment as told in
> the Wiki without any problems and I use this jars within my webapp. Do I
> have to configure something else in my web.xml or do I have to put some
> additional tld within my class path. My web.xml looks like the following:
> <?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>Standard-Deskriptor für MyFaces</description>
>         <display-name>Standard-Deskriptor für MyFaces</display-name>
>         <context-param>
>                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>                 <param-value>server</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>javax.faces.CONFIG_FILES</param-name>
>                 <param-value>/WEB-INF/faces-config.xml</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>                 <param-value>.jsp</param-value>
>         </context-param>
>
>         <listener>
>                 <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>         </listener>
>
>         <!-- listener for initializing quartz -->
>         <listener>
>                 <listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class>
>         </listener>
>
>         <listener>
>                 <listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class>
>         </listener>
>
>         <filter>
>                 <filter-name>MyFacesExtensionsFilter</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>maxFileSize</param-name>
>                         <param-value>20m</param-value>
>                 </init-param>
>         </filter>
>
>         <filter>
>                 <filter-name>trinidad</filter-name>
>                 <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
>         </filter>
>
>         <filter-mapping>
>                 <filter-name>trinidad</filter-name>
>                 <servlet-name>faces</servlet-name>
>         </filter-mapping>
>
>         <!-- resource loader servlet -->
>         <servlet>
>                 <servlet-name>resources</servlet-name>
>                 <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>         </servlet>
>
>         <!-- extension mapping for adding <script/>, <link/>, and other resource
> tags to JSF-pages  -->
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <!-- servlet-name must match the name of your
> javax.faces.webapp.FacesServlet entry -->
>                 <servlet-name>Faces Servlet</servlet-name>
>         </filter-mapping>
>
>         <!-- extension mapping for serving page-independent resources
> (javascript, stylesheets, images, etc.)  -->
>         <filter-mapping>
>                 <filter-name>MyFacesExtensionsFilter</filter-name>
>                 <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>         </filter-mapping>
>
>         <!-- 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>*.jsf</url-pattern>
>         </servlet-mapping>
>
>   <servlet-mapping>
>     <servlet-name>resources</servlet-name>
>     <url-pattern>/adf/*</url-pattern>
>   </servlet-mapping>
>
> </web-app>
>
> Thanks for your help and please let me know, if you need additional
> information for solving the problem.
>
> Best regards,
> Andreas Grund
>
> --
> Andreas Grund
> externer Mitarbeiter Projet GUTS bei Conti
> mailto:andreas.grund@valtech.de
> Mobile:
>
>
>
>
> Germany
>
> Phone:
> Fax:
>
>
>
> Geschäftsführer: Ingo Kriescher
> Amtsgericht Düsseldorf HRB48672
>



-- 
Matthias Wessendorf

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