Created
November 15, 2013 20:20
-
-
Save jamesfalkner/7490927 to your computer and use it in GitHub Desktop.
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
## Passing parameters | |
#set ($pns = $request.portlet-namespace) | |
#if ($request.lifecycle == "RENDER_PHASE") | |
<p><em>Demo 3: Resource phase concepts and simple parameter passing to WCM app</em></p> | |
<h4><a href="${request.resource-url}">1. See what WCM App's RESOURCE_PHASE emits</a></h4> | |
<img style="float:right;" src="http://www.liferay.com/osb-community-theme/images/custom/heading.png"> | |
<h4>2. Enter a parameter</h4> | |
<form action="${request.resource-url}" method="POST"> | |
<input type="text" title="Param 1" name="${pns}param1" width="25"/> | |
<input type="submit"/> | |
</form> | |
#elseif ($request.lifecycle == "RESOURCE_PHASE") | |
#if ($validator.isNull(${request.parameters.param1})) | |
THIS IS WHAT I EMIT WITH NO PARAMETERS | |
#else | |
HEY EVERYONE, LIFERAY COMMUNITY ROCKS!! OH, YOUR PARAM IS: | |
<h1>${request.parameters.param1}</h1> | |
#end | |
#end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment