Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2163

When an exception in a converter is thrown, it in not properly handled by <exception...> in pages.xml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR2
    • Fix Version/s: 2.0.1.CR1
    • Component/s: None
    • Labels:
      None

      Description

      Suppose we have an page parameter, which uses a converter:
      <page view-id="/test.xhtml">
      <param name="param1" value="#

      {testBean.param1}

      " converterId="conv1" />
      </page>

      and that during conversion an exception is thrown. It is declared as handled in pages.xml:
      <exception class="org.jboss.seam.test3.ConverterTestException">
      <redirect view-id="/error.xhtml">
      <message>Error: converter</message>
      </redirect>
      </exception>

      But the message "Error: converter" is not shown by <h:messages> on error.xhtml.

      Attached is a testcase for this, both with sources and binaries.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  adamw Adam Warski
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: