Examples of ELContextWrapper


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

Examples of org.ajax4jsf.el.ELContextWrapper

    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

Examples of org.ajax4jsf.el.ELContextWrapper

    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

Examples of org.ajax4jsf.el.ELContextWrapper

      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

Examples of org.ajax4jsf.el.ELContextWrapper

    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

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

Examples of org.ajax4jsf.el.ELContextWrapper

      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

Examples of org.ajax4jsf.el.ELContextWrapper

    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
Copyright © 2018 www.massapi.com. 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.