portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r592828 - in /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF: security/permissions/view.vm view/selectors/portlet-selector.vm view/site/sitemap.vm
Date Wed, 07 Nov 2007 17:55:25 GMT
Author: taylor
Date: Wed Nov  7 09:55:23 2007
New Revision: 592828

URL: http://svn.apache.org/viewvc?rev=592828&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-590
more html errors, patch from Mohan K

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/portlet-selector.vm
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm?rev=592828&r1=592827&r2=592828&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
Wed Nov  7 09:55:23 2007
@@ -192,7 +192,7 @@
     </table>
     </form>
   </div>
-
+ </div>
 </div>
 
 <script language="JavaScript" type="text/javascript">

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/portlet-selector.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/portlet-selector.vm?rev=592828&r1=592827&r2=592828&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/portlet-selector.vm
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/portlet-selector.vm
Wed Nov  7 09:55:23 2007
@@ -1,278 +1,278 @@
-#*
+#*
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*#
-
-#**
-
-@author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
-@version $Id: portlet-selector.vm 348264 2005-11-22 22:06:45Z taylor $
-
-*#
-
-<script language="JavaScript" type="text/javascript">
-    <!--
-    function select(value)
-    {
-        var openerForm = opener.document.forms['portletform'];
-        var openerEl = openerForm.elements['portlets'];
-        window.close();
-    }
-	function rowHover(row)
-	{
-		row.oldClassName = row.className;
-	    row.className = 'jetdbLight';
-	    row.onmouseout = function()
-	    {
-	        this.className = this.oldClassName;
-	    }
-	}    
-	function collectChecks(outform) 
-	{
-		var result = "";
-		var noncheckedresult = "";
-		var userform = document.forms['userform'];
-		for(var i = 0; i < userform.length; i++)
-		{
-		   var e = userform.elements[i];
-		   if (e.type == "checkbox")
-		   {
-		       if (e.checked == true)
-		       {
-		       	   result = result + "," + e.name;
-		       } else 
-		       {
-		       	   noncheckedresult = noncheckedresult + "," + e.name;
-		       }
-		   }
-		}
-		// adding the ones NOT on this particular form
-		result = userform.allTheCheckedString.value + result;
-		outform.checkedSet.value = result;
-		outform.unCheckedSet.value = noncheckedresult;
-	}
-	
-	
-	
-	function eliminateDuplicates(instr) 
-	{
-		var dicta = new Object;
-		var anarray = instr.split(",");
-		for(var i=0; i<anarray.length; i++)
-         {
-         	dicta[anarray[i]]= anarray[i];
-         }
-         var uniques = new Array;
-         for (var k in dicta) {
-   			uniques.push(dicta[k]);
-   		 }
-   		return uniques.join(",");
-	}
-	
-	function sendChecks(form)
-	{
-		var result = "";
-		for(var i = 0; i < form.length; i++)
-		{
-		   var e = form.elements[i];
-		   if (e.type == "checkbox")
-		   {
-		       if (e.checked == true)
-		       {
-		       	   result = result + "," + e.name;
-		       }
-		   }
-		}
-		
-		result = form.allTheCheckedString.value + result;
-	    result = eliminateDuplicates(result);
-        var openerForm = opener.document.forms['portletform'];
-        var openerEl = openerForm.elements['portlets'];
-        openerEl.value = result;
-        window.close();
-        openerForm.submit();		
-	}
-    //-->
-</script>
-
-<!-- search area -->
-  	<table><tr>
-		<form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-		<td>
-		<input type="text" name="searchString" size="40" value="$!searchString" class="portlet-form-field-label">
   
-		<table>
-			<tr>
-			    <td nowrap class="portlet-section-alternate" align="right">Keyword search:&nbsp;</td>
-			    <td class="portlet-section-alternate" align="left" >	
-			    		<input type="checkbox"  #if($filtered == "on") checked=1 #end name="filtered">&nbsp;&nbsp;&nbsp;
-				</td>
-				<td>
-			    <input type='hidden' name="checkedSet" value = '' /> 
-			    <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input type='hidden' name='db.browser.action' value='search'/>             
      
-			  	<input type='hidden' name='searchColumn' value='1'/>                      	
-			    <input class="jetdbButton" type="submit" value="Search">
-				</td>
-			</tr>
-		</table>
-	</form>
-    </td>
-		<td>		
-	  	
-          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-          	<input type='hidden' name='db.browser.action' value='refresh'/>
-            <input type='hidden' name="checkedSet" value = '' />                  
 
-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input  type="submit" name="eventSubmit_doRefresh" value="Reset Search" />
-            <!-- class="jetdbButton"  too narrow to use -->
-          </form>
-    
-	</td>
-	</tr>
-	</table>
-<hr/>
-<!-- navigation controls -->
-<table width="200" border="0" cellspacing="0" cellpadding="0" align="center">
-  <tr>
-    #if ($prev)
-      <td valign="middle" height="30">
-        <div align="center">
-          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-          	<input type='hidden' name='db.browser.action' value='first' />         
          
-            <input type='hidden' name="checkedSet" value = '' />                  
 
-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input class="jetdbButton" type="submit" value="<<">
-            <input type="hidden" name="start" value="0">
-          </form>
-        </div>
-      </td>  
-      <td valign="middle" height="30">
-        <div align="center">
-          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-          	<input type='hidden' name='db.browser.action' value='prev'/>           
        
-            <input type='hidden' name="checkedSet" value = '' />                  
 
-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input class="jetdbButton" type="submit" value="<">
-            <input type="hidden" name="start" value="$prev">
-          </form>
-        </div>
-      </td>
-    #end
-    #if ($tableSize > 0)
-      <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-      <td valign="middle" height="30">
-        <div align="center">
-          	<input type='hidden' name='db.browser.action' value='change'/>         
          
-            <input type='hidden' name="checkedSet" value = '' />                  
 
-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			<input type="input" name='start' size='5' value="$start" class="portlet-form-field-label">
-        </div>
-      </td>  
-      <td valign="middle" height="30">
-        <div align="center">
-            <input type="input" readonly size='10' value="of $tableSize" class="portlet-form-field-label">
           
-        </div>
-      </td>  
-      <td valign="middle" height="30">
-        <div align="center">
-            <input class="jetdbButton" type="submit" value="Go">            
-        </div>
-      </td>  
-
-      </form>
-
-      
-    #end    
-    #if ($next)
-      <td valign="middle">
-        <div align="center">
-          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-          	<input type='hidden' name='db.browser.action' value='next'/>          
-            <input type='hidden' name="checkedSet" value = '' />                  
 
-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input class="jetdbButton" type="submit" value=">">
-            <input type="hidden" name="start" value="$next">
-          </form>
-        </div>
-      </td>
-      <td valign="middle" height="30">
-        <div align="center">
-          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
-          	<input type='hidden' name='db.browser.action' value='last'/>
-          	<input type='hidden' name="checkedSet" value = '' />                   

-            <input type='hidden' name="unCheckedSet" value = '' /> 
-			    <input class="jetdbButton" type="submit" value=">>">
-            <input type="hidden" name="start" value="$tableSize">
-          </form>
-        </div>
-      </td>  
-    #end
-  </tr>
-</table>
-
-<hr/>
-
-<!-- the rows of portlets -->
-#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale))
-<form name='userform' onSubmit='sendChecks(this)'/>
-<input type='hidden' name='allTheCheckedString' value='$!selectedPortletsString' />
-<table cellpadding=0 cellspacing=1 border=0 width='100%' >
-  <tr>
-    #foreach ($column in $title)    
-      <td align='center' class="jetdbHeadNoLink" nowrap>
-        $column
-      </td>
-    #end
-      <th class="jetdbHeadNoLink" width="10"></th>        
-  </tr>
-
-  <!--  onmouseover="rowHover(this)" this mouseover used to be in use.. but it's only
for cells not UI decent.  -->
-  #foreach ( $portlet in $table )
-  <tr  >
-    #if ($velocityCount % 2 == 0)
-       #set($rowstyle = "jetdbEven")
-    #else
-       #set($rowstyle = "jetdbOdd")
-    #end   
-      <td class="$rowstyle" width="40%" >
-        <div align="left">$!portlet.DisplayName</div>
-      </td>
-      <td class="$rowstyle" width="55%" >
-        <div align="left">$!portlet.Description</div>
-      </td>      
-	  <td class="$rowstyle" width="10">
-  	    <input type="checkbox" name="box_$portlet.Name" 
-  	    #if( $selectedPortlets.contains($portlet.Name) )
-  	    		CHECKED
-  	    #end
-  	    />
-	  </td>    
-   </tr>
-  #end
-
-<tr>
-	<td colspan="3" align="center" >
-		<input type="submit" name="select.portlets" value="Select Portlets"   />
- 		<!-- class="jetdbButton"  too narrow to use-->
- 		<input type='hidden' name='searchColumn' value='1'/>
- 	</td>
-
- </tr>                      	
-</table>
- 
-</form>
-
-
-
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*#
+
+#**
+
+@author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+@version $Id: portlet-selector.vm 348264 2005-11-22 22:06:45Z taylor $
+
+*#
+
+<script language="JavaScript" type="text/javascript">
+    <!--
+    function select(value)
+    {
+        var openerForm = opener.document.forms['portletform'];
+        var openerEl = openerForm.elements['portlets'];
+        window.close();
+    }
+	function rowHover(row)
+	{
+		row.oldClassName = row.className;
+	    row.className = 'jetdbLight';
+	    row.onmouseout = function()
+	    {
+	        this.className = this.oldClassName;
+	    }
+	}    
+	function collectChecks(outform) 
+	{
+		var result = "";
+		var noncheckedresult = "";
+		var userform = document.forms['userform'];
+		for(var i = 0; i < userform.length; i++)
+		{
+		   var e = userform.elements[i];
+		   if (e.type == "checkbox")
+		   {
+		       if (e.checked == true)
+		       {
+		       	   result = result + "," + e.name;
+		       } else 
+		       {
+		       	   noncheckedresult = noncheckedresult + "," + e.name;
+		       }
+		   }
+		}
+		// adding the ones NOT on this particular form
+		result = userform.allTheCheckedString.value + result;
+		outform.checkedSet.value = result;
+		outform.unCheckedSet.value = noncheckedresult;
+	}
+	
+	
+	
+	function eliminateDuplicates(instr) 
+	{
+		var dicta = new Object;
+		var anarray = instr.split(",");
+		for(var i=0; i<anarray.length; i++)
+         {
+         	dicta[anarray[i]]= anarray[i];
+         }
+         var uniques = new Array;
+         for (var k in dicta) {
+   			uniques.push(dicta[k]);
+   		 }
+   		return uniques.join(",");
+	}
+	
+	function sendChecks(form)
+	{
+		var result = "";
+		for(var i = 0; i < form.length; i++)
+		{
+		   var e = form.elements[i];
+		   if (e.type == "checkbox")
+		   {
+		       if (e.checked == true)
+		       {
+		       	   result = result + "," + e.name;
+		       }
+		   }
+		}
+		
+		result = form.allTheCheckedString.value + result;
+	    result = eliminateDuplicates(result);
+        var openerForm = opener.document.forms['portletform'];
+        var openerEl = openerForm.elements['portlets'];
+        openerEl.value = result;
+        window.close();
+        openerForm.submit();		
+	}
+    //-->
+</script>
+
+<!-- search area -->
+  	<table><tr>
+        <td>
+		<form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+		<input type="text" name="searchString" size="40" value="$!searchString" class="portlet-form-field-label">
   
+		<table>
+			<tr>
+			    <td nowrap class="portlet-section-alternate" align="right">Keyword search:&nbsp;</td>
+			    <td class="portlet-section-alternate" align="left" >	
+			    		<input type="checkbox"  #if($filtered == "on") checked=1 #end name="filtered">&nbsp;&nbsp;&nbsp;
+				</td>
+				<td>
+			    <input type='hidden' name="checkedSet" value = '' /> 
+			    <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input type='hidden' name='db.browser.action' value='search'/>             
      
+			  	<input type='hidden' name='searchColumn' value='1'/>                      	
+			    <input class="jetdbButton" type="submit" value="Search">
+				</td>
+			</tr>
+		</table>
+	    </form>
+        </td>
+		<td>		
+	  	
+          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+          	<input type='hidden' name='db.browser.action' value='refresh'/>
+            <input type='hidden' name="checkedSet" value = '' />                  
 
+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input  type="submit" name="eventSubmit_doRefresh" value="Reset Search" />
+            <!-- class="jetdbButton"  too narrow to use -->
+          </form>
+    
+	</td>
+	</tr>
+	</table>
+<hr/>
+<!-- navigation controls -->
+<table width="200" border="0" cellspacing="0" cellpadding="0" align="center">
+  <tr>
+    #if ($prev)
+      <td valign="middle" height="30">
+        <div align="center">
+          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+          	<input type='hidden' name='db.browser.action' value='first' />         
          
+            <input type='hidden' name="checkedSet" value = '' />                  
 
+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input class="jetdbButton" type="submit" value="<<">
+            <input type="hidden" name="start" value="0">
+          </form>
+        </div>
+      </td>  
+      <td valign="middle" height="30">
+        <div align="center">
+          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+          	<input type='hidden' name='db.browser.action' value='prev'/>           
        
+            <input type='hidden' name="checkedSet" value = '' />                  
 
+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input class="jetdbButton" type="submit" value="<">
+            <input type="hidden" name="start" value="$prev">
+          </form>
+        </div>
+      </td>
+    #end
+    #if ($tableSize > 0)
+      <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+      <td valign="middle" height="30">
+        <div align="center">
+          	<input type='hidden' name='db.browser.action' value='change'/>         
          
+            <input type='hidden' name="checkedSet" value = '' />                  
 
+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			<input type="input" name='start' size='5' value="$start" class="portlet-form-field-label">
+        </div>
+      </td>  
+      <td valign="middle" height="30">
+        <div align="center">
+            <input type="input" readonly size='10' value="of $tableSize" class="portlet-form-field-label">
           
+        </div>
+      </td>  
+      <td valign="middle" height="30">
+        <div align="center">
+            <input class="jetdbButton" type="submit" value="Go">            
+        </div>
+      </td>  
+
+      </form>
+
+      
+    #end    
+    #if ($next)
+      <td valign="middle">
+        <div align="center">
+          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+          	<input type='hidden' name='db.browser.action' value='next'/>          
+            <input type='hidden' name="checkedSet" value = '' />                  
 
+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input class="jetdbButton" type="submit" value=">">
+            <input type="hidden" name="start" value="$next">
+          </form>
+        </div>
+      </td>
+      <td valign="middle" height="30">
+        <div align="center">
+          <form action="$renderResponse.createActionURL()" method="post" onSubmit='collectChecks(this);return
true;'>
+          	<input type='hidden' name='db.browser.action' value='last'/>
+          	<input type='hidden' name="checkedSet" value = '' />                   

+            <input type='hidden' name="unCheckedSet" value = '' /> 
+			    <input class="jetdbButton" type="submit" value=">>">
+            <input type="hidden" name="start" value="$tableSize">
+          </form>
+        </div>
+      </td>  
+    #end
+  </tr>
+</table>
+
+<hr/>
+
+<!-- the rows of portlets -->
+#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale))
+<form name='userform' onSubmit='sendChecks(this)'/>
+<input type='hidden' name='allTheCheckedString' value='$!selectedPortletsString' />
+<table cellpadding=0 cellspacing=1 border=0 width='100%' >
+  <tr>
+    #foreach ($column in $title)    
+      <td align='center' class="jetdbHeadNoLink" nowrap>
+        $column
+      </td>
+    #end
+      <th class="jetdbHeadNoLink" width="10"></th>        
+  </tr>
+
+  <!--  onmouseover="rowHover(this)" this mouseover used to be in use.. but it's only
for cells not UI decent.  -->
+  #foreach ( $portlet in $table )
+  <tr  >
+    #if ($velocityCount % 2 == 0)
+       #set($rowstyle = "jetdbEven")
+    #else
+       #set($rowstyle = "jetdbOdd")
+    #end   
+      <td class="$rowstyle" width="40%" >
+        <div align="left">$!portlet.DisplayName</div>
+      </td>
+      <td class="$rowstyle" width="55%" >
+        <div align="left">$!portlet.Description</div>
+      </td>      
+	  <td class="$rowstyle" width="10">
+  	    <input type="checkbox" name="box_$portlet.Name" 
+  	    #if( $selectedPortlets.contains($portlet.Name) )
+  	    		CHECKED
+  	    #end
+  	    />
+	  </td>    
+   </tr>
+  #end
+
+<tr>
+	<td colspan="3" align="center" >
+		<input type="submit" name="select.portlets" value="Select Portlets"   />
+ 		<!-- class="jetdbButton"  too narrow to use-->
+ 		<input type='hidden' name='searchColumn' value='1'/>
+ 	</td>
+
+ </tr>                      	
+</table>
+ 
+</form>
+
+
+

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm?rev=592828&r1=592827&r2=592828&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
Wed Nov  7 09:55:23 2007
@@ -1,50 +1,52 @@
-#*
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-*#
-#set($site = $request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext"))
-#set ($PropertiesValue = $portletConfig.getResourceBundle($renderRequest.Locale))
-#set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext"))
-#set($req = $rc.Request)
-#set($preferedLocale = "en")
-#set($navigationsStandardMenu = $site.getMenu("site-navigations"))
-
-<div id="contentsPageTitleContainer">
-<p class="contentsPageIntro"><b>$PropertiesValue.getString('IntroText')</b></p>
-
-<p style="margin-top: 25px"></p>
-</div><!-- Contents Main Container -->
-<div id="contentsMainContainer">
-
-#set($myVar =2)
-#set($childVar =1)
-#if(!$navigationsStandardMenu.empty)
-      <p class="mapaSiteTitle">1.  <a href="${req.ContextPath}/">HomePage</a></p>
-      <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
-    #foreach($element in $navigationsStandardMenu.elements.iterator())
-        <p class="mapaSiteTitle">$myVar.  <a href="${req.ContextPath}/portal$element.url">$element.Title</a></p>
-        <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
-        #if($element.elementType == "menu")
-            <ul class="mapaSiteListLevel1">
-            #set($childVar =1)
-               #foreach($childElement in $element.elements.iterator())
-                    <li>$myVar.$childVar <a href="${req.ContextPath}/portal$childElement.url">$childElement.Title</a></li>
-                    #set($childVar = $childVar+1)    
-               #end
-            </ul>
-         #end
-        #set($myVar = $myVar+1)
-    #end
-#end
+#*
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+*#
+#set($site = $request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext"))
+#set ($PropertiesValue = $portletConfig.getResourceBundle($renderRequest.Locale))
+#set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext"))
+#set($req = $rc.Request)
+#set($preferedLocale = "en")
+#set($navigationsStandardMenu = $site.getMenu("site-navigations"))
+
+<div id="contentsPageTitleContainer">
+<p class="contentsPageIntro"><b>$PropertiesValue.getString('IntroText')</b></p>
+
+<p style="margin-top: 25px"></p>
+</div><!-- Contents Main Container -->
+<div id="contentsMainContainer"> <!-- B: div id contentsMainContainer -->
+
+#set($myVar =2)
+#set($childVar =1)
+#if(!$navigationsStandardMenu.empty)
+      <p class="mapaSiteTitle">1.  <a href="${req.ContextPath}/">HomePage</a></p>
+      <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
+    #foreach($element in $navigationsStandardMenu.elements.iterator())
+        <p class="mapaSiteTitle">$myVar.  <a href="${req.ContextPath}/portal$element.url">$element.Title</a></p>
+        <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
+        #if($element.elementType == "menu")
+            <ul class="mapaSiteListLevel1">
+            #set($childVar =1)
+               #foreach($childElement in $element.elements.iterator())
+                    <li>$myVar.$childVar <a href="${req.ContextPath}/portal$childElement.url">$childElement.Title</a></li>
+                    #set($childVar = $childVar+1)    
+               #end
+            </ul>
+         #end
+        #set($myVar = $myVar+1)
+    #end
+#end
+
+</div> <!-- E: div id contentsMainContainer -->
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message