jsp中设置tabindex

misha0509 2013-03-28 02:05:34
[size][/size]
<s:iterator  value="terminalInfoAddList" id="info" status = "st">
<tr >
<td width="40px" align="right" ><div>${info.no}</div> </td>
<td><s:textfield id = "dmxGw" name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.dmxGw'}" value ="%{#info.terminalInfo.dmxGw}" maxlength="5" cssClass="common_text_dmxGwLsn" tabindex="#st.index"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.dcsTerminal'}" value ="%{#info.terminalInfo.dcsTerminal}" maxlength="4" cssClass="common_text_dcsTerminal" tabindex="11"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.sid'}" value ="%{#info.terminalInfo.sid}" maxlength="2" cssClass="common_text_sidDid" tabindex="12"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.did'}" value ="%{#info.terminalInfo.did}" maxlength="2" cssClass="common_text_sidDid" tabindex="13"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.atcpTerminal'}" value ="%{#info.terminalInfo.atcpTerminal}" maxlength="8" cssClass="common_text_atcpTerminal" tabindex="14"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.atcpDevice'}" value ="%{#info.terminalInfo.atcpDevice}" maxlength="8" cssClass="common_text_atcpDevice" tabindex="15"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.atcpGwIp'}" value ="%{#info.terminalInfo.atcpGwIp}" maxlength="15" cssClass="common_text" tabindex="16"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].atcpGwPortStr'}" value ="%{#info.atcpGwPortStr}" maxlength="5" cssClass="common_text_atcpGwPortStrt" tabindex="17"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.lsn'}" value ="%{#info.terminalInfo.lsn}" maxlength="5" cssClass="common_text_dmxGwLsn" tabindex="18"/></td>
<td><s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.hubAirport'}" value ="%{#info.terminalInfo.hubAirport}" maxlength="16" cssClass="common_text_hubAirport" tabindex="19"/></td>
</tr>
</s:iterator>




这是一个十行(terminalInfoAddList.size=10)十列的输入框,项目需要 加tab键的迁移顺序。但是这是一个循环遍历的过程,tabindex=”?” tabindex中如何放置一个变量,让其以“Z”型 从左向右 从上向下迁移?试了很多方法 都不可以。第一行【tabindex="#st.index"】#st.index并没有被识别成变量,而是一个字符串~ 为哈么?
...全文
174 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
misha0509 2013-03-28
  • 打赏
  • 举报
回复
引用 1 楼 fangmingshijie 的回复:
tabindex="12"这些东西,应该写在<s:textfield标签里面吧?
对呀 我代码沾的时候有点乱了 想设置一下颜色 结果多了好多没用的代码, 其中一行的代码应该是这样的: 不过调查了一下 好像tabIndex不支持动态的。。也不知道有没有解决办法。
<s:textfield name = "%{'terminalInfoAddList['+#st.index+'].terminalInfo.hubAirport'}" value ...... tabindex="19"/></td> 
  • 打赏
  • 举报
回复
tabindex="12"这些东西,应该写在<s:textfield标签里面吧?

81,120

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧