Package com.sun.faces.config.beans

Examples of com.sun.faces.config.beans.ConverterBean


                                       digester.getMatch() +
                                       "} Push " + CLASS_NAME);
        }
        Class clazz =
            digester.getClassLoader().loadClass(CLASS_NAME);
        ConverterBean cb = (ConverterBean) clazz.newInstance();
        digester.push(cb);

    }


     * @exception IllegalStateException if the popped object is not
     *  of the correct type
     */
    public void end(String namespace, String name) throws Exception {

        ConverterBean top = null;
        try {
            top = (ConverterBean) digester.pop();
        } catch (Exception e) {
            throw new IllegalStateException("Popped object is not a " +
                                            CLASS_NAME + " instance");
        }
        FacesConfigBean fcb = (FacesConfigBean) digester.peek();
        ConverterBean old = null;
        if (top.getConverterId() != null) {
            old = fcb.getConverterById(top.getConverterId());
        } else {
            old = fcb.getConverterByClass(top.getConverterForClass().getName());
        }

        /*
         * Wrap these in braces to allow repetition of the ivar name
         */
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.BigDecimal");
            converter.setConverterClass("javax.faces.convert.BigDecimalConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.BigInteger");
            converter.setConverterClass("javax.faces.convert.BigIntegerConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Boolean");
            converter.setConverterClass("javax.faces.convert.BooleanConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Byte");
            converter.setConverterClass("javax.faces.convert.ByteConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Character");
            converter.setConverterClass("javax.faces.convert.CharacterConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.DateTime");
            converter.setConverterClass("javax.faces.convert.DateTimeConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Double");
            converter.setConverterClass("javax.faces.convert.DoubleConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Float");
            converter.setConverterClass("javax.faces.convert.FloatConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Integer");
            converter.setConverterClass("javax.faces.convert.IntegerConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Long");
            converter.setConverterClass("javax.faces.convert.LongConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Number");
            converter.setConverterClass("javax.faces.convert.NumberConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterId("javax.faces.Short");
            converter.setConverterClass("javax.faces.convert.ShortConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.math.BigDecimal.class);
            converter.setConverterClass("javax.faces.convert.BigDecimalConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.math.BigInteger.class);
            converter.setConverterClass("javax.faces.convert.BigIntegerConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Boolean.class);
            converter.setConverterClass("javax.faces.convert.BooleanConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Byte.class);
            converter.setConverterClass("javax.faces.convert.ByteConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Character.class);
            converter.setConverterClass("javax.faces.convert.CharacterConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Double.class);
            converter.setConverterClass("javax.faces.convert.DoubleConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Float.class);
            converter.setConverterClass("javax.faces.convert.FloatConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Integer.class);
            converter.setConverterClass("javax.faces.convert.IntegerConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Long.class);
            converter.setConverterClass("javax.faces.convert.LongConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Short.class);
            converter.setConverterClass("javax.faces.convert.ShortConverter");
            converters.add(converter);
        }
        {
            ConverterBean converter = new ConverterBean();
            converter.setConverterForClass(java.lang.Enum.class);
            converter.setConverterClass("javax.faces.convert.EnumConverter");
            converters.add(converter);
        }

        /*
         * Wrap these in braces to allow repetition of the ivar name

                                       digester.getMatch() +
                                       "} Push " + CLASS_NAME);
        }
        Class clazz =
            digester.getClassLoader().loadClass(CLASS_NAME);
        ConverterBean cb = (ConverterBean) clazz.newInstance();
        digester.push(cb);

    }

     * @exception IllegalStateException if the popped object is not
     *  of the correct type
     */
    public void end(String namespace, String name) throws Exception {

        ConverterBean top = null;
        try {
            top = (ConverterBean) digester.pop();
        } catch (Exception e) {
            throw new IllegalStateException("Popped object is not a " +
                                            CLASS_NAME + " instance");
        }
        FacesConfigBean fcb = (FacesConfigBean) digester.peek();
        ConverterBean old = null;
        if (top.getConverterId() != null) {
            old = fcb.getConverterById(top.getConverterId());
        } else {
            old = fcb.getConverterByClass(top.getConverterForClass().getName());
        }

TOP

Related Classes of com.sun.faces.config.beans.ConverterBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.