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

Reply via email to