Messages posted by jessicasant
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: jessicasant  XML
Profile for jessicasant -> Messages posted by jessicasant [4]
Author Message
what code are you using to include the dataTable in your page?
try posting your question in the JBoss Seam forum.

http://www.jboss.com/index.html?module=bb&op=viewforum&f=231

Be sure to include your configuration files to show how you've configured Seam as well as how you're trying to set the messages in your code, and how you're trying to display the messages in your JSF page
There's no easy solution using pure JSF that I know of. However, using JBoss Seam you can handle the situation:

From JBoss Seam 1.1GA docs

It is quite common to display a message to the user indicating success or failure of an action. It is convenient to use a JSF FacesMessage for this. Unfortunately, a successful action often requires a browser redirect, and JSF does not propagate faces messages across redirects. This makes it quite difficult to display success messages in plain JSF.

The built in conversation-scoped Seam component named facesMessages solves this problem. (You must have the Seam redirect filter installed.)
 
When I try to integrate ICEfaces with my Seam + SunRI application I get the NullPointerException listed below.

The problem can be reproduced using the "icefaces" example bundled witih SEAM 1.1.GA. Reproduction steps are detailed here on the JBoss Seam forum.

This thread mentions that 1.5.2 will address a bunch of Seam integration issues. Any chance this one is included?

Thanks.

- Jess

Jessica Sant
JBoss Operations Network

Code:
 10:41:31,890 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener isJspTwoOne
 WARNING: Incorrect JSP version found, method getJspApplicationContext does not exist.
 10:41:31,906 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener contextInitialized
 INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context 'null'
 10:41:31,921 INFO  [ResponseStateManager] using response state manager: com.icesoft.faces.webapp.xmlhttp.ResponseStateManager
 10:41:32,000 INFO  [EARDeployer] Started J2EE application: file:/F:/jboss-4.0.5.GA-ejb3/server/default/deploy/jboss-seam-icefaces.ear
 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
 INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
 10:41:37,531 INFO  [Events] no events.xml file found
 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.LifecycleImpl phase
 WARNING: executePhase(RESTORE_VIEW 1,com.icesoft.faces.context.BridgeFacesContext@1155013) threw exception
 java.lang.NullPointerException
         at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
         at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ....
 10:41:37,546 ERROR [PersistentFacesServlet] Exception executing lifecycle or setting up persistent context. java.lang.NullPointerException
 javax.faces.FacesException: java.lang.NullPointerException
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ...
 10:41:37,562 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
 javax.servlet.ServletException: java.lang.NullPointerException
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:437)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 10:41:37,562 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
 javax.faces.FacesException: java.lang.NullPointerException
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ...
 Caused by: java.lang.NullPointerException
         at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
         at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         ... 25 more
 
 
Profile for jessicasant -> Messages posted by jessicasant [4]
Go to:   
Powered by JForum 2.1.7ice © JForum Team