我很难评估mod语句中的表达式<c:if>。
<af:forEach begin="0" end="2" step="1" var="col" varStatus="columnStatus">
<c:set var="colIndex" value="${columnStatus.index}" scope="page" />
<trh:cellFormat width="33%" valign="top" halign="center" id="cf1">
<af:panelGroupLayout id="pgl4" layout="vertical" halign="center">
<af:iterator id="i1"
value="#{pageFlowScope.SkillsMatcherBean.candidateList}"
rows="#{pageFlowScope.SkillsMatcherBean.candidateListSize}"
var="row"
varStatus="rowStatus"
first="#{columnStatus.index}">
<c:if test="${rowStatus.index mod 3 == '${columnStatus.index}'}">
<af:group id="g1">
<af:outputText value="index" id="ot6"/>
<af:outputText value=" #{rowStatus.index}" id="ot2"/>
<af:outputText value="end" id="ot7"/>
<af:outputText value=" #{columnStatus.index}" id="ot3"/>
<af:outputText value="count" id="ot13"/>
<af:outputText value=" #{rowStatus.index % 3}" id="ot5"/>
<af:outputText value="#{test}" id="ot1"/>
<af:spacer width="10" height="5" id="s1"/>
</af:group>
</c:if>
</af:iterator>
</af:panelGroupLayout>
</trh:cellFormat>
</af:forEach>
我有两个迭代器循环,外循环varStatus变量 as"columnStatus"和内循环varStatus变量 as "rowStatus"。
columnStatus跨越 0 - 2
rowStatus跨越 1 - 18
在上面的表达式中,rowStatus.index mod 3总是计算为0。我试过用%and mod。
我正在使用Jdev 11.1.1.6.
请让我知道如何实现这一目标。
谢谢