Forums de discussion

Problem with h:commandButton and JBoss PortletBridge / Seam

Sverker Abrahamsson, modifié il y a 15 années.

Problem with h:commandButton and JBoss PortletBridge / Seam

New Member Publications: 13 Date d'inscription: 03/04/08 Publications récentes
Hi, 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 portal pass the action method from the request to seam?
Sverker Abrahamsson, modifié il y a 15 années.

RE: Problem with h:commandButton and JBoss PortletBridge / Seam

New Member Publications: 13 Date d'inscription: 03/04/08 Publications récentes
I've found a solution, bug report and patch filed to http://issues.liferay.com/browse/LPS-1248