Hello Mario,

Perhaps this check could be moved to application scope and you could check for 
it once in the the myfaces context startup listener.  You many also want to 
perform this check with a quick SAX ( less memeory than DOM ) handler for the 
deployment descriptor in order to determine which filters an app has.  Just a 
few ideas.

Dennis Byrne

>-----Original Message-----
>From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
>Sent: Saturday, April 1, 2006 07:33 AM
>To: 'MyFaces Development'
>Subject: Detection of ExtensionsFilter
>
>Hi!
>
>I thought about creating some logic to detect if a ExtensionFilter is
>configured.
>
>To archive this, I'll add - say in HtmlFormRenderer (dont know the exact
>name now, any other component will be fine too) in encodeStart something
>like:
>
>if (not checked in session)
>{
>    new Throwable().printStacktrace(StringWriter)
>    if (sw.toString().indexOf(ExtensionsFilter) < 0) throw new
>FacesConfigurationException() ....
>    set checked in session
>}
>
>
>What do you think?
>
>Ciao,
>Mario
>
>


Reply via email to