]
Eric Jung updated JBSEAM-4264:
------------------------------
Priority: Major (was: Minor)
add ability to get current index from within e:worksheet
--------------------------------------------------------
Key: JBSEAM-4264
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4264
Project: Seam
Issue Type: Feature Request
Components: Excel
Reporter: Eric Jung
Fix For: 2.1.2.GA
If you have a collection of items with an arbitrary count, there is currently no
straightforward way to dynamically output the collection row-wise. Is there any way to add
a varStatus attribute like c:forEach and ui:repeat have? I'm open to other ideas, too,
like using a binding for e:worksheet, but that doesn't seem to help the problem.
Here's an example of what I'd like to do:
<e:worksheet name="#{messages.mySheet}"
value="#{myService.someList}" var="d" startRow="31"
varStatus="status">
<e:cell column="1" row="#{status.rowIndex}"
value="#[d.foo}"/>
<e:cell column="2" row="#{status.rowIndex}"
value="#[d.foo2}"/>
<e:cell column="3" row="#{status.rowIndex}"
value="#[d.foo3}"/>
<e:cell column="1" row="#{status.rowIndex}"
value="#[d.foo4}"/>
<e:cell column="2" row="#{status.rowIndex}"
value="#[d.foo5}"/>
<e:cell column="3" row="#{status.rowIndex}"
value="#[d.foo6}"/>
</e:worksheet>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: