2 Replies Latest reply on Jul 17, 2007 11:41 AM by jgreene

    conflicting phase listeners??

    jgreene

      We're getting started on our first JSF application using Seam, so this may be a pretty basic question. The web.xml file for my project right now uses org.jboss.seam.jsf.SeamPhaseListener as the sole phase listener. However, I need to integrate an ESRI map service into the app, and the sample ESRI JSF MapViewer app I'm using as a guide uses its own phase listener. What does one do in a case like this when you want to integrate special functionality into your app, but there may be a phase listener conflict? Can there be multiple phase listeners under any circumstances? Thanks.

      - Joe

        • 1. Re: conflicting phase listeners??
          gavin.king

          Yes, JSF allows multiple phase listeners.

          • 2. Re: conflicting phase listeners??
            jgreene

            Thanks, Gavin. I've read, though, that using multiple phase listeners can cause problems like data becoming corrupted (whatever that means) and slower response since both phase listeners are executed. Are these things really an issue? Also, if I do include both phase listeners in my xml file (by the way, on my original post, I meant faces-config.xml, not web.xml), is there a preferred order? Is it true that all phase listeners will be executed? Is there a way to prevent this? What are the real problems with this, if any? Thanks.
            - Joe