Init Parameters

In portlet.xml, there is the possibility of defining init parameters. For example view-jsp and edit-jsp.

The question remained, for me at least, what are the other init parameters that are already available in Liferay.

Here is the list (from com.liferay.util.bridges.mvc.MVCPortlet.init() ):

  • jsp-path
  • about-jsp
  • config-jsp
  • edit-jsp
  • edit-defaults-jsp
  • edit-guest-jsp
  • help-jsp
  • preview-jsp
  • print-jsp
  • view-jsp
  • clear-request-parameters
  • copy-request-parameters : Used to copy the request parameter from the request to the response. Useful in cases where you do validation on a form and wish to repopulate the form with the input value in case of errors. Default : false.
  • add-process-action-success-action : set to false will disables Liferay status messages.

Of course any other init parameters that you need could be defined and access in your portlet thru the method getInitParameter(String)

Moyenne (1 Voter)
L'estimation moyenne est de 3.0 étoiles sur 5.
Commentaires