Você está na página 1de 1

public Date getUsrIdModDt() { return (Date)getAttributeInternal(USRIDMODDT); } public void setUsrIdMod(Integer value) { setAttributeInternal(USRIDMOD, value); } Date date = (Date)Date.

getCurrentDate(); setUsrIdModDt(date);

public String resolvEl(String data){ FacesContext fc = FacesContext.getCurrentInstance(); Application app = fc.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = fc.getELContext(); ValueExpression valueExp = elFactory.createValueExpression(elContext, data, Object.class); String Message=valueExp.getValue(elContext).toString(); return Message; }

public Object resolvElDC(String data) { FacesContext fc = FacesContext.getCurrentInstance(); Application app = fc.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = fc.getELContext(); ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{data." + data + " .dataProvider}", Object.class); return valueExp.getValue(elContext); }

Você também pode gostar