4 Replies Latest reply on Mar 24, 2009 9:09 PM by sherkan777

    Handling a exception with a pages.xml

    gugabcosta

      Hi folks,



         I'm developing with seam and I wanna handling a exception with a pages.xml.


         I'm doing a seach form and when I put an id that doesn't have in a db it's throws a NoResultException.


         First, I put in a tag exception a log false to no log message appear in a log file. It's doesn't work.


         Second, I wanna when the pages.xml handling this exception put a param. I put a tag param but doesn't work



      <exception class="javax.persistence.NoResultException" log="false">
              <redirect >
                      <param name="fail" value="true"/>
                      <message>Registro não encontrado</message>
              </redirect>
          </exception>



      please, help me :)


      thanks