You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bw...@apache.org on 2006/05/08 23:35:32 UTC
svn commit: r405172 - in /tapestry/tapestry4/branches/4.0/framework/src:
documentation/content/xdocs/tapestry/ComponentReference/Shell.xml
java/org/apache/tapestry/html/Shell.java
java/org/apache/tapestry/html/Shell.jwc
Author: bwallace
Date: Mon May 8 14:35:32 2006
New Revision: 405172
URL: http://svn.apache.org/viewcvs?rev=405172&view=rev
Log:
[TAPESTRY-268] Added raw attribute to allow generation of title from supplied text (not encoded)
Modified:
tapestry/tapestry4/branches/4.0/framework/src/documentation/content/xdocs/tapestry/ComponentReference/Shell.xml
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java
tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.jwc
Modified: tapestry/tapestry4/branches/4.0/framework/src/documentation/content/xdocs/tapestry/ComponentReference/Shell.xml
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/framework/src/documentation/content/xdocs/tapestry/ComponentReference/Shell.xml?rev=405172&r1=405171&r2=405172&view=diff
==============================================================================
--- tapestry/tapestry4/branches/4.0/framework/src/documentation/content/xdocs/tapestry/ComponentReference/Shell.xml (original)
+++ tapestry/tapestry4/branches/4.0/framework/src/documentation/content/xdocs/tapestry/ComponentReference/Shell.xml Mon May 8 14:35:32 2006
@@ -74,6 +74,16 @@
</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>&IAsset;</td>
<td>in</td>
Modified: tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java?rev=405172&r1=405171&r2=405172&view=diff
==============================================================================
--- tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java (original)
+++ tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java Mon May 8 14:35:32 2006
@@ -78,8 +78,12 @@
if (getRenderBaseTag())
getBaseTagWriter().render(writer, cycle);
- writer.begin("title");
+ if (getRaw()) {
+ writer.printRaw(getTitle());
+ } else {
+ writer.print(getTitle());
+ }
writer.print(getTitle());
writer.end(); // title
writer.println();
@@ -209,4 +213,9 @@
/** @since 4.0.1 */
public abstract boolean getRenderBaseTag();
+
+ /** @since 4.0.3 */
+
+ public abstract boolean getRaw();
+
}
Modified: tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.jwc
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.jwc?rev=405172&r1=405171&r2=405172&view=diff
==============================================================================
--- tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.jwc (original)
+++ tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.jwc Mon May 8 14:35:32 2006
@@ -32,6 +32,15 @@
</description>
</parameter>
+ <parameter
+ name="raw"
+ 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">
<description>
If specified, provides an external stylesheet for the page.