[JSF-65] m:passthroughのinputタグのIDが書き換えられてしまう Created: 2007-07-06  Updated: 2008-03-31  Resolved: 2007-07-25

Status: Resolved
Project: S2JSF
Component/s: None
Affects Version/s: 1.1.2, 1.0.25
Fix Version/s: 1.1.3, 1.0.26

Type: Bug Priority: Major
Reporter: yone Assignee: yone
Resolution: Fixed Votes: 0
Labels: None


 Description   

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

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



 Comments   
Comment by yone [ 2007-07-25 ]

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

Comment by yone [ 2007-07-20 ]

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

Comment by yone [ 2007-07-20 ]

対応しました。

Comment by yone [ 2007-07-20 ]
<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>
Generated at Fri Apr 19 13:41:33 JST 2024 using Jira 9.15.0#9150000-sha1:9ead8528714127d8cfabf2446010d7e62c0a195c.