[
https://jira.jboss.org/jira/browse/JBSEAM-4264?page=com.atlassian.jira.pl...
]
Norman Richards commented on JBSEAM-4264:
-----------------------------------------
No - I removed the 2.1.2.GA fixed tag. 2.1.2.GA has already been released, so there's
no chance it will be fixed in that release. Maybe you meant to set the "affects
version"?
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
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+1}"
value="#[d.foo}"/>
<e:cell column="2" row="#{status.rowIndex+2}"
value="#[d.foo2}"/>
<e:cell column="3" row="#{status.rowIndex}"
value="#[d.foo3}"/>
<e:cell column="1" row="#{status.rowIndex+1}"
value="#[d.foo4}"/>
<e:cell column="2" row="#{status.rowIndex+2}"
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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira