You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "amith jayasekara (JIRA)" <ji...@apache.org> on 2011/03/22 11:07:05 UTC

[jira] [Created] (WW-3596) conditional iterating with iterator UI tag

conditional iterating with iterator UI tag 
-------------------------------------------

                 Key: WW-3596
                 URL: https://issues.apache.org/jira/browse/WW-3596
             Project: Struts 2
          Issue Type: Improvement
          Components: Other
    Affects Versions: 2.1.8.1
            Reporter: amith jayasekara
            Priority: Minor


Assume that we have a map like this 
	{amith=24, shan=23, cathuranga=20, kusal=45}
And assume that we need to list only values that below 25 on a html table .
Currently we can do that by evaluating list objects inside the iterator tag body but I feel that it may be more useful to give a chance for developer to add a little condition (not complex conditions) while iterating a list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WW-3596) conditional iterating with iterator UI tag

Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip Luppens resolved WW-3596.
--------------------------------

    Resolution: Not A Problem

You should investigate filtering and projections using ognl expressions - you can do all that, and more.

And you should ask questions on the Struts user mailing list, not the bug tracker.

> conditional iterating with iterator UI tag 
> -------------------------------------------
>
>                 Key: WW-3596
>                 URL: https://issues.apache.org/jira/browse/WW-3596
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 2.1.8.1
>            Reporter: amith jayasekara
>            Priority: Minor
>
> Assume that we have a map like this 
> 	{amith=24, shan=23, cathuranga=20, kusal=45}
> And assume that we need to list only values that below 25 on a html table .
> Currently we can do that by evaluating list objects inside the iterator tag body but I feel that it may be more useful to give a chance for developer to add a little condition (not complex conditions) while iterating a list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3596) conditional iterating with iterator UI tag

Posted by "amith jayasekara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009612#comment-13009612 ] 

amith jayasekara commented on WW-3596:
--------------------------------------





-- 
ahh thanx


> conditional iterating with iterator UI tag 
> -------------------------------------------
>
>                 Key: WW-3596
>                 URL: https://issues.apache.org/jira/browse/WW-3596
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 2.1.8.1
>            Reporter: amith jayasekara
>            Priority: Minor
>
> Assume that we have a map like this 
> 	{amith=24, shan=23, cathuranga=20, kusal=45}
> And assume that we need to list only values that below 25 on a html table .
> Currently we can do that by evaluating list objects inside the iterator tag body but I feel that it may be more useful to give a chance for developer to add a little condition (not complex conditions) while iterating a list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3596) conditional iterating with iterator UI tag

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009614#comment-13009614 ] 

Dave Newton commented on WW-3596:
---------------------------------

Personally, I'd do this logic on the server side.

But Philip's right, you can do some pretty sick stuff with OGNL:

http://www.opensymphony.com/ognl/html/LanguageGuide/selection.html

> conditional iterating with iterator UI tag 
> -------------------------------------------
>
>                 Key: WW-3596
>                 URL: https://issues.apache.org/jira/browse/WW-3596
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 2.1.8.1
>            Reporter: amith jayasekara
>            Priority: Minor
>
> Assume that we have a map like this 
> 	{amith=24, shan=23, cathuranga=20, kusal=45}
> And assume that we need to list only values that below 25 on a html table .
> Currently we can do that by evaluating list objects inside the iterator tag body but I feel that it may be more useful to give a chance for developer to add a little condition (not complex conditions) while iterating a list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira