Problem with redirection pages

Components, Ajax Framework, Utilities and More.
Post Reply
Erickfm8
Posts: 56
Joined: 22 Jun 2010, 14:25

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

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.  
Here my back button

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

Erickfm8
Posts: 56
Joined: 22 Jun 2010, 14:25

07 Jun 2011, 18:03

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

Erickfm8
Posts: 56
Joined: 22 Jun 2010, 14:25

08 Jun 2011, 16:29

Good day, any moderator please Pordea help me?

Erickfm8
Posts: 56
Joined: 22 Jun 2010, 14:25

09 Jun 2011, 14:40

?

tandraschko
PrimeFaces Core Developer
Posts: 3266
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

09 Jun 2011, 14:57

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

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/

Erickfm8
Posts: 56
Joined: 22 Jun 2010, 14:25

09 Jun 2011, 16:35

What?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], Bing [Bot] and 6 guests