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)

0 附件
7983 查看
平均 (1 投票)
满分为 5,平均得分为 3.0。
评论