myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yannick Le Teigner <yannick.leteig...@laposte.net>
Subject Re: Drilldown type app. without session bean?
Date Tue, 06 Dec 2005 23:08:06 GMT
Simon, Mike,

Thanks for the explanation.
I was able to make it work by using below code:

FacesContext ctx = FacesContext.getCurrentInstance();
ValueBinding binding = ctx.getApplication().createValueBinding("#{User}");
binding.setValue(ctx, new User(id));

Trying to put the User bean in the request map was apparently the wrong 
way of doing it:

ctx.getExternalContext().getRequestMap().put("#{User}", new User(id));


The myfaces example use another method with t:updateActionListener. I will stay safe for now,
and use above method. :)

Thanks!








Mime
View raw message