myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-216) Spurious cast to HtmlForm breaks non-HTML components
Date Fri, 24 Jun 2005 23:33:00 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-216?page=all ]

Bruno Aranda updated MYFACES-216:
---------------------------------

    Attachment: HtmlFormRendererBase.diff

This patch should resolve this issue. The cast to HtmlForm is unnecessary and a cast to UIForm
should suffice. 

Regards,

Bruno

> Spurious cast to HtmlForm breaks non-HTML components
> ----------------------------------------------------
>
>          Key: MYFACES-216
>          URL: http://issues.apache.org/jira/browse/MYFACES-216
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: JDK 1.5.0, Linux/x86, Tomcat 5.5.7 (NetBeans bundled), Jakarta taglibs
1.1.1
>     Reporter: Ihab A.B. Awad
>  Attachments: HtmlFormRendererBase.diff
>
> I deployed the Hans Bergsten JSF examples webapp (v1.0.2) using MyFaces. When I tried
to use the "View Created By The ClassViewHandler" example from Chapter 15, I got the following
exception --
> java.lang.ClassCastException: javax.faces.component.UIForm
> org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:85)
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:317)
> com.mycompany.jsf.pl.ClassViewHandler.renderResponse(ClassViewHandler.java:184)
> com.mycompany.jsf.pl.ClassViewHandler.renderResponse(ClassViewHandler.java:191)
> com.mycompany.jsf.pl.ClassViewHandler.renderView(ClassViewHandler.java:121)
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
> It seems that HtmlFormRendererBase is casting down to an HtmlForm; this breaks non-HTML
components created programmatically.
> I have verified that the code does *not* break under JSF RI 1.1.01.

-- 
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


Mime
View raw message