tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bwall...@apache.org
Subject svn commit: r405170 - in /tapestry/tapestry4/branches/branch-3-0: doc/src/ComponentReference/Shell.html framework/src/org/apache/tapestry/html/Shell.java framework/src/org/apache/tapestry/html/Shell.jwc
Date Mon, 08 May 2006 21:35:17 GMT
Author: bwallace
Date: Mon May  8 14:35:16 2006
New Revision: 405170

URL: http://svn.apache.org/viewcvs?rev=405170&view=rev
Log:
[TAPESTRY-268] Added raw attribute to allow generation of title from supplied text (not encoded)

Modified:
    tapestry/tapestry4/branches/branch-3-0/doc/src/ComponentReference/Shell.html
    tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.java
    tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.jwc

Modified: tapestry/tapestry4/branches/branch-3-0/doc/src/ComponentReference/Shell.html
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/branch-3-0/doc/src/ComponentReference/Shell.html?rev=405170&r1=405169&r2=405170&view=diff
==============================================================================
--- tapestry/tapestry4/branches/branch-3-0/doc/src/ComponentReference/Shell.html (original)
+++ tapestry/tapestry4/branches/branch-3-0/doc/src/ComponentReference/Shell.html Mon May 
8 14:35:16 2006
@@ -98,6 +98,17 @@
 		<td>&nbsp;</td>
 		<td>Used to provide the window title for the page.</td>
 	</tr>
+	
+  <tr>
+    <td>raw</td>
+    <td>boolean</td>
+    <td>in</td>
+    <td>no</td>
+    <td>false</td>
+    <td>If false (the default), then HTML characters in the title are escaped.  If
+  	true, then value is emitted exactly as is.</td>
+  </tr>
+  
   <tr>
     <td>stylesheet</td>
     <td><A href="../api/org/apache/tapestry/IAsset.html"><tt>IAsset</tt></A></td>

Modified: tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.java
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.java?rev=405170&r1=405169&r2=405170&view=diff
==============================================================================
--- tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.java
(original)
+++ tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.java
Mon May  8 14:35:16 2006
@@ -88,7 +88,11 @@
 
             writer.begin("title");
 
-            writer.print(getTitle());
+            if (getRaw()) {
+               writer.printRaw(getTitle());
+            } else {
+               writer.print(getTitle());
+            }
             writer.end(); // title
             writer.println();
 
@@ -205,4 +209,5 @@
 
     public abstract boolean getRenderContentType();
     
+    public abstract boolean getRaw();
 }

Modified: tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.jwc
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.jwc?rev=405170&r1=405169&r2=405170&view=diff
==============================================================================
--- tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.jwc
(original)
+++ tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/html/Shell.jwc
Mon May  8 14:35:16 2006
@@ -33,6 +33,17 @@
     </description>
   </parameter>
   
+  <parameter 
+  	name="raw" 
+  	type="boolean"
+  	direction="in"
+  	default-value="false">
+    <description>
+  	If false (the default), then HTML characters in the title are escaped.  If
+  	true, then value is emitted exactly as is.
+    </description>
+  </parameter>
+
   <parameter name="stylesheet" 
   	type="org.apache.tapestry.IAsset"
   	direction="in">



Mime
View raw message