visualweb.jsfsupport.components/library/src/com/sun/rave/faces/taglib/EncodingTag.java
author deva@netbeans.org
Mon, 07 Apr 2008 16:45:17 -0700
changeset 3026 c2525170412f
parent 1675 5c0aa60e87fa
child 2907 95779884e50d
permissions -rw-r--r--
Additional fix for #131899
1) EncodingComponentBeanInfo didn't have id descriptor because of which id was not generated for encoding component
2) Rendered and component type names were not correct in EncodingTag.java
3) Removed unnecessary code in JsfTagSupport.java
mzlamal@0
     1
/*
cnguyencasj@1675
     2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
cnguyencasj@758
     3
 *
cnguyencasj@1675
     4
 * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
cnguyencasj@758
     5
 *
cnguyencasj@1675
     6
 * The contents of this file are subject to the terms of either the GNU
cnguyencasj@1675
     7
 * General Public License Version 2 only ("GPL") or the Common
cnguyencasj@1675
     8
 * Development and Distribution License("CDDL") (collectively, the
cnguyencasj@1675
     9
 * "License"). You may not use this file except in compliance with the
cnguyencasj@1675
    10
 * License. You can obtain a copy of the License at
cnguyencasj@1675
    11
 * http://www.netbeans.org/cddl-gplv2.html
cnguyencasj@1675
    12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
cnguyencasj@1675
    13
 * specific language governing permissions and limitations under the
cnguyencasj@1675
    14
 * License.  When distributing the software, include this License Header
cnguyencasj@1675
    15
 * Notice in each file and include the License file at
cnguyencasj@1675
    16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
cnguyencasj@1675
    17
 * particular file as subject to the "Classpath" exception as provided
cnguyencasj@1675
    18
 * by Sun in the GPL Version 2 section of the License file that
cnguyencasj@1675
    19
 * accompanied this code. If applicable, add the following below the
cnguyencasj@1675
    20
 * License Header, with the fields enclosed by brackets [] replaced by
cnguyencasj@1675
    21
 * your own identifying information:
cnguyencasj@758
    22
 * "Portions Copyrighted [year] [name of copyright owner]"
cnguyencasj@758
    23
 *
cnguyencasj@1675
    24
 * Contributor(s):
cnguyencasj@1675
    25
 *
cnguyencasj@758
    26
 * The Original Software is NetBeans. The Initial Developer of the Original
cnguyencasj@758
    27
 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
cnguyencasj@758
    28
 * Microsystems, Inc. All Rights Reserved.
cnguyencasj@1675
    29
 *
cnguyencasj@1675
    30
 * If you wish your version of this file to be governed by only the CDDL
cnguyencasj@1675
    31
 * or only the GPL Version 2, indicate your decision by adding
cnguyencasj@1675
    32
 * "[Contributor] elects to include this software in this distribution
cnguyencasj@1675
    33
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
cnguyencasj@1675
    34
 * single choice of license, a recipient has the option to distribute
cnguyencasj@1675
    35
 * your version of this file under either the CDDL, the GPL Version 2 or
cnguyencasj@1675
    36
 * to extend the choice of license to its licensees as provided above.
cnguyencasj@1675
    37
 * However, if you add GPL Version 2 code and therefore, elected the GPL
cnguyencasj@1675
    38
 * Version 2 license, then the option applies only if the new code is
cnguyencasj@1675
    39
 * made subject to such option by the copyright holder.
mzlamal@0
    40
 */
mzlamal@0
    41
mzlamal@0
    42
package com.sun.rave.faces.taglib;
mzlamal@0
    43
mzlamal@0
    44
mzlamal@0
    45
/**
mzlamal@0
    46
 * <p>Tag for a component that dynamically sets the response character
mzlamal@0
    47
 * encoding, based on the current <code>Locale</code>.</p>
mzlamal@0
    48
 */
mzlamal@0
    49
mzlamal@0
    50
public class EncodingTag extends AbstractTag {
mzlamal@0
    51
mzlamal@0
    52
mzlamal@0
    53
    // ------------------------------------------------------ Instance Variables
mzlamal@0
    54
mzlamal@0
    55
mzlamal@0
    56
mzlamal@0
    57
    // ------------------------------------------------------- Custom Attributes
mzlamal@0
    58
mzlamal@0
    59
mzlamal@0
    60
mzlamal@0
    61
    // -------------------------------------------------- UIComponentTag Methods
mzlamal@0
    62
mzlamal@0
    63
mzlamal@0
    64
    /**
mzlamal@0
    65
     * <p>Return the component type required by this tag handler.</p>
mzlamal@0
    66
     */
mzlamal@0
    67
    public String getComponentType()
deva@2476
    68
    { return "com.sun.rave.faces.Encoding"; }                              //NOI18N
mzlamal@0
    69
mzlamal@0
    70
mzlamal@0
    71
mzlamal@0
    72
    /**
mzlamal@0
    73
     * <p>Return the renderer type required by this tag handler.</p>
mzlamal@0
    74
     */
mzlamal@0
    75
    public String getRendererType()
deva@2476
    76
    { return "com.sun.rave.faces.Encoding"; }                              //NOI18N
mzlamal@0
    77
mzlamal@0
    78
mzlamal@0
    79
    // ------------------------------------------------------- Protected Methods
mzlamal@0
    80
mzlamal@0
    81
mzlamal@0
    82
}