-
1. Richface Datable Scope and NP exception
nbelaevski Mar 29, 2011 2:54 PM (in response to jobmathew)Hi,
No it isn't required to be session-scoped. Are you getting exceptions in component code or application code?
-
2. Re: Richface Datable Scope and NP exception
jobmathew Mar 29, 2011 3:01 PM (in response to nbelaevski)type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: #{TableBean.add}: javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: view.property.SystemProperty.. null
javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) -
3. Re: Richface Datable Scope and NP exception
nbelaevski Mar 29, 2011 3:03 PM (in response to jobmathew)But that's not NPE. Check SystemProperty applicartion class carefully.
-
4. Re: Richface Datable Scope and NP exception
jobmathew Mar 30, 2011 1:43 AM (in response to nbelaevski)type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: #{tableBean.delete}: java.lang.NullPointerException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) -
5. Re: Richface Datable Scope and NP exception
jobmathew Mar 30, 2011 3:45 AM (in response to nbelaevski)can you please tell me if not in session scope how can i remove and add new entries into the data table.
i know why am getting this issue
fetchCurrentRow(ActionEvent aEvent) {
setCurrentRow(_row);
_selectedRow = _table.get(getCurrentRow());
}
*/
public void delete(){
_table.remove(_selectedRow);
}
private field in these functions are throwing null value since the scope is request.
-
6. Richface Datable Scope and NP exception
ilya_shaikovsky Mar 30, 2011 3:57 AM (in response to jobmathew)please show all the relevant case code.
-
7. Re: Richface Datable Scope and NP exception
jobmathew Mar 30, 2011 7:03 AM (in response to ilya_shaikovsky)you want UI codes or Bean code ?? ?
-
8. Re: Richface Datable Scope and NP exception
ilya_shaikovsky Mar 31, 2011 4:47 AM (in response to jobmathew)both page and bean