jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: EL 3.0 static fields for java.lang.* package not implemented in Facelets

From: Edward Burns <edward.burns_at_oracle.com>
Date: Mon, 12 Oct 2015 13:34:53 -0700

>>>>> On Thu, 8 Oct 2015 10:33:01 +0200, Bauke Scholtz <balusc_at_gmail.com> said:

B> Hi,
B> As per EL 3.0 spec chapter 1.22.1 (
B> http://download.oracle.com/otn-pub/jcp/el-3_0-fr-eval-spec/EL3.0.FR.pdf),
B> classes of java.lang.* package are implicitly imported in EL scope. This
B> works for JSP like so ${Boolean.TRUE}, but not for Facelets like so
B> #{Boolean.TRUE}.

B> Was that done awarely or is this just an oversight in Facelets?

That appears to be oversight.

B> Nonetheless, in the line of OmniFaces <o:importConstants>, I'd imagine that
B> a new Facelet taghandler like <ui:importConstants> utilizing this EL 3.0
B> feature would be very useful, particularly for enums and like.

Why would we need a tag for it? Can't we just fix Facelets, adding a
backward compatibility context-param to turn it on?

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| 09 Business days til JavaOne 2015
| 25 Business days til DOAG 2015