Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 a 中的每一行输出行索引rich:dataTable。看起来该stateVar属性会这样做,但我不知道如何使用它。
rich:dataTable
stateVar
这方面的参考文档是没有希望的:
该属性提供对客户端组件状态的访问
简单地输出状态变量会产生“org.ajax4jsf.component.SequenceDataAdaptor$1@f63387”。我在网上快速浏览了一下源代码,但没有运气。
有谁知道哪个属性dataTable会给我行索引?
dataTable
你需要的是rowKeyVar属性。
rowKeyVar