[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2471) add s:concat and s:range functions
Dan Allen (JIRA)
jira-events at lists.jboss.org
Wed Oct 15 01:12:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12433823#action_12433823 ]
Dan Allen commented on JBSEAM-2471:
-----------------------------------
I have decided that the better approach here is to use the capabilities of the JBoss EL.
#{myvar.concat("suffix")}
However, it still would be convenient to have some sort of range generator, perhaps a built-in component. Often times when creating pages, you have a need to iterate over a known range and you need to feed that range into an existing JSF component.
> add s:concat and s:range functions
> ----------------------------------
>
> Key: JBSEAM-2471
> URL: https://jira.jboss.org/jira/browse/JBSEAM-2471
> Project: Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 2.0.1.CR1
> Reporter: Dan Allen
> Assignee: Dan Allen
> Priority: Minor
> Fix For: The future
>
> Attachments: JBSEAM-2471-v1.txt
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> My #1 EL pet peeve is that there is no way to concatenate a string. This is like serious basic stuff and it is perfectly reasonable to want to perform this task in EL. I realize I could invent my own solution (and I have), but we want to sweep those common cases under the rug like what was done with the magic collection functions (size, isEmpty, etc).
> How about s:concat('one', 'two')?
> I am going to squeeze one more in here. I can't tell you the number of times I have needed to quickly create an iteration loop in the UI over a range of numbers, only to realize that there isn't an easy way aside from creating a component. Can we add an s:range() function that creates a collection on the fly?
> s:range(1, 5)
> This is somewhat of a precedence since the only two functions in s: right now are security related.
--
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