You could. But then that wouldn't necessarily play nicely with JSR-301 unless you wanted to make your own custom portlet from scratch. :)

So in either case, I totally agree that filters cannot be relied upon for JSF.

Scott

Bernhard Huemer wrote:
Hello,

Many portals - at least those I know - dispatch calls to portlets by retrieving a RequestDispatcher and then they just call "include()". However, I've already heard quite a few times that Servlet Filters don't work in Liferay regardless of the dispatcher methods being configured (i.e. Liferay implements calls to portlets somehow else).

Nevertheless you could use a DispatcherPortlet as it enables you to specify "Handler Interceptors" (i.e something similiar to Portlet Filters).

regards,
Bernhard

On 02/04/2008 +0100,
"markus.g" <[EMAIL PROTECTED]> wrote:
Hi all,

currently we're prototyping a portlet application (liferay 4.33)  with
orchestra , JPA (Hibernate) and myFaces 1.1.5. In a pure servlet container
(tomcat 5.5)  everything works fine. In the portlet environment, the
conversation manager throws a NullPointerException.
Caused by: java.lang.NullPointerException
    at
org.apache.myfaces.orchestra.conversation.ConversationManager.getInstance(ConversationManager.java:90)
    at
org.apache.myfaces.orchestra.conversation.ConversationManager.getInstance(ConversationManager.java:76)
    at
org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope.getBean(AbstractSpringOrchestraScope.java:125)
    at
org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope.get(AbstractSpringOrchestraScope.java:117)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:285)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at
org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:33)
    at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.getTarget(Cglib2AopProxy.java:661)
    at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:611)
    at
de.seat.mitarbeiterinfo.view.mitarbeiterlist$$EnhancerByCGLIB$$4f90561b.getMitarbeiterListModel(<generated>)
    ... 125 more

Has anybody a solution for this problem?

Is it actually possible to run orchestra in a portlet environment?

thanks,
Markus




Reply via email to