Package org.ajax4jsf.el

Examples of org.ajax4jsf.el.ELContextWrapper


 
  public static Class<?> getContainerClass(FacesContext facesContext, ValueExpression expression) {
    ELContext initialELContext = facesContext.getELContext();

    CapturingELResolver capturingELResolver = new CapturingELResolver(initialELContext.getELResolver());
    Class<?> type = expression.getType(new ELContextWrapper(initialELContext, capturingELResolver));

    Class<?> containerType = type.getComponentType();
    if (containerType == null && type != null) {
      if (Collection.class.isAssignableFrom(type)) {
        Object base = capturingELResolver.getBase();
View Full Code Here


    String[] validationMessages = null;
    if (null != target) {
      ELContext elContext = context.getELContext();
      ValidationResolver validationResolver = createValidationResolver(
          elContext.getELResolver(), calculateLocale(context),profiles);
      ELContextWrapper wrappedElContext = new ELContextWrapper(elContext,
          validationResolver);
      // TODO - handle ELExceptions ?
      try {
        target.setValue(wrappedElContext, value);
      } catch (ELException e) {
View Full Code Here

    Collection<String> validationMessages = null;
    if (null != target) {
      ELContext elContext = context.getELContext();
      ValidationResolver validationResolver = createValidationResolver(
          context, elContext.getELResolver(),profiles);
      ELContextWrapper wrappedElContext = new ELContextWrapper(elContext,
          validationResolver);
      try {
        target.setValue(wrappedElContext, value);
      } catch (ELException e) {
        throw new FacesException(e);
View Full Code Here

      if (null !=value && value instanceof Cloneable) {
        try {
        ELContext initialELContext = context.getELContext();

        CapturingELResolver capturingELResolver = new CapturingELResolver(initialELContext.getELResolver());
        Class<?> type = valueExpression.getType(new ELContextWrapper(initialELContext, capturingELResolver));
        if(null != type) {
          validatorState = new GraphValidatorState();
          Method method = getCloneMethod(value.getClass());
          if(!Modifier.isPublic(method.getModifiers())){
            // Method Object#clone() is protected by default. Make it public
View Full Code Here

    String[] validationMessages = null;
    if (null != target) {
      ELContext elContext = context.getELContext();
      ValidationResolver validationResolver = createValidationResolver(
          elContext.getELResolver(), calculateLocale(context));
      ELContextWrapper wrappedElContext = new ELContextWrapper(elContext,
          validationResolver);
      // TODO - handle ELExceptions ?
      try {
        target.setValue(wrappedElContext, value);
      } catch (ELException e) {
View Full Code Here

 
  public static Class<?> getContainerClass(FacesContext facesContext, ValueExpression expression) {
    ELContext initialELContext = facesContext.getELContext();

    CapturingELResolver capturingELResolver = new CapturingELResolver(initialELContext.getELResolver());
    Class<?> type = expression.getType(new ELContextWrapper(initialELContext, capturingELResolver));

    Class<?> containerType = type.getComponentType();
    if (containerType == null && type != null) {
      if (Collection.class.isAssignableFrom(type)) {
        Object base = capturingELResolver.getBase();
View Full Code Here

      if (null !=value && value instanceof Cloneable) {
        try {
        ELContext initialELContext = context.getELContext();

        CapturingELResolver capturingELResolver = new CapturingELResolver(initialELContext.getELResolver());
        Class<?> type = valueExpression.getType(new ELContextWrapper(initialELContext, capturingELResolver));
        if(null != type) {
          validatorState = new GraphValidatorState();
          Method method = value.getClass().getDeclaredMethod("clone");
          method.setAccessible(true);
          validatorState.cloned = method.invoke(value);
View Full Code Here

    String[] validationMessages = null;
    if (null != target) {
      ELContext elContext = context.getELContext();
      ValidationResolver validationResolver = createValidationResolver(
          context, elContext.getELResolver(),profiles);
      ELContextWrapper wrappedElContext = new ELContextWrapper(elContext,
          validationResolver);
      // TODO - handle ELExceptions ?
      try {
        target.setValue(wrappedElContext, value);
      } catch (ELException e) {
View Full Code Here

TOP

Related Classes of org.ajax4jsf.el.ELContextWrapper

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.