[seam-dev] EL Function Support
Pete Muir
pete.muir at jboss.org
Wed Aug 6 08:17:20 EDT 2008
Hi Nick,
Ah, I hadn't seen that blog before :-)
JBoss EL supports varargs for ValueExpressions, MethodExpressions and
EL functions (unfortunately, as you say, facelets doesn't, they might
be interested in your patch...)
Best,
On 6 Aug 2008, at 12:51, Nicholas Hagen wrote:
> http://www.ilikespam.com/blog/el-function-parameters-with-jboss-el
> which is linked from jsfcentral.com
>
> That talks about being able to do things like #{bean.method(param1,
> param2)} within the page without having to use a MethodExpression.
> It is just a standard ValueExpression (or ValueBinding for JSF 1.1)
> that rather than doing bean.getMethod() does bean.method(param1,
> param2).
>
> I did a very similar concept, except I also added variable argument
> support. I also updated Facelet functions to also support EL
> functions with variable args so you can do things like
> #{f:function(param1, param2, param3, param4, param5)} and only
> define the function as String concat(String... values).
>
> Thanks,
> Nick
>
> On Wed, Aug 6, 2008 at 7:29 AM, Pete Muir <pete.muir at jboss.org> wrote:
> Which article?
>
> JBoss EL provides function support, but I'm confused as the syntax
> you use is for a MethodExpression, not a function.
>
>
> On 6 Aug 2008, at 02:12, Nicholas Hagen wrote:
>
> Not sure if this is the right list or not but I just read your
> article on EL function support. I wanted to let the team know I also
> created an EL impl with function support. My impl also includes
> variable argument support so that you can declare a method such as
> add(int.. vals) and then invoke via #{bean.add(5,3,5,4)} to return
> 17. Otherwise, I think mine is fairly similar in support. Anyways
> does anyone have an interest in merging the two impls to get the
> best combination of features?
>
> Thanks,
>
> Nicholas Hagen
> Z|NET Development, LLC
> nicholas.hagen at znetdevelopment.com
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20080806/b425240c/attachment.html
More information about the seam-dev
mailing list