You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Martin Marinschek <ma...@gmail.com> on 2005/05/26 10:50:18 UTC
Re: [jira] Commented: (MYFACES-133) Configured but inexistent Ren derer is not reported
But this is something different what you are doing - you are having a
component which has a renderer-type set, and an appropriate renderer
for this component can not be found.
The bug was about changing a renderer-class to an uninstantiable class.
regards,
Martin
On 5/26/05, Jesse Alexander (KBSA 21) <al...@credit-suisse.com> wrote:
> I tried it with 1.0.9 and got this in the TC-log:
> -----------------------------------------------------
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id4 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> StandardContext[/MyHelp]No Renderer found for component form1:_id4 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id4 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id4 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id7 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> StandardContext[/MyHelp]No Renderer found for component form1:_id7 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id7 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl getRenderer
> WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.renderer.MyHelpRenderer
> StandardContext[/MyHelp]No Renderer found for component form1:_id7 (component-family=ch.ajsw, renderer-type=ch.ajsw.renderer.MyHelpRenderer)
> /-----------------------------------------------------
> Looking at the code-snippet below, I would expect another message ...
>
> regards
> Alexander
>
> -----Original Message-----
> From: Martin Marinschek (JIRA) [mailto:myfaces-dev@incubator.apache.org]
> Sent: Thursday, May 26, 2005 8:52 AM
> To: dev@myfaces.apache.org
> Subject: [jira] Commented: (MYFACES-133) Configured but inexistent Renderer is not reported
>
> [ http://issues.apache.org/jira/browse/MYFACES-133?page=comments#action_66332 ]
>
> 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);
> continue;
> }
>
> I would suppose that the logging should be exactly what you refer to, I don't know why this would still not be logged?
>
> regards,
>
> Martin
>
> > Configured but inexistent Renderer is not reported
> > --------------------------------------------------
> >
> > Key: MYFACES-133
> > URL: http://issues.apache.org/jira/browse/MYFACES-133
> > Project: MyFaces
> > Type: Bug
> > Versions: 1.0.8 beta
> > Environment: Tomcat 5.0.28
> > Reporter: Alexander Jesse
> > Priority: Minor
> > Attachments: MinimalMyFaces.zip, MinimalRI.zip, TomcatConfig_Log.zip
> >
> > 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 error.
> > 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:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>