Usa assimExemplo funcional:
public void setSelectedItem(ValueChangeEvent event) { FacesContext context = FacesContext.getCurrentInstance(); selectedItem = context.getApplication().evaluateExpressionGet(context, "#{usuario}", User.class); }
public void setSelectedItem(ValueChangeEvent event) {
FacesContext context = FacesContext.getCurrentInstance();
selectedItem = context.getApplication().evaluateExpressionGet(context, "#{usuario}", User.class);
}