當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。