[jsr-314-open] support for html entities

Alexandr Smirnov asmirnov at EXADEL.COM
Thu Apr 2 16:02:27 EDT 2009


After a code review, I  concern about properly implementation. The old
facelets patch supports only pre-defined set of most popular HTML dtd's.
Obliviously, direct requests to the online definitions should be
disabled, because it could take significant impact to the application
performance and crush application if server has no direct internet access.
The possible options are:
1 VDL compiler resolves pre-defined entities only but block any other
from loading.
2 Create cached entity resolver and load any referenced entities from
internet only once.
3 Use configurable entity resolver. Implementation could define init
parameter to enable resolver and define place of the configuration file
( For example, as OASIS XML catalog format ).
4. Combination of the options 1 and 3. Provide most used entities 'in
the box' with optional configurable catalog.

Ed Burns wrote:
>>>>>> On Fri, 27 Mar 2009 17:29:24 -0700, Alexandr Smirnov <asmirnov at EXADEL.COM> said:
>>>>>>             
>
> AS> It is possible. I've done that one time for Facelets ( even with
> AS> properly source encoding support ). The issue still exists in the
> AS> Facelets BugZilla : https://facelets.dev.java.net/issues/show_bug.cgi?id=111
> AS> As I see in the JSF 2.0 code there is same SAXCompiler as Facelets uses,
> AS> therefore I can convert my old patch to the current implementation.
>
> THat would be great, thanks.
>
> Ed
>
>   




More information about the jsr-314-open-mirror mailing list