public String getVisibleOnUserRole() { if (_visibleOnUserRole != null) { return _visibleOnUserRole; } ValueBinding vb = getValueBinding("visibleOnUserRole"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public void restoreState(FacesContext context, Object state) { Object values[] = (Object[]) state; super.restoreState(context, values[0]); onSuccess = (String) values[1]; onFailure = (String) values[2]; onStart = (String) values[3]; errorStyleClass = (String) values[4]; errorStyle = (String) values[5]; }
command.setImmediate(true); command.setParent(li); MethodExpression m = a.getExpressionFactory().createMethodExpression(getFacesContext().getELContext(), TagUtils.makeELExpression(getPaginatorELExpression() + "." + methodForButton),Void.TYPE, new Class<?>[0]); command.setActionExpression(m); if (isValueBinding) { command.setValueExpression(JSFAttr.VALUE_ATTR, a.getExpressionFactory().createValueExpression( getFacesContext().getELContext(), TagUtils.makeELExpression(valueButton), String.class)); } else { command.setValue(valueButton); TagUtils.makeELExpression( getPaginatorELExpression() + "." + methodForListener ))); command.addActionListener(listener);
comp.setValueBinding("actionFor", vb); comp.getAttributes().put("actionFor", _actionFor); comp.setValueBinding("enabledOnUserRole", vb); comp.getAttributes().put("enabledOnUserRole", _enabledOnUserRole); comp.setValueBinding("visibleOnUserRole", vb); comp.getAttributes().put("visibleOnUserRole", _visibleOnUserRole); comp.getAttributes().put("forceId", Boolean.valueOf(_forceId)); comp.getAttributes().put("forceIdIndex", Boolean.valueOf(_forceIdIndex));
command.setImmediate(true); command.setParent(li); MethodExpression m = a.getExpressionFactory().createMethodExpression(getFacesContext().getELContext(), TagUtils.makeELExpression(getPaginatorELExpression() + "." + methodForButton),Void.TYPE, new Class<?>[0]); command.setActionExpression(m); if (isValueBinding) { command.setValueExpression(JSFAttr.VALUE_ATTR, a.getExpressionFactory().createValueExpression( getFacesContext().getELContext(), TagUtils.makeELExpression(valueButton), String.class)); } else { command.setValue(valueButton); TagUtils.makeELExpression( getPaginatorELExpression() + "." + methodForListener ))); command.addActionListener(listener);
public String getActionFor() { if (_actionFor != null) { return _actionFor; } ValueBinding vb = getValueBinding("actionFor"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public String getEnabledOnUserRole() { if (_enabledOnUserRole != null) { return _enabledOnUserRole; } ValueBinding vb = getValueBinding("enabledOnUserRole"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }