You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2014/07/19 08:31:02 UTC

svn commit: r916746 - in /websites/production/struts/content/development/2.x/docs: describing-a-bean-in-velocity.html html-form-buttons-howto.html

Author: lukaszlenart
Date: Sat Jul 19 06:31:01 2014
New Revision: 916746

Log:
Updates production

Modified:
    websites/production/struts/content/development/2.x/docs/describing-a-bean-in-velocity.html
    websites/production/struts/content/development/2.x/docs/html-form-buttons-howto.html

Modified: websites/production/struts/content/development/2.x/docs/describing-a-bean-in-velocity.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/describing-a-bean-in-velocity.html (original)
+++ websites/production/struts/content/development/2.x/docs/describing-a-bean-in-velocity.html Sat Jul 19 06:31:01 2014
@@ -38,7 +38,7 @@ under the License. 
     <link href='http://struts.apache.org/highlighter/style/shThemeStruts.css' rel='stylesheet' type='text/css' />
     <script src='http://struts.apache.org/highlighter/js/shCore.js' type='text/javascript'></script>
     <script src='http://struts.apache.org/highlighter/js/shBrushXml.js' type='text/javascript'></script>
-    <script src='http://struts.apache.org/highlighter/js/shBrushJava.js' type='text/javascript'></script>
+    <script src='http://struts.apache.org/highlighter/js/shBrushPlain.js' type='text/javascript'></script>
 
     <script type="text/javascript">
         SyntaxHighlighter.defaults['toolbar'] = false;
@@ -136,7 +136,7 @@ under the License. 
     <div class="pagecontent">
         <div class="wiki-content">
             <div id="ConfluenceContent"><p>The follow snippet might be useful during debugging to list the properties inside an<br clear="none"> arbitary bean. Or for handing to a UI developer that use unaware of the getters/setters inside an object.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[## prints out the property names for a bean
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[## prints out the property names for a bean
 #macro (describeBean $name) 
 #set($bu = $struts.bean(&quot;com.opensymphony.util.BeanUtils&quot;))
 	#foreach($propName in $bu.getPropertyNames($name))
@@ -145,14 +145,14 @@ under the License. 
 #end
 ]]></script>
 </div></div><p>i.e. assuming $obj is a PersonObject that has properties(firstName, lastName, and zip).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[#describeBean($obj)]]></script>
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[#describeBean($obj)]]></script>
 </div></div><p>would print</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;li&gt;firstName&lt;/li&gt;
 &lt;li&gt;lastName&lt;/li&gt;
 &lt;li&gt;zip&lt;/li&gt;
 ]]></script>
 </div></div><p>One might also expand upon this to build a dynamic interface with via reflection. e.g.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[$struts.evalute(&quot;$obj.${propName}&quot;)
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[$struts.evalute(&quot;$obj.${propName}&quot;)
 ]]></script>
 </div></div></div>
         </div>

Modified: websites/production/struts/content/development/2.x/docs/html-form-buttons-howto.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/html-form-buttons-howto.html (original)
+++ websites/production/struts/content/development/2.x/docs/html-form-buttons-howto.html Sat Jul 19 06:31:01 2014
@@ -206,7 +206,7 @@ under the License. 
   &lt;input type=&quot;submit&quot; name=&quot;updateCart&quot; value=&quot;Update the cart&quot;/&gt;
 &lt;/form&gt;
 ]]></script>
-</div></div><p>The two implementations can even be combined two provide a quick "delete this item" button and a set of checkboxes for "mass updates". All with the above code, cool eh?</p></div>
+</div></div><p>The two implementations can even be combined two provide a quick "delete this item" button and a set of checkboxes for "mass updates". All with the above code, cool eh?</p><p>&#160;</p></div>
         </div>