【问题标题】:Liferay Portlet with ICEFaces: PortletContainerLiferayImpl:170 null带有 ICEFaces 的 Liferay Portlet:PortletContainerLiferayImpl:170 null
【发布时间】:2014-01-08 09:53:44
【问题描述】:

我有问题。我用icefaces 构建了一个liferay portlet。当我单击命令按钮时,我收到此错误:

09:29:49,472 ERROR [PortletContainerLiferayImpl:170] null
java.lang.NullPointerException

特别是在页面 index.xhtml 中有一个命令按钮:

<ice:commandButton value="go" action="#{beanTest.goTo}" />

如果你点击它,你应该通过导航规则转到 second.xhtml

<navigation-rule>
        <from-view-id>/index.xhtml</from-view-id>
        <navigation-case>
            <from-outcome>go</from-outcome>
            <to-view-id>/second.xhtml</to-view-id>
        </navigation-case>
    </navigation-rule>

问题是,如果你点击,你会进入一个空白页面(可能是 second.xhtml),你会得到上面的错误。

我希望有人可以帮助我!谢谢

【问题讨论】:

    标签: jsf null liferay portlet icefaces


    【解决方案1】:

    我已经解决了。 我遇到了兼容性问题,确实我使用的是 liferay 6.2 和 jsf2.1,但我使用的是 faces-bridge 3.1.x 而不是 faces-bridge 3.2.x。

    【讨论】:

      猜你喜欢
      • 2011-10-31
      • 2013-09-13
      • 2012-03-28
      • 1970-01-01
      • 2013-02-03
      • 2011-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多