Uploaded image for project: 'S2JSF'
  1. S2JSF
  2. JSF-65

m:passthroughのinputタグのIDが書き換えられてしまう

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2, 1.0.25
    • Fix Version/s: 1.1.3, 1.0.26
    • Labels:
      None

      Description

      m:passthroughのついているタグのid属性が書き換えられてしまう

      https://ml.seasar.org/archives/seasar-user/2007-July/010871.html

        Activity

        Hide
        yone yone added a comment -
        <html xmlns:m="http://www.seasar.org/maya">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=Windows-31j" />
        <title>Test</title>
        </head>
        <body>
        <form id="form1">
        <input type="hidden" id="popwidth" value="700" m:passthrough="true" />
        <input type="hidden" id="popheight" m:value="595" m:passthrough="true" />
        <table border="1">
         <span m:inject="s:forEach" m:items="#{forEachDtoList}" m:id="test" m:var="e" m:varIndex="i">
          <tr m:id="tr">
           <td m:id="td"><input type="text" m:value="#{e.key}" /></td>
          </tr>
         </span>
        </table>
        </form>
        </body>
        </html>
        

        s2jsf-exampleにおいて上記のhtmlを作成し,このHTMLのレンダリングが以下になる事を確認

        <html>
        <head>
        <meta content="text/html; charset=Windows-31j" http-equiv="Content-Type" />
        <title>Test</title>
        </head>
        <body>
        <form id="form1" name="form1" method="post" enctype="application/x-www-form-urlencoded" action="/s2jsf-example/add/test.html;jsessionid=1B95D4C2712AFE8D95C920C99CFDC919">
        <input id="popwidth" value="700" type="hidden" />
        <input id="popheight" value="595" type="hidden" />
        <table border="1">
         
          <tr id="form1:test_0:tr">
           <td id="form1:test_0:td"><input type="text" name="form1:test_0:_id11" value="111" label="_id11" /></td>
          </tr>
         
          <tr id="form1:test_1:tr">
           <td id="form1:test_1:td"><input type="text" name="form1:test_1:_id11" value="222" label="_id11" /></td>
          </tr>
         
        </table>
        <input type="hidden" name="form1/add/test.html" value="form1" /></form>
        
        </body></html>
        
        Show
        yone yone added a comment - <html xmlns:m = "http://www.seasar.org/maya" > <head> <meta http-equiv= "Content-Type" content= "text/html; charset=Windows-31j" /> <title> Test </title> </head> <body> <form id= "form1" > <input type= "hidden" id= "popwidth" value= "700" m:passthrough= "true" /> <input type= "hidden" id= "popheight" m:value= "595" m:passthrough= "true" /> <table border= "1" > <span m:inject= "s:forEach" m:items= "#{forEachDtoList}" m:id= "test" m:var= "e" m:varIndex= "i" > <tr m:id= "tr" > <td m:id= "td" > <input type= "text" m:value= "#{e.key}" /> </td> </tr> </span> </table> </form> </body> </html> s2jsf-exampleにおいて上記のhtmlを作成し,このHTMLのレンダリングが以下になる事を確認 <html> <head> <meta content= "text/html; charset=Windows-31j" http-equiv= "Content-Type" /> <title> Test </title> </head> <body> <form id= "form1" name= "form1" method= "post" enctype= "application/x-www-form-urlencoded" action= "/s2jsf-example/add/test.html;jsessionid=1B95D4C2712AFE8D95C920C99CFDC919" > <input id= "popwidth" value= "700" type= "hidden" /> <input id= "popheight" value= "595" type= "hidden" /> <table border= "1" > <tr id= "form1:test_0:tr" > <td id= "form1:test_0:td" > <input type= "text" name= "form1:test_0:_id11" value= "111" label= "_id11" /> </td> </tr> <tr id= "form1:test_1:tr" > <td id= "form1:test_1:td" > <input type= "text" name= "form1:test_1:_id11" value= "222" label= "_id11" /> </td> </tr> </table> <input type= "hidden" name= "form1/add/test.html" value= "form1" /> </form> </body> </html>
        Hide
        yone yone added a comment -

        対応しました。

        Show
        yone yone added a comment - 対応しました。
        Hide
        yone yone added a comment -

        1.0系も同様に修正する必要があります。

        Show
        yone yone added a comment - 1.0系も同様に修正する必要があります。
        Hide
        yone yone added a comment -

        1.0系も対応しました.Rev:874

        Show
        yone yone added a comment - 1.0系も対応しました.Rev:874

          People

          • Assignee:
            yone yone
            Reporter:
            yone yone
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development