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 "ConvertBoolean" by simonSteiner
Date Wed, 15 Feb 2006 18:50:18 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 simonSteiner:
http://wiki.apache.org/myfaces/ConvertBoolean

------------------------------------------------------------------------------
  
  It is often necessary to display a Boolean (true/false) on a web page using custom Strings
to represent the true and false values.  For example, you might want to display "Yes" instead
of "true" and "No" instead of "false".
  
- This <t:convertBoolean> tag, which uses the BooleanConverter internally, can be used
to accomplish such formatting.  Its usage is analagous to the use of <f:convertDateTime>
to format a java.util.Date.
+ This <s:convertBoolean> tag, which uses the BooleanConverter internally, can be used
to accomplish such formatting.  Its usage is analagous to the use of <f:convertDateTime>
to format a java.util.Date.
  
  = Example =
  
  {{{
  <h:outputText value="#{backingBean.customer.enjoysJazz}">
-     <t:convertBoolean trueValue="Yes" falseValue="No"/>
+     <s:convertBoolean trueValue="Yes" falseValue="No"/>
  </h:outputText>
  }}}
  

Mime
View raw message