2 Replies Latest reply on Dec 19, 2008 6:00 PM by Sverker Abrahamsson

    Problem with h:commandButton in portlet

    Sverker Abrahamsson Newbie

      I'm having a problem with Seam and JBoss Portlet Bridge on Liferay.

      I can't get h:commandButton (nor h:commandLink) to work. The form is not submitted, neither is the action called. s:link calls the action fine.

      I've traced the call to this point:

           at org.jboss.seam.navigation.Pages.callAction(Pages.java:711)
           at org.jboss.seam.navigation.Pages.preRender(Pages.java:349)

      In Pages.callAction s:link finds a request attribute with the action but that doesn't exsist for h:commandButton (and shouldn't be there as I understand the code). Instead it continues in Pages.preRender to find the action but fail to.

      The problem seam quite similar to https://jira.jboss.org/jira/browse/RF-2319 and https://jira.jboss.org/jira/browse/PBR-20.

      I can't tell if the cause of this problem is either in Liferay (5.1.2), JBoss Portlet Bridge (B4) or Seam (2.1.0.SP1), therefore I try to find out how the action method should be passed in the request to narrow it down. I don't have anything in pages.xml but that shouldn't be neccesary or?

      Anybody that can provide some insight on where to look? How should the action method be passed from the request to seam?