1.0..xでtabindexにEL式を記述するとエラーになる
s2jsf-integration-testに追加
<html xmlns:m="http://www.seasar.org/maya"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-31j" /> <title>ForEachTabIndex</title> </head> <body> <form id="f"> <table border="1"> <span m:inject="s:forEach" m:items="#{forEachDtoList}" m:var="e" m:varIndex="i" m:id="each"> <tr> <td><input type="text" id="key" m:value="#{e.key}" m:tabindex="#{i}"/></td> </tr> </span> </table> </form> </span> </body> </html>
public class ForEachTabIndexTest extends TeedaWebTestCase { private static final String URL_TEST = "foreach/forEachTabIndex.html"; public static Test suite() throws Exception { return setUpTest(ForEachTabIndexTest.class); } /** * 初期表示の確認 * * @throws Exception */ public void testInitialize() throws Exception { // ## Arrange ## TeedaWebTester tester = new TeedaWebTester(); // ## Act ## tester.beginAt(getBaseUrl(), URL_TEST); tester.dumpHtml(); // ## Assert ## tester.assertTitleEquals("ForEachTabIndex"); for (int i = 0; i < 2; i++) { tester.assertAttributeEqualsById("f:each_" + i + ":key", "tabindex", String.valueOf(i)); } } }