You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rashmi (JIRA)" <de...@myfaces.apache.org> on 2008/05/15 14:37:55 UTC

[jira] Created: (TOMAHAWK-1253) buffering not supported in the portal environment.

buffering not supported in the portal environment.
--------------------------------------------------

                 Key: TOMAHAWK-1253
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1253
             Project: MyFaces Tomahawk
          Issue Type: Bug
            Reporter: Rashmi
         Attachments: error_log.txt



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-1253) buffering not supported in the portal environment.

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598564#action_12598564 ] 

Leonardo Uribe commented on TOMAHAWK-1253:
------------------------------------------


I have disabled some changes on faces-config.xml inside tomahawk to avoid some problems we are tackling right now (better documentation, some refactoring and enhancements like Simon Kitching suggested). For make this work in portlets you must have this on faces-config of your web app:

web.xml

  <context-param>
    <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
    <param-value>org.apache.myfaces.renderkit.html.util.NonBufferingAddResource</param-value>
  </context-param>

This avoid the error present on the log file, usually caused because DefaultAddResource (which is buffered and the default AddResource) is used.

faces-config.xml

    <lifecycle>
      <!-- This PhaseListener is only necessary if NonBufferingAddResource is used -->
      <phase-listener>org.apache.myfaces.webapp.filter.ServeResourcePhaseListener</phase-listener>
    </lifecycle>

    <factory>
      <faces-context-factory>org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory</faces-context-factory>
    </factory>


> buffering not supported in the portal environment.
> --------------------------------------------------
>
>                 Key: TOMAHAWK-1253
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1253
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.7-SNAPSHOT
>         Environment: MyFaces1.1.5,Tomahawk.1.1.7-Snapshot, Liferay4.3.3
>            Reporter: Rashmi
>            Priority: Blocker
>             Fix For: 1.1.7-SNAPSHOT
>
>         Attachments: error_log.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.