Results 1 to 2 of 2

Thread: Petportlet sample add Pet failing in Liferay 5.1.2

  1. #1
    Join Date
    Aug 2006
    Posts
    8

    Default 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. #2
    Join Date
    Aug 2006
    Posts
    8

    Default 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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •