Author: jaredmorgs
Date: 2013-03-22 00:30:58 -0400 (Fri, 22 Mar 2013)
New Revision: 9222
Added:
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default157.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default250.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default251.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default252.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default253.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default254.xml
Modified:
epp/docs/JPP/trunk/Development_Guide/en-US/Default_Portal_Configuration.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Internationalization_Configuration.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Javascript_Inter-application_Communication.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Navigation_Configuration.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Permission_Configuration.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Portlet_Development_Resources.xml
epp/docs/JPP/trunk/Development_Guide/en-US/RTL_Framework.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Skinning_The_Portal.xml
epp/docs/JPP/trunk/Development_Guide/en-US/XML_Resource_Bundles.xml
Log:
All code_sample code samples changes to extras now
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Default_Portal_Configuration.xml
===================================================================
(Binary files differ)
Modified:
epp/docs/JPP/trunk/Development_Guide/en-US/Internationalization_Configuration.xml
===================================================================
(Binary files differ)
Modified:
epp/docs/JPP/trunk/Development_Guide/en-US/Javascript_Inter-application_Communication.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Navigation_Configuration.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Permission_Configuration.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Portlet_Development_Resources.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/RTL_Framework.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Skinning_The_Portal.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/XML_Resource_Bundles.xml
===================================================================
(Binary files differ)
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default157.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default157.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default157.xml 2013-03-22 04:30:58
UTC (rev 9222)
@@ -0,0 +1,47 @@
+<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
+<portlet:defineObjects/>
+<div>
+ <p>
+ Received messages:
+ <div id="received_<portlet:namespace/>">
+
+ </div>
+ </p>
+
+ <p>
+ Send message:
+ <input type="text" id="msg_<portlet:namespace/>"/>
<a href="#"
onclick="send_<portlet:namespace/>();">send</a>
+ </p>
+</div>
+
+<script type="text/javascript">
+
+ Function.prototype.bind = function(object) {
+ var method = this;
+ return function() {
+ method.apply(object, arguments);
+ }
+ }
+
+ function send_<portlet:namespace/>() {
+ var msg = document.getElementById("msg_<portlet:namespace/>").value;
+ eXo.core.Topic.publish("<portlet:namespace/>", "/demo",
msg);
+ }
+
+ function Listener_<portlet:namespace/>(){
+
+ }
+
+ Listener_<portlet:namespace/>.prototype.receiveMsg = function(event) {
+ document.getElementById("received_<portlet:namespace/>").innerHTML =
+ document.getElementById("received_<portlet:namespace/>").innerHTML
+ "<br />* " +
+ event.senderId + ": " + event.message;
+ }
+
+ function init_<portlet:namespace/>() {
+ var listener_<portlet:namespace/> = new Listener_<portlet:namespace/>();
+ eXo.core.Topic.subscribe("/demo",
listener_<portlet:namespace/>.receiveMsg.bind(listener_<portlet:namespace/>));
+ }
+
+ init_<portlet:namespace/>();
+</script>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default250.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default250.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default250.xml 2013-03-22 04:30:58
UTC (rev 9222)
@@ -0,0 +1,2 @@
+<div class="portlet-section-header">Help mode</div>
+<div class="portlet-section-body">This is the help mode, a convenient
place to give the user some help information.</div>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default251.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default251.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default251.xml 2013-03-22 04:30:58
UTC (rev 9222)
@@ -0,0 +1,2 @@
+<div class="portlet-section-header">Edit mode</div>
+<div class="portlet-section-body">This is the edit mode, a convenient
place to let the user change his portlet preferences.</div>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default252.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default252.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default252.xml 2013-03-22 04:30:58
UTC (rev 9222)
@@ -0,0 +1,41 @@
+<!-- Comment #1 -->
+<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
+
+<div class="portlet-section-header">Welcome !</div>
+
+<br/>
+
+<div class="portlet-font">Welcome on the JSP Hello User portlet,
+my name is GateIn Portal. What's yours ?</div>
+
+<br/>
+
+<div class="portlet-font">Method 1: We simply pass the parameter to the
render phase:<br/>
+<!-- Comment #2 -->
+<a href="<portlet:renderURL><portlet:param name="yourname"
value="John Doe"/>
+ </portlet:renderURL>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 2: We pass the parameter to the render
phase, using valid XML:
+Please check the source code to see the difference with Method 1.
+<!-- Comment #3 -->
+<portlet:renderURL var="myRenderURL">
+ <portlet:param name="yourname" value='John Doe'/>
+</portlet:renderURL>
+<br/>
+<!-- Comment #4 -->
+<a href="<%= myRenderURL %>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 3: We use a form:<br/>
+<!-- Comment #5 -->
+<portlet:actionURL var="myActionURL"/>
+<!-- Comment #6 -->
+<form action="<%= myActionURL %>" method="POST">
+ <span class="portlet-form-field-label">Name:</span>
+ <input class="portlet-form-input-field" type="text"
name="yourname"/>
+ <input class="portlet-form-button" type="Submit"/>
+</form>
+</div>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default253.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default253.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default253.xml 2013-03-22 04:30:58
UTC (rev 9222)
@@ -0,0 +1,8 @@
+<faces-config>
+...
+ <application>
+
<view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>
+
<state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
+ </application>
+...
+</faces-config>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default254.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default254.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml