[jbossseam-issues] [JBoss JIRA] Assigned: (JBSEAM-4264) add ability to get current index from within e:worksheet

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Fri Aug 21 02:06:23 EDT 2009

     [ https://jira.jboss.org/jira/browse/JBSEAM-4264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicklas Karlsson reassigned JBSEAM-4264:

    Assignee: Nicklas Karlsson

> 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
>    Affects Versions: 2.1.2.CR1, 2.1.2.CR2, 2.1.2.GA, 2.2.0.CR1
>            Reporter: Eric Jung
>            Assignee: Nicklas Karlsson
> 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


More information about the seam-issues mailing list