Auto-create ManagedBean problem
- by Debbech
I need to instanciate a ManagedBean manually in jsp code. I used the following code :
FacesContext context = FacesContext.getCurrentInstance();
ActorBean bean = (ActorBean) context.getApplication().createValueBinding("#{actorBean}").getValue(context);
response.getWriter().print(bean.getChaine());
but I still get a NullPointerException ! :(…