| Author |
Debugging JSF pages ... how to make it suck less ?
|
Alex Nedelcu
Greenhorn
Joined: Feb 06, 2006
Posts: 15
|
|
Although I like working with JSF, there is something really annonying ... the error messages are sooooo ugly. I would like something like the ASP.NET default error handler, where a nice message, with the error details, is displayed. Really, only a minor typing error and I get this ? .... org.apache.jasper.JasperException: javax.servlet.jsp.JspException: Error getting property 'namess' from bean of type beans.Form org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) servlets.Hello.processRequest(Hello.java:14) servlets.Hello.doGet(Hello.java:20) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) The case above is fortunate as you can figure out what happened, but I bumped into cases where I couldn't simply tell what's going on. Does anyone know of a solution to this ?
|
 |
Sergey Smirnov
Ranch Hand
Joined: May 29, 2003
Posts: 167
|
|
if you add the facelets library to your project, the exception might look like this one: https://facelets.dev.java.net/nonav/docs/dev/error.html -- Sergey : http://jsfTutorials.net
|
 |
Alex Nedelcu
Greenhorn
Joined: Feb 06, 2006
Posts: 15
|
|
That's nice, thanks. I've heard about Facelets. And by using it, I have to wonder ... how production ready is it ? Do you have experience with Facelets ? What kind of problems have you experienced with using it ?
|
 |
 |
|
|
subject: Debugging JSF pages ... how to make it suck less ?
|
|
|