getCurrentInstance « PrimeFaces « JSF Q&A





1. RequestContext.getCurrentInstance() gives null    forum.primefaces.org

I think that only if it started from an Ajax call you will get a value. The function in the bean was started from a listener? So, perhaps use an attribute ...

2. Sometime when i call RequestContext.getCurrentInstance() it    forum.primefaces.org

30 Mar 2011, 15:19 by maycon Sometime when i call RequestContext.getCurrentInstance() it --------------------------------------------------------------- FILE : [DataHelper.java] LINE : [187] METHOD : [decodeFilterRequest] CLASS : [org.primefaces.component.datatable.DataHelper] EXCEPT : [class java.lang.NullPointerException] --------------------------------------------------------------- Cause ...