commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Grobmeier (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JEXL-15) [jexl] Needs definable functions
Date Fri, 19 Jun 2009 05:57:07 GMT

     [ https://issues.apache.org/jira/browse/JEXL-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Grobmeier resolved JEXL-15.
-------------------------------------

    Resolution: Fixed

 Committed revision 786382

Thanks!

> [jexl] Needs definable functions
> --------------------------------
>
>                 Key: JEXL-15
>                 URL: https://issues.apache.org/jira/browse/JEXL-15
>             Project: Commons JEXL
>          Issue Type: Improvement
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Paul Libbrecht
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: JEXL-15.patch
>
>
> Currently, in Jexl, the only way to add a functionality is to define a variable.
> Typically this is done in a separate environment... e.g. in jelly's j:new, j:set or...
> Using this, one can define, say, "a" then invoke "a.doSomething(withThat)".
> It would be nice to allow adding methods, e.g. "doSomething" to be invoked without any
object.
> This way I could just say "doSomething".
> Examples of usage include:
> - add some mathematical functions to make jexl full featured mathematically (e.g. "abs",
"exp", 
> "atan")
> - add some "general purpose utilitites" (e.g. "tokenize(aString)", "toString(xx)", or

> "relativeUrl(baseUrl, relPath)")
> - thereby become more compatible with JSP (i've been told)
> This should promote general usage of such functions availability.
> In some situations this would help a lot. For example in maven where I too often still
see 
> srcFile="${baseDIr+pathToResource}" which prevents any overridability.
> (e.g. the cvs-usage.xml page in the xdoc plugin)
> paul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message