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 {
----------------
-------------------
}
<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
Post a Comment