public void updatePaginationData(FacesContext context) { String componentClientId = getClientId(context); Map<String, String> params = context.getExternalContext().getRequestParameterMap(); ELContext elContext = context.getELContext(); String firstParam = params.get(componentClientId + "_first"); String rowsParam = params.get(componentClientId + "_rows"); setFirst(Integer.valueOf(firstParam)); setRows(Integer.valueOf(rowsParam)); ValueExpression firstVe = getValueExpression("first"); ValueExpression rowsVe = getValueExpression("rows"); if (firstVe != null && !firstVe.isReadOnly(elContext)) { firstVe.setValue(context.getELContext(), getFirst()); } if (rowsVe != null && !rowsVe.isReadOnly(elContext)) { rowsVe.setValue(context.getELContext(), getRows()); } }
public void updatePaginationData(FacesContext context, UIData data) { data.setRowIndex(-1); String componentClientId = data.getClientId(context); Map<String, String> params = context.getExternalContext().getRequestParameterMap(); ELContext elContext = context.getELContext(); String firstParam = params.get(componentClientId + "_first"); String rowsParam = params.get(componentClientId + "_rows"); if (!isRowsPerPageValid(data, rowsParam)) { throw new IllegalArgumentException("Unsupported rows per page value: " + rowsParam); } data.setFirst(Integer.valueOf(firstParam)); data.setRows(Integer.valueOf(rowsParam)); ValueExpression firstVe = data.getValueExpression("first"); ValueExpression rowsVe = data.getValueExpression("rows"); if (firstVe != null && !firstVe.isReadOnly(elContext)) { firstVe.setValue(context.getELContext(), data.getFirst()); } if (rowsVe != null && !rowsVe.isReadOnly(elContext)) { rowsVe.setValue(context.getELContext(), data.getRows()); } }
@Override public void processUpdates(FacesContext context) { if (!isSelfRequest(context)) { super.processUpdates(context); } FacesContext facesContext = getFacesContext(); ELContext eLContext = facesContext.getELContext(); ValueExpression collapsedVE = getValueExpression(PropertyKeys.collapsed.toString()); if (collapsedVE != null && !collapsedVE.isReadOnly(eLContext)) { collapsedVE.setValue(eLContext, isCollapsed()); getStateHelper().put(Panel.PropertyKeys.collapsed, null); } }
@Override public void processUpdates(FacesContext context) { if (!ComponentUtils.isRequestSource(this, context)) { super.processUpdates(context); } else { ValueExpression visibleVE = getValueExpression(PropertyKeys.visible.toString()); if (visibleVE != null) { FacesContext facesContext = getFacesContext(); ELContext eLContext = facesContext.getELContext(); if (!visibleVE.isReadOnly(eLContext)) { visibleVE.setValue(eLContext, isVisible()); getStateHelper().put(PropertyKeys.visible, null); } } } }
@Override public boolean isReadOnly(ELContext context) { return delegate.isReadOnly(context); }
@Override public boolean isReadOnly(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException { return expression.isReadOnly(context); }
@Override public boolean isReadOnly(ELContext arg0) throws NullPointerException, PropertyNotFoundException, ELException { return this.valueExpression.isReadOnly(arg0); }
@Override public boolean isReadOnly(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException { return getWrapped(context).isReadOnly(context); }
public boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException { if (context == null) { throw new NullPointerException("FacesContext -> null"); } boolean result = false; try { result = valueExpression.isReadOnly(context.getELContext()); } catch (ELException elex) { throw new EvaluationException(elex); } return result; }
public boolean isReadOnly(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException { try { return this.target.isReadOnly(context); } catch (PropertyNotFoundException e) { if (e instanceof JspPropertyNotFoundException) throw e; throw new JspPropertyNotFoundException(this.mark, e); } catch (ELException e) { if (e instanceof JspELException) throw e; throw new JspELException(this.mark, e); } }
public boolean isReadOnly(ELContext elContext) { FacesContext ctx = (FacesContext) elContext.getContext(FacesContext.class); boolean pushed = pushCompositeComponent(ctx); try { return originalVE.isReadOnly(elContext); } finally { if (pushed) { popCompositeComponent(ctx); } } }
@Override public boolean isReadOnly(ELContext elContext) { FacesContext ctx = (FacesContext) elContext.getContext(FacesContext.class); boolean pushed = pushCompositeComponent(ctx); try { return originalVE.isReadOnly(elContext); } finally { if (pushed) { popCompositeComponent(ctx); } } }
@Override public boolean isReadOnly(ELContext elContext) { FacesContext ctx = (FacesContext) elContext.getContext(FacesContext.class); boolean pushed = pushCompositeComponent(ctx); try { return originalVE.isReadOnly(elContext); } finally { if (pushed) { popCompositeComponent(ctx); } } }
@Override public boolean isReadOnly(FacesContext context) throws EvaluationException { try { return expression.isReadOnly(context.getELContext()); } catch (javax.el.PropertyNotFoundException e) { throw new PropertyNotFoundException(e); } catch (ELException e) { throw new EvaluationException(e); } }
public boolean isReadOnly(ELContext context) { try { return this.orig.isReadOnly(context); } catch (PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(this.attr + ": " + pnfe.getMessage(), pnfe); } catch (ELException e) { throw new ELException(this.attr + ": " + e.getMessage(), e); } }
@Override public boolean isReadOnly(ELContext context) { try { return wrapped.isReadOnly(context); } catch (PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(this.tagAttribute + ": " + pnfe.getMessage(), pnfe); } catch (ELException e) { throw new ELException(this.tagAttribute + ": " + e.getMessage(), e); } }
public boolean isReadOnly(ELContext context) { try { return this.orig.isReadOnly(context); } catch (PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(this.attr + ": " + pnfe.getMessage(), pnfe.getCause()); } catch (ELException e) { throw new ELException(this.attr + ": " + e.getMessage(), e.getCause()); } }
public boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException { ELContext ctx = ELAdaptor.getELContext(context); try { return this.delegate.isReadOnly(ctx); } catch (javax.el.PropertyNotFoundException e) { throw new PropertyNotFoundException(e.getMessage(), e.getCause()); } catch (ELException e) { throw new EvaluationException(e.getMessage(), e.getCause()); } }
public boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException { ELContext ctx = context.getELContext(); try { return this.delegate.isReadOnly(ctx); } catch (javax.el.PropertyNotFoundException e) { throw new PropertyNotFoundException(e.getMessage(), e.getCause()); } catch (ELException e) { throw new EvaluationException(e.getMessage(), e.getCause()); } }
@Override public boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException { ELContext ctx = context.getELContext(); try { return this.delegate.isReadOnly(ctx); } catch (javax.el.PropertyNotFoundException e) { throw new PropertyNotFoundException(e.getMessage(), e.getCause()); } catch (ELException e) { throw new EvaluationException(e.getMessage(), e.getCause()); } }