Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
License Agreement. Rich Faces - Natural Ajax for Java Server Faces (JSF) Copyright (C) 2007 Exadel, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
 package org.richfaces.component;
 
 import  javax.faces.component.StateHolder;
 import  javax.faces.context.FacesContext;
 import  javax.faces.el.EvaluationException;
 import  javax.faces.el.PropertyNotFoundException;
 import  javax.faces.el.ValueBinding;

Author(s):
Maksim Kaszynski
 
 @SuppressWarnings("deprecation")
 public class ValueBindingValueExpressionAdaptor extends ValueBinding implements StateHolder {
     private ValueExpression expression;
     private boolean tranzient;
 
 
         // TODO Auto-generated constructor stub
     }
 
     public ValueBindingValueExpressionAdaptor(ValueExpression expression) {
         super();
         this. = expression;
     }
 
     /*
      * (non-Javadoc)
      *
      * @see javax.faces.el.ValueBinding#getType(javax.faces.context.FacesContext)
      */
     @Override
     public Class<?> getType(FacesContext contextthrows EvaluationException {
         try {
             return .getType(context.getELContext());
         } catch (javax.el.PropertyNotFoundException e) {
             throw new PropertyNotFoundException(e);
         } catch (ELException e) {
             throw new EvaluationException(e);
         }
     }
 
     /*
      * (non-Javadoc)
      *
      * @see javax.faces.el.ValueBinding#getValue(javax.faces.context.FacesContext)
      */
     @Override
     public Object getValue(FacesContext contextthrows EvaluationException {
         try {
             return .getValue(context.getELContext());
         } catch (javax.el.PropertyNotFoundException e) {
             throw new PropertyNotFoundException(e);
         } catch (ELException e) {
             throw new EvaluationException(e);
         }
     }
 
     /*
      * (non-Javadoc)
      *
      * @see javax.faces.el.ValueBinding#isReadOnly(javax.faces.context.FacesContext)
      */
     @Override
     public boolean isReadOnly(FacesContext contextthrows EvaluationException {
         try {
             return .isReadOnly(context.getELContext());
         } catch (javax.el.PropertyNotFoundException e) {
             throw new PropertyNotFoundException(e);
         } catch (ELException e) {
             throw new EvaluationException(e);
         }
     }
 
     /*
      * (non-Javadoc)
      *
     * @see javax.faces.el.ValueBinding#setValue(javax.faces.context.FacesContext, java.lang.Object)
     */
    @Override
    public void setValue(FacesContext contextObject valuethrows EvaluationException {
        try {
            .setValue(context.getELContext(), value);
        } catch (javax.el.PropertyNotFoundException e) {
            throw new PropertyNotFoundException(e);
        } catch (ELException e) {
            throw new EvaluationException(e);
        }
    }
    public boolean isTransient() {
        return ;
    }
    public void restoreState(FacesContext contextObject state) {
         = (ValueExpressionstate;
    }
    public Object saveState(FacesContext context) {
        return ;
    }
    public void setTransient(boolean newTransientValue) {
         = newTransientValue;
    }
    public ValueExpression getExpression() {
        return ;
    }
    public void setExpression(ValueExpression expression) {
        this. = expression;
    }
New to GrepCode? Check out our FAQ X