Package com.sun.faces.facelets.el

Examples of com.sun.faces.facelets.el.TagValueExpression


                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here


                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

     */
    @Override
    public ValueExpression getValueExpression(FaceletContext ctx, Class type) {
        try {
            ExpressionFactory f = ctx.getExpressionFactory();
            return new TagValueExpression(this, f.createValueExpression(ctx,
                    this.value, type));
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

            // try to get the type from the 'type'-attribute and default to
            // Object.class, if no type-attribute was set.
            Class<?> type = Object.class;
            Object obj = target.getValue("type");
            if ((null != obj) && !(obj instanceof Class)) {
                TagValueExpression typeVE = (TagValueExpression) obj;
                Object value = typeVE.getValue(ctx);
                if (value instanceof Class<?>) {
                    type = (Class<?>) value;
                } else if (value != null) {
                    try {
                        type = Util.loadClass(String.valueOf(value), this);
View Full Code Here

                if (ELUtils.isCompositeComponentLookupWithArgs(expr)) {
                    String message =
                          MessageUtils.getExceptionMessageString(ARGUMENTS_NOT_LEGAL_CC_ATTRS_EXPR);
                    throw new TagAttributeException(this, message);
                }
                return new TagValueExpression(this,
                                              new ContextualCompositeValueExpression(getLocation(),
                                                                                delegate));
            } else {
                return new TagValueExpression(this, delegate);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this, e);
        }
    }
View Full Code Here

  final static String ATTRIBUTES = "^-?\\d.*$|idx|varAttr|com.sun.faces.facelets.APPLIED|javax.faces.retargetablehandlers";
 
  static Object getConfig(Component component, String name) {
    BeanInfo info = (BeanInfo) component.getAttributes().get(UIComponent.BEANINFO_KEY);
    if (info != null) {
      TagValueExpression ve = (TagValueExpression) info.getBeanDescriptor().getValue(name);
      if (ve != null) {
        return ve.getValue(FacesContext.getCurrentInstance().getELContext());
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.sun.faces.facelets.el.TagValueExpression

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.