This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiAcion extends MVCPortlet { | |
public void editName(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException { | |
String name = ParamUtil.getString(actionRequest, "name"); | |
String message = ""; | |
if (name == null || name.isEmpty()) { | |
message = "Hello World"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> | |
<portlet:defineObjects /> | |
<portlet:actionURL var="editNameURL" name="editName"> | |
</portlet:actionURL> | |
<aui:form action="<%= editNameURL %>" method="post"> | |
<aui:input label="name" name="name" type="text" value="" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> | |
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<portlet:defineObjects /> | |
<% | |
String message = ParamUtil.getString(renderRequest, "message"); | |
%> | |
<%= message %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> | |
<portlet:defineObjects /> | |
<portlet:actionURL var="editURL"> | |
</portlet:actionURL> | |
<aui:form action="<%= editURL %>" method="post"> | |
<aui:input label="name" name="name" type="text" value="" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> | |
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<portlet:defineObjects /> | |
<% | |
String message = ParamUtil.getString(renderRequest, "message"); | |
%> | |
This is the <b>Second Portlet</b>; portlet in View mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.liferay.tutorial; | |
import java.io.IOException; | |
import javax.portlet.ActionRequest; | |
import javax.portlet.ActionResponse; | |
import javax.portlet.PortletException; | |
import com.liferay.portal.kernel.util.ParamUtil; | |
import com.liferay.util.bridges.mvc.MVCPortlet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> | |
<%@include file="/html/popup/init.jsp"%> | |
<portlet:renderURL var="iconURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> | |
<portlet:param name="mvcPath" value="/html/popup/detail.jsp"/> | |
<portlet:param name="parameter" value="Icon"/> | |
</portlet:renderURL> | |
<liferay-ui:icon iconCssClass="icon-edit" message="Icon" label="true" url="<%= iconURL.toString() %>" useDialog="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> | |
<%@include file="/html/popup/init.jsp"%> | |
<portlet:renderURL var="navItemURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> | |
<portlet:param name="mvcPath" value="/html/popup/detail.jsp"/> | |
<portlet:param name="parameter" value="Nav Item"/> | |
</portlet:renderURL> | |
<aui:nav-item label="Nav Item" title="Nav Item" useDialog="true" href="<%= navItemURL.toString() %>"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> | |
<%@include file="/html/popup/init.jsp"%> | |
<portlet:renderURL var="buttonURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> | |
<portlet:param name="mvcPath" value="/html/popup/detail.jsp"/> | |
<portlet:param name="parameter" value="Button"/> | |
</portlet:renderURL> | |
<aui:button value="Button" type="button" useDialog="true" href="<%= buttonURL.toString() %>"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> | |
<%@include file="/html/popup/init.jsp"%> | |
<portlet:renderURL var="buttonURL"> | |
<portlet:param name="mvcPath" value="/html/popup/detail.jsp"/> | |
<portlet:param name="parameter" value="Button"/> | |
</portlet:renderURL> | |
<aui:button value="Button" type="button" useDialog="true" href="<%= buttonURL.toString() %>"/> |