简体   繁体   English

JSF页面动态设置选项卡顺序

[英]JSF page set tab order dynamically

We have requirement to set the tab order dynamically on page based on below conditions. 我们需要根据以下条件在页面上动态设置制表符顺序。

If field has default value selected then that field should be skipped while user tabs. 如果字段选择了默认值,则在用户选项卡时应跳过该字段。 But if user explicitly clicks on default value field then next tab order should follow correctly by skipping the next default value fields. 但是,如果用户明确单击默认值字段,则下一个跳位顺序应通过跳过下一个默认值字段正确地遵循。 The fields which needs to be defaulted are decided on page load. 需要默认的字段由页面加载决定。

I guess you could dynamically set the tabindex of the input fields, is that what you're trying to accomplish? 我想您可以动态设置输入字段的tabindex,这就是您要完成的工作吗? I'm not sure if tabindex is exposed as a JSF property or not. 我不确定tabindex是否作为JSF属性公开。

http://www.w3schools.com/tags/att_global_tabindex.asp http://www.w3schools.com/tags/att_global_tabindex.asp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM