Author: lukaszlenart
Date: Sat Jul 19 06:30:32 2014
New Revision: 916745
Log:
Updates production
Modified:
websites/production/struts/content/release/2.3.x/docs/describing-a-bean-in-velocity.html
websites/production/struts/content/release/2.3.x/docs/html-form-buttons-howto.html
Modified:
websites/production/struts/content/release/2.3.x/docs/describing-a-bean-in-velocity.html
==============================================================================
---
websites/production/struts/content/release/2.3.x/docs/describing-a-bean-in-velocity.html
(original)
+++
websites/production/struts/content/release/2.3.x/docs/describing-a-bean-in-velocity.html
Sat Jul 19 06:30:32 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("com.opensymphony.util.BeanUtils"))
#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[<li>firstName</li>
<li>lastName</li>
<li>zip</li>
]]></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("$obj.${propName}")
+<script class="theme: Default; brush: text; gutter: false"
type="syntaxhighlighter"><![CDATA[$struts.evalute("$obj.${propName}")
]]></script>
</div></div></div>
</div>
Modified:
websites/production/struts/content/release/2.3.x/docs/html-form-buttons-howto.html
==============================================================================
---
websites/production/struts/content/release/2.3.x/docs/html-form-buttons-howto.html
(original)
+++
websites/production/struts/content/release/2.3.x/docs/html-form-buttons-howto.html
Sat Jul 19 06:30:32 2014
@@ -206,7 +206,7 @@ under the License.
<input type="submit" name="updateCart"
value="Update the cart"/>
</form>
]]></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> </p></div>
</div>