Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by NickWestgate:
http://wiki.apache.org/tapestry/Tapestry5AnyComponent

The comment on the change is:
Changed to allow omission of element for shorter body replacement use.

------------------------------------------------------------------------------
  
  <!-- *NEW* demo body for preview; dynamic body at runtime -->
  <h3 t:type="Any" t:body="item.itemName" class="itemClass">Example Item</h3>
+ 
+ <!-- or if there are no informals like class-->
+ <t:any t:body="item.itemName">Example Item</t:any>
  
  <!-- using a mixin -->
  <div t:type="Any" t:mixins="myLayout">My layout</div>
@@ -89, +92 @@

       */
      void beginRender(MarkupWriter writer)
      {
-         writer.element(_element);
- 
          if (_id != null)
          {
              _clientId = _pageRenderSupport.allocateClientId(_id);
-             writer.attributes("id", _clientId);
          }
  
+         if (_element != null)
+         {
+             writer.element(_element);
+ 
+             if (_id != null)
+             {
+                 writer.attributes("id", _clientId);
+             }
+ 
-         _resources.renderInformalParameters(writer);
+             _resources.renderInformalParameters(writer);
+         }
      }
  
      boolean beforeRenderBody()

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to