Neal Haggard wrote:
I need to be able to get the length of a collection in JSF EL. Is there a way
to do it? Looking at JSP 2.0 EL (which JSF uses) it allows for functions,
specifically the pre-defined length() function. However, when I try using that
with MyFaces I get an exception saying functions are not allowed. Is there a
reason this was done? It seems like an awful handy feature of EL to throw
away. Anyone hacked MyFaces to allow functions to be used?
The JSF 1.2 and JSP 2.1 alignment correct this issue. One option is to
use Facelets with MyFaces to accomplish this as it stands now. Facelets
doesn't include
any pre-defined Functions yet, but they will be included or you can
provide them yourself in your application.
http://facelets.dev.java.net