[ 
http://www.jahia.net/jira/browse/JAHIA-3513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34949#action_34949
 ] 

Sergiy Shyrkov commented on JAHIA-3513:
---------------------------------------

It would be nice if the <content:container/> tag will have an additional 
attribute 'varStatus' and will expose a bean into its scope, which implements 
javax.servlet.jsp.jstl.core.LoopTagStatus (this is used in the JSTL in the 
iterations: 
http://java.sun.com/products/jsp/jstl/1.1/docs/api/javax/servlet/jsp/jstl/core/LoopTagStatus.html
 ).

So we can use it in the following way:

<content:containerList name="address">
   <content:container varStatus="status">

   count: ${status.count}
   is first?: ${status.first}
   is last?: ${status.first}
   
   </content:container>
</content:containerList>

What do you think?

> content:containerCounter tag should expose current value
> --------------------------------------------------------
>
>                 Key: JAHIA-3513
>                 URL: http://www.jahia.net/jira/browse/JAHIA-3513
>             Project: Jahia Web Content Management Server (WCMS)
>          Issue Type: Improvement
>          Components: Jahia Core Framework
>    Affects Versions: WCM 5.0 SP4
>            Reporter: Damien Saulnier
>            Assignee: Xavier Lawrence
>             Fix For: WCM 5.0 SP5
>
>
> currently, the content:containerCounter tag only displays the counter value. 
> It would be nice to add an "id" attribute to this tag to define a variable 
> that exposes the value, so that it can be used in jsp code, and not only 
> displayed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.jahia.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
jira_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/jira_list

Reply via email to