myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek (JIRA)" <>
Subject [jira] Commented: (MYFACES-133) Configured but inexistent Renderer is not reported
Date Thu, 26 May 2005 06:52:00 GMT
     [ ]
Martin Marinschek commented on MYFACES-133:

This is the corresponding source-code:

                javax.faces.render.Renderer renderer = null;
                try {
                  renderer = (javax.faces.render.Renderer) ClassUtils.newInstance(element.getRendererClass());
                } catch(FacesException e) {
                  // ignore the failure so that the render kit is configured
                  log.error("failed to configure class " + element.getRendererClass(), e);

I would suppose that the logging should be exactly what you refer to, I don't know why this
would still not be logged?



> Configured but inexistent Renderer is not reported
> --------------------------------------------------
>          Key: MYFACES-133
>          URL:
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.8 beta
>  Environment: Tomcat 5.0.28
>     Reporter: Alexander Jesse
>     Priority: Minor
>  Attachments:,,
> A configured but inexistent renderer is not reported and the myfaces-application starts
using the supplied standard renderer. The SUN-RI reports a "java.lang.ClassNotFoundException:
com.jsf.components.renderer.NotExistingRenderer" which helps to pinpoint the configuration
> For production this can be a desired behaviour but presents some danger at the same time.
Not having the information at hand I wondered why my renderer would not decorate the input-field
as planned. When I tried the same renderer in the RI the error (wrong classname) was found
in 30 seconds.
> The error is easy to reproduce:
> Take an existing JSF-application and add a phantom renderer to the faces-config.xml.
Then start the web-container.
> (sample config-entry:
> <render-kit>
>  <renderer>
>   <component-family>javax.faces.Input</component-family>
>   <renderer-type>javax.faces.Text</renderer-type>
>   <renderer-class>com.jsf.components.renderer.NotExistingRenderer</renderer-class>
>  </renderer>
> </render-kit>
> )

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message