Problem with redirection pages
Posted: 07 Jun 2011, 14:53
PrimeFaces Version: 3.0
Good morning everyone, I have a problem with primeFaces, lately I'm having several problems with it.
The problem exists to make redirection pages.
When pressing the back button is generated the following exception
Here my back button
Strange things of Prime:
If I remove the paging datatable, it works normal.
If I switch to version 2.2.1 works normal, but the FileUpload to function, he does not even appear in the browser.
I would keep the 3.0 version more able to resolve this problem.
Thanks
Good morning everyone, I have a problem with primeFaces, lately I'm having several problems with it.
The problem exists to make redirection pages.
When pressing the back button is generated the following exception
Code: Select all
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:422)
org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
root cause
java.lang.NullPointerException
org.primefaces.component.datatable.DataHelper.decodeFilters(DataHelper.java:182)
org.primefaces.component.datatable.DataTableRenderer.decode(DataTableRenderer.java:47)
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:787)
javax.faces.component.UIData.processDecodes(UIData.java:1162)
org.primefaces.component.datatable.DataTable.processDecodes(DataTable.java:595)
javax.faces.component.UIForm.processDecodes(UIForm.java:225)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:933)
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Code: Select all
<h:commandLink title="Voltar"
action="#{clienteMB.voltar}"
style="margin-left:20px">
<h:graphicImage url="/imagens/voltar.jpg"
style="border:0"/>
</h:commandLink>
-----------------------------------------------------------------------
public String voltar() {
return "menu.xhtml"
}
OR
public void voltar() {
HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
try {
response.sendRedirect("menu.xhtml");
} catch (IOException ex) {
JSFUtil.enviarMenssagemErro("Erro ao voltar");
}
}
Strange things of Prime:
If I remove the paging datatable, it works normal.
If I switch to version 2.2.1 works normal, but the FileUpload to function, he does not even appear in the browser.
I would keep the 3.0 version more able to resolve this problem.
Thanks