Board index JavaServer Faces General Problem with redirection pages

Problem with redirection pages

Components, Ajax Framework, Utilities and More.

Post 07 Jun 2011, 14:53

Posts: 56
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

    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. 


Here my back button

<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


Posts: 56
..
Last edited by Erickfm8 on 09 Jun 2011, 14:39, edited 1 time in total.


Posts: 56
Good day, any moderator please Pordea help me?


Posts: 56
?

tandraschko PrimeFaces Core Developer

Posts: 2251
Location: Bavaria, DE

You could create an issue
Always Bet On Prime (+ Extensions)!

PrimeFaces Extensions: https://github.com/primefaces-extensions
OpenWebBeans: http://openwebbeans.apache.org/
DeltaSpike: http://deltaspike.apache.org/
Personal Blog: http://tandraschko.blogspot.de/


Posts: 56
What?


Return to General