ICEfaces
  1. ICEfaces
  2. ICE-2341

Can't use <f:param> in portlets

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.7DR#2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Liferay 4.3.3 / Tomcat 6.0.13
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Well, there is a workaround in the sense that you can use an <ice:commandButton value="..."/> instead, but <f:param> can be used in other ways too. Not sure if it is broken in those other ways. The attached portlet shows the workaround too (commented out in Table.xhtml and Table.java).
      Show
      Well, there is a workaround in the sense that you can use an <ice:commandButton value="..."/> instead, but <f:param> can be used in other ways too. Not sure if it is broken in those other ways. The attached portlet shows the workaround too (commented out in Table.xhtml and Table.java).

      Description

      When I try to specify an <f:param> inside an <ice:commandLink> in a Facelets portlet I get a NullPointerException:

      (I don't know if Facelets has anything to do with it -- it could just be a portlet thing)

      20:32:26,125 ERROR [jsp:52] java.lang.NullPointerException
              at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.renderRequiredCommandLinkHiddenFields(FormRenderer.java:278)
              at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.renderCommandLinkHiddenFields(FormRenderer.java:246)
              at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeEnd(FormRenderer.java:217)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
              at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:590)
              at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585)
              at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:320)
              at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:152)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
              at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:27)
              at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147)
              at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
              at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:33)
              at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:56)
              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
              at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
              at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)

        Activity

        Hide
        Neil Griffin added a comment -

        Drop the attached portlet .WAR file into your $HOME/liferay/deploy folder. It will show up on the "Add Content" menu under the "Samples" category as "ICE Table"

        Show
        Neil Griffin added a comment - Drop the attached portlet .WAR file into your $HOME/liferay/deploy folder. It will show up on the "Add Content" menu under the "Samples" category as "ICE Table"
        Hide
        Mark Collette added a comment -

        Is this still an issue with ICEfaces 3.2?

        Show
        Mark Collette added a comment - Is this still an issue with ICEfaces 3.2?
        Hide
        Neil Griffin added a comment -

        I just tried it and it seems to work. I think that when I originally filed this issue, I forgot to put the "name" attribute on f:param. I think this issue can be closed.

        Show
        Neil Griffin added a comment - I just tried it and it seems to work. I think that when I originally filed this issue, I forgot to put the "name" attribute on f:param. I think this issue can be closed.
        Hide
        Mark Collette added a comment -

        Thank you Neil.

        Show
        Mark Collette added a comment - Thank you Neil.

          People

          • Assignee:
            Unassigned
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: