Jsf 我在Java中有一个c:set变量。我想+;1到rich:dataTable中的值,这可能吗?
我在Java中有一个c:set变量。我想将+1转换为Jsf 我在Java中有一个c:set变量。我想+;1到rich:dataTable中的值,这可能吗?,jsf,richfaces,jstl,jsf-1.2,Jsf,Richfaces,Jstl,Jsf 1.2,我在Java中有一个c:set变量。我想将+1转换为rich:dataTable中的值,这可能吗 <h:form id="webstoreSettings" styleClass="edit"> <c:set var="_count" value="0" scope="page" /> <rich:panel> <rich:simpleTogglePanel label="Store Pro
rich:dataTable
中的值,这可能吗
<h:form id="webstoreSettings" styleClass="edit">
<c:set var="_count" value="0" scope="page" />
<rich:panel>
<rich:simpleTogglePanel label="Store Properties"
switchType="client" rendered="true">
<div style="margin: 7px 0px;">
<rich:dataTable id="webListsTable"
value="#{storeHome.webPropertiesVars}" var="_var">
<h:column id="webstoreVarCol">
<h:outputLabel id="webstoreVar_#{_count}" value="#{_var.webstoreVar}" />
<c:set var="_count" value="#{_count + 1}" scope="page" />
</h:column>
</rich:dataTable>
</div>
</rich:simpleTogglePanel>
</rich:panel>
</h:form>
所有id=“webstoreVar\u 0”都是相同的:(
谢谢。这是不可能的。JSTL标记在视图生成期间运行,而不是在视图渲染期间运行。
仅在视图渲染期间可用
我不知道你为什么需要这样的
。这没有任何意义。只需从id
属性中删除EL。JSF已经在它前面加上了数据表的行索引
另见: