myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Buffer" by ArashRajaeeyan
Date Sat, 28 Oct 2006 12:11:10 GMT
Dear Wiki user,

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

The following page has been changed by ArashRajaeeyan:
http://wiki.apache.org/myfaces/Buffer

------------------------------------------------------------------------------
  || tag-class || org.apache.myfaces.custom.buffer.BufferTag ||
  
  == Usage ==
+ Obviously you can use buffer to reduce copy and paste reusability which is a very bad practice,
but another scenario of buffer is handling some lifecycle problems, for example if you want
to view a Data Scroller before your Data Table, You can't have dataScroller tag BEFORE the
table tag in your JSP files, as it can't find the not yet rendered table.
+ So, the solution is that you first render the table to a buffer, then you render the dataScroller,
and then you render the buffer's content.
+ That way, the dataScroller will appear before the table even though it was rendered after
it.
+ 
  
  == Syntax ==
  
@@ -24, +28 @@

  == Notes ==
  
  == Examples ==
- 
+ === Simple Buffer ===
  {{{
  <t:buffer into="#{buffer1}">
     <t:div><h:outputText value="Buffer One"/></t:div>
@@ -46, +50 @@

  Buffer Two
  }}}
  
+ === Data Scroller ===
+ 
  == FAQ ==
  
  == Known issues ==

Mime
View raw message