Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="utf-8"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
-->
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
              version="2.0">
              
    <namespace>http://myfaces.apache.org/commons/converters</namespace>



    <!-- Component Tags -->

   <!-- Converter tags -->
    <tag>
        <description><![CDATA[Converter that translates between boolean values (true/false)
and alternate versions of those boolean values like
(yes/no), (1/0), and (way/no way).
<p/>
To customize the representation of a boolean true and false,
use {@link #setTrueValue(String)}
and {@link #setFalseValue(String)}
respectively.  If  not configured with these setter methods,
it defaults to <code>true</code> and <code>false</code>.
<p/>
The values are case sensitive.
<p/>]]></description>
        <tag-name>convertBoolean</tag-name>
        <converter>
            <converter-id>org.apache.myfaces.custom.convertboolean.BooleanConverter</converter-id>
        </converter>
        <attribute>
           <description><![CDATA[Value representing a boolean false, e.g. FALSE, no, 0, etc.]]></description>
           <name>falseValue</name>
           <type>java.lang.String</type>
        </attribute>
        <attribute>
           <description><![CDATA[Value representing a boolean true, e.g. TRUE, yes, 1, etc.]]></description>
           <name>trueValue</name>
           <type>java.lang.String</type>
        </attribute>
    </tag>

   <!-- Validator tags -->

   <!-- Behavior tags -->
    
   <!-- Single Tags -->

    <!-- Facelet Tags -->
   <tag>
        <description><![CDATA[Simple convert that overrides the spec DateTimeConverter and uses TimeZone.getDefault() as the 
base timezone, rather than GMT.

Convert date time using normal system timezone like it should

User: treeder
Date: Oct 28, 2005
Time: 7:19:01 PM<p>Handles setting a Converter instance on a ValueHolder. Will wire all attributes set to the Converter instance
created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to. <p/> Will only
set/create Converter is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing
tree.</p>]]></description>

      <tag-name>convertDateTime</tag-name>
    <converter>
        <converter-id>org.apache.myfaces.custom.convertDateTime.DateTimeConverter</converter-id>
        <handler-class>org.apache.myfaces.commons.converter.ConvertDateTimeTagHandler</handler-class>
    </converter>
   </tag>
   <tag>
        <description><![CDATA[Converts a Java 5 Enum.

see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a><p>Handles setting a Converter instance on a ValueHolder. Will wire all attributes set to the Converter instance
created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to. <p/> Will only
set/create Converter is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing
tree.</p>]]></description>

      <tag-name>convertEnum</tag-name>
    <converter>
        <converter-id>org.apache.myfaces.commons.converter.Enum</converter-id>
        <handler-class>org.apache.myfaces.commons.converter.ConvertEnumTagHandler</handler-class>
    </converter>
   </tag>
   <tag>
        <description><![CDATA[Converter which uses either the manually set <code>destType</code> or the value binding to determine the 
correct destination type to convert the number to

This tag creates a number formatting converter and associates it with the nearest 
parent UIComponent. It uses either the manually set destType or the value 
binding to determine the correct destination type to convert the number to. 

Unless otherwise specified, all attributes accept static values or EL expressions.<p>Handles setting a Converter instance on a ValueHolder. Will wire all attributes set to the Converter instance
created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to. <p/> Will only
set/create Converter is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing
tree.</p>]]></description>

      <tag-name>convertNumber</tag-name>
    <converter>
        <converter-id>org.apache.myfaces.custom.convertNumber.TypedNumberConverter</converter-id>
        <handler-class>org.apache.myfaces.commons.converter.TypedNumberConverterTagHandler</handler-class>
    </converter>
   </tag>
</facelet-taglib>
New to GrepCode? Check out our FAQ X