XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • 1.1.3, 1.0.27
    • Affects Version/s: 1.1.2, 1.0.26
    • None

      ・m:immediate="true"時のAction
      ・中で例外が発生してErrorPageManagerImplでハンドリング
      ・遷移元ページにForEachがある
      という状況でNullPointerExceptionが発生する問題。

      errorpage/pageTran1.htmlを、こんな風にする。

      <html xmlns:m="http://www.seasar.org/maya"
      m:extends="/WEB-INF/layout/layout.html">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=Windows-31j" />
      <title>The page transition with exception</title>
      </head>
      <body>

      <span m:inject="f:param" m:name="layoutTitle" m:value="The page transition with exception"/>
      <span m:inject="s:insert" m:name="body">

      <form>
      <table border="1">
      <tr bgcolor="#7777FF">
      <th>Key</th>
      <th>Name</th>
      <th colspan="2">to ResultPage</th>
      </tr>
      <span m:inject="s:forEach" m:items="#

      {forEachDtoList}

      "
      m:var="e" m:varIndex="i">
      <tr>
      <td><span m:value="#

      {e.key}

      ">111</span></td>
      <td><span m:value="#

      {e.name}

      ">aaa</span></td>
      <td><a href="forEachResult.html" m:action="forEachResult">to ResultPage
      <span m:inject="f:param" m:name="index" m:value="#

      {i}"/>
      </a>
      </td>
      <td>
      <input type="button" m:action="forEachResult" value="to ResultPage"
      onclick="location.href='forEachResult.html'">
      <span m:inject="f:param" m:name="index" m:value="#{i}

      "/>
      </input>
      </td>
      </tr>
      </span>
      </table>
      <input type="button" m:immediate="true" value="The exception due to action" m:action="#

      {page1Action.throwException}

      "/>
      <input type="button" value="The exception due to initialize action" m:action="pageTran2" onclick="location.href='pageTran2.html'" m:immediate="true"/>
      </form>
      </span>
      </body>
      </html>

      で、左側のボタンを押すと、NullPointerExceptionが発生する。

            Assignee:
            cero-t
            Reporter:
            cero-t
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: