I forgot to include the showcase link. Here it is:
http://showcase.omnifaces.org/taghandlers/importConstants
Cheers, B
On Tue, Feb 3, 2015 at 9:05 AM, Bauke Scholtz <balusc_at_gmail.com> wrote:
> FYI: EL 3.0 is supposed to support this via new ImportHandler API.
> However, EL 3.0 impls have still childhood bugs with this. For example,
> Apache EL uses "plain vanilla" Class#forName() on current (default) class
> loader instead of that one of thread context. So classes in WAR are
> invisible to it, rendering the ImportHandler completely unusable.
>
> OmniFaces has <o:importConstants> taghandler for the very purpose which
> basically creates a mapping of constant values and puts it in facelet
> scope. You can get inspiration from this.
>
> Cheers, B
>
>
> On Mon, Feb 2, 2015 at 11:28 PM, Michael Müller <
> michael.mueller_at_mueller-bruehl.de> wrote:
>
>> Hi Manfred,
>>
>> Of course. But consider, I'm an expert user not an implementer of JSF.
>> Thus, I can't promise, but I'm going to try.
>>
>> Maybe a simpler task would be better to start this kind of work. I just
>> filed an other issue, where I usually have to create workarounds and
>> suggested to enhance conversation handling (https://java.net/jira/browse/
>> JAVASERVERFACES_SPEC_PUBLIC-1358). In case the EG members regard this is
>> an useful enhancement, this might be a better starting point to perform
>> such a task?
>>
>> Regards,
>> Michael
>>
>> Am 02.02.2015 um 15:30 schrieb manfred riem:
>>
>> Hi Michael,
>>>
>>> Are you willing to see what is needed to support this from an
>>> implementation and specification side.
>>>
>>> Thanks!
>>> Manfred
>>>
>>>
>>
>