当前位置: 首页>>代码示例>>Java>>正文


Java ValueExpression.isReadOnly方法代码示例

本文整理汇总了Java中javax.el.ValueExpression.isReadOnly方法的典型用法代码示例。如果您正苦于以下问题:Java ValueExpression.isReadOnly方法的具体用法?Java ValueExpression.isReadOnly怎么用?Java ValueExpression.isReadOnly使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.el.ValueExpression的用法示例。


在下文中一共展示了ValueExpression.isReadOnly方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isReadOnly

import javax.el.ValueExpression; //导入方法依赖的package包/类
@Override
public boolean isReadOnly(EvaluationContext ctx) throws ELException {
    VariableMapper varMapper = ctx.getVariableMapper();
    if (varMapper != null) {
        ValueExpression expr = varMapper.resolveVariable(this.image);
        if (expr != null) {
            return expr.isReadOnly(ctx.getELContext());
        }
    }
    ctx.setPropertyResolved(false);
    boolean result = ctx.getELResolver().isReadOnly(ctx, null, this.image);
    if (!ctx.isPropertyResolved()) {
        throw new PropertyNotFoundException(MessageFactory.get(
                "error.resolver.unhandled.null", this.image));
    }
    return result;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:18,代码来源:AstIdentifier.java

示例2: isReadOnly

import javax.el.ValueExpression; //导入方法依赖的package包/类
@Override
public boolean isReadOnly(EvaluationContext ctx) throws ELException {
	VariableMapper varMapper = ctx.getVariableMapper();
	if (varMapper != null) {
		ValueExpression expr = varMapper.resolveVariable(this.image);
		if (expr != null) {
			return expr.isReadOnly(ctx.getELContext());
		}
	}
	ctx.setPropertyResolved(false);
	boolean result = ctx.getELResolver().isReadOnly(ctx, null, this.image);
	if (!ctx.isPropertyResolved()) {
		throw new PropertyNotFoundException(MessageFactory.get("error.resolver.unhandled.null", this.image));
	}
	return result;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:17,代码来源:AstIdentifier.java

示例3: getReadOnly

import javax.el.ValueExpression; //导入方法依赖的package包/类
/**
 * @todo This will need to be cached!!!
 */
protected boolean getReadOnly(
  FacesContext context,
  UIComponent  component,
  FacesBean    bean)
{
  Object o = bean.getProperty(_readOnlyKey);
  if (o == null)
    o = _readOnlyKey.getDefault();

  // If the component says it's read-only, it is.
  if (Boolean.TRUE.equals(o))
    return true;

  // Now, if the ValueExpression underlying the value says it's
  // read-only, then again, it is.
  ValueExpression ve = getValueExpression(component, bean);
  if ((ve != null) && ve.isReadOnly(context.getELContext()))
  {
    if (_LOG.isFiner())
    {
      _LOG.finer("Value expression {0} is read-only",
                 ve.getExpressionString());
    }

    return true;
  }

  return false;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:33,代码来源:EditableValueRenderer.java

示例4: isReadOnly

import javax.el.ValueExpression; //导入方法依赖的package包/类
public boolean isReadOnly(EvaluationContext ctx) throws ELException {
    VariableMapper varMapper = ctx.getVariableMapper();
    if (varMapper != null) {
        ValueExpression expr = varMapper.resolveVariable(this.image);
        if (expr != null) {
            return expr.isReadOnly(ctx.getELContext());
        }
    }
    ctx.setPropertyResolved(false);
    return ctx.getELResolver().isReadOnly(ctx, null, this.image);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AstIdentifier.java


注:本文中的javax.el.ValueExpression.isReadOnly方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。