Codota Logo
EvaluationException.getMessage
Code IndexAdd Codota to your IDE (free)

How to use
getMessage
method
in
javax.faces.el.EvaluationException

Best Java code snippets using javax.faces.el.EvaluationException.getMessage (Showing top 20 results out of 315)

  • Common ways to obtain EvaluationException
private void myMethod () {
EvaluationException e =
  • Codota IconThrowable cause;new EvaluationException(cause)
  • Codota IconELException e;new EvaluationException(e.getMessage(), e.getCause())
  • Codota IconELException eLException;new EvaluationException(eLException.getCause())
  • Smart code suggestions by Codota
}
origin: javax.faces/com.springsource.javax.faces

public void validate(FacesContext context,
           UIComponent  component,
           Object       value) throws ValidatorException {
if (null == context || null == component) {
  throw new NullPointerException();
}
  try {
    methodBinding.invoke(context, new Object[] {context, component, 
            value});
  } 
catch (EvaluationException ee) {
  Throwable cause = this.getExpectedCause(ValidatorException.class,
            ee);
  if (cause instanceof ValidatorException) {
  throw ((ValidatorException) cause);
  }
  if (cause instanceof RuntimeException) {
  throw ((RuntimeException) cause);
  }
  throw new IllegalStateException(ee.getMessage());
  }


}
origin: javax.faces/com.springsource.javax.faces

/**
 * @throws NullPointerException {@inheritDoc}     
 * @throws AbortProcessingException {@inheritDoc}     
 */ 
public void processValueChange(ValueChangeEvent actionEvent) throws AbortProcessingException {
             if (actionEvent == null) {
    throw new NullPointerException();
  }
  try {
    FacesContext context = FacesContext.getCurrentInstance();
    methodBinding.invoke(context, new Object[] {actionEvent});
  } 
catch (EvaluationException ee) {
  Throwable cause = 
  this.getExpectedCause(AbortProcessingException.class, ee);
  if (cause instanceof AbortProcessingException) {
  throw  ((AbortProcessingException) cause);
  }
  if (cause instanceof RuntimeException) {
  throw ((RuntimeException) cause);
  }
  throw new IllegalStateException(ee.getMessage());
  }
}
origin: org.glassfish/jakarta.faces

@SuppressWarnings("deprecation")
private String getNavigationOutcome(FacesContext context, MethodBinding binding) {
  if (binding != null) {
    try {
      Object invokeResult;
      if ((invokeResult = binding.invoke(context, null)) != null) {
        return invokeResult.toString();
      } 
      // else, default to null, as returned at the end
    } catch (MethodNotFoundException e) {
      if (LOGGER.isLoggable(FINE)) {
        LOGGER.log(FINE, e.getMessage(), e);
      }
      throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e);
    }
    catch (EvaluationException e) {
      if (LOGGER.isLoggable(FINE)) {
        LOGGER.log(FINE, e.getMessage(), e);
      }
      throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e);
    }
  }
  
  return null;
}

origin: org.glassfish/javax.faces

@SuppressWarnings("deprecation")
private String getNavigationOutcome(FacesContext context, MethodBinding binding) {
  if (binding != null) {
    try {
      Object invokeResult;
      if ((invokeResult = binding.invoke(context, null)) != null) {
        return invokeResult.toString();
      } 
      // else, default to null, as returned at the end
    } catch (MethodNotFoundException e) {
      if (LOGGER.isLoggable(FINE)) {
        LOGGER.log(FINE, e.getMessage(), e);
      }
      throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e);
    }
    catch (EvaluationException e) {
      if (LOGGER.isLoggable(FINE)) {
        LOGGER.log(FINE, e.getMessage(), e);
      }
      throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e);
    }
  }
  
  return null;
}

origin: org.apache.myfaces.tobago/tobago-jsf-compat

private <T> T invoke(Invoker<T> invoker) {
 try {
  return invoker.invoke();
 } catch (javax.faces.el.MethodNotFoundException e) {
  throw new MethodNotFoundException(e.getMessage(), e);
 } catch (EvaluationException e) {
  throw new ELException(e.getMessage(), e);
 }
}
origin: org.apache.myfaces.core/myfaces-api

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces.core/myfaces-api

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.MethodNotFoundException e)
  {
    throw new MethodNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces.core/myfaces-impl

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.jboss.seam/jboss-seam-ui

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.MethodNotFoundException e)
  {
    throw new MethodNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.MethodNotFoundException e)
  {
    throw new MethodNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}
origin: com.sun.facelets/jsf-facelets

public boolean isReadOnly(ELContext context, Object base,
    Object property) {
  if (property == null) {
    return true;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return false; // what can I do?
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().isReadOnly(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().isReadOnly(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
origin: com.sun.faces/jsf-impl

public Class getType(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      Object obj = this.getVariableResolver().resolveVariable(
          faces, property.toString());
      return (obj != null) ? obj.getClass() : null;
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getType(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getType(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
origin: com.sun.faces/jsf-impl

public boolean isReadOnly(ELContext context, Object base,
    Object property) {
  if (property == null) {
    return true;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return false; // what can I do?
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().isReadOnly(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().isReadOnly(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
origin: org.glassfish/jakarta.faces

@Override
public boolean isReadOnly(ELContext context, Object base,
    Object property) {
  if (property == null) {
    return true;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return false; // what can I do?
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().isReadOnly(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().isReadOnly(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
origin: com.sun.faces/jsf-impl

public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
origin: com.sun.facelets/jsf-facelets

public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}
javax.faces.elEvaluationExceptiongetMessage

Popular methods of EvaluationException

  • <init>
    Construct a new exception with the specified root cause. The detail message will be set to (cause ==
  • getCause
  • toString

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getSharedPreferences (Context)
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ImageIO (javax.imageio)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now