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

Norman Richards (JIRA) jira-events at lists.jboss.org
Tue Jun 23 14:44:57 EDT 2009


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

Norman Richards updated JBSEAM-4264:
------------------------------------

    Fix Version/s:     (was: 2.1.2.GA)


> 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

        



More information about the seam-issues mailing list