You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Freedman (JIRA)" <de...@myfaces.apache.org> on 2011/02/14 22:51:57 UTC

[jira] Commented: (MYFACES-3042) CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java

    [ https://issues.apache.org/jira/browse/MYFACES-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994511#comment-12994511 ] 

Michael Freedman commented on MYFACES-3042:
-------------------------------------------

FYI ... when you make these changes it looks like you will also have to implement an ExternalContext (stub) to use in the test harness as one doesn't seem to exist at the moment -- and these new 2.0 methods through an exception (from the javax.faces.context impl) if not implemented.

> CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java
> ------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3042
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3042
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: Portlet_Support
>    Affects Versions: 2.0.5-SNAPSHOT
>            Reporter: Michael Freedman
>
> In FaceletViewDeclarationLanguage.java: createResponseWriter(), getResponseEncoding(), handleFaceletNotFound(), and sendSourceNotFound() each cast to Servlet object.  This causes ClassCastExceptions when run in a portlet environment.  Each of these calls/casts can be removed and ExternalContext APIs can be used instead to get/set the needed information from the request or response object.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira