Setting edit mode - Perference

We can enable edit mode for a portlet by setting the init param in portlet.xml

<init-param>
     <name>edit-template</name>
     <value>/html/jsp/edit.jsp</value>
</init-param>

Create edit.jsp(name can be anything)  . Then you can see the following image in the setting.


When we click on the preference by default the following method executes.


public void doEdit(
RenderRequest renderRequest, RenderResponse renderResponse)
throws IOException, PortletException {
----------------
-------------------
}

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate