Announcement Announcement Module
Collapse
No announcement yet.
Petportlet sample add Pet failing in Liferay 5.1.2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Petportlet sample add Pet failing in Liferay 5.1.2

    I have deployed the pet portlet sample application to Liferay 5.1.2 and everything was going great until I tried to add a Pet.

    Throughout the 'add pet' code is the following line

    Code:
    response.setRenderParameter("action", "list");
    The problem is that when this is run the portlet stays in 'Add Pet' mode.

    I debugged the application and it seems that the render request has two 'action' parameters, both 'add' and the new 'list'.

    Is this a Liferay problem or it there a better way to redirect to a different action than setting the 'action' parameter?

    Can anyone help?

    Cheers

  • #2
    Found the problem

    It seems that this is a Liferay problem.

    After a lot of hair pulling it seems that the problem is with the <render-weight> parameter in the liferay-portlet.xml deployment descriptor.

    If it is set to 0 then the rendering of the portlet breaks.

    Comment

    Working...
    X