Forums Register Login

Debugging JSF pages ... how to make it suck less ?

+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ?
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1106 times.
Similar Threads
OutOfMemoryError
The absolute uri problem
Newbie in JSF Question
Hibernate: Error getting property 'lastItem'
Error in deploying sample application
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:27:15.