myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Adolfo Ortiz Quiros" <carlos.or...@trebol.com.co>
Subject RE: Help on Tomahawk Extensions Filter
Date Mon, 03 Dec 2007 14:50:01 GMT
Thanks to you all, this was exactly what I was looking for!

-----Mensaje original-----
De: Christopher Cudennec [mailto:SmutjeJim@gmx.net] 
Enviado el: Monday, December 03, 2007 9:06 AM
Para: MyFaces Discussion
Asunto: Re: Help on Tomahawk Extensions Filter

http://wiki.apache.org/myfaces/Performance

Carlos Adolfo Ortiz Quiros schrieb:
> Thanks, but how is this done!  This implies a recompile of the filter class.
> Can you tell me what to do?
>
> -----Mensaje original-----
> De: David Delbecq [mailto:delbd+jakarta@oma.be] 
> Enviado el: Monday, December 03, 2007 8:49 AM
> Para: MyFaces Discussion
> Asunto: Re: Help on Tomahawk Extensions Filter
>
> Use streamingAddRessource, that way the tomahawk extension filter won't 
> try to parse and fix your html while adding the ressources of tomahawk 
> components. But this requires you to use the t:document , t:head and 
> t:body tags!
>
> En l'instant précis du 03/12/07 14:41, Carlos Adolfo Ortiz Quiros 
> s'exprimait en ces termes:
>   
>> Hi you all
>>
>> Is there a way to not let the Tomahawk Extension filter not encode the 
>> whole page.
>>
>> That is
>>
>> If I have a page like this
>>
>> <html>
>>
>> <meta>
>>
>> <script>
>>
>> function a()
>>
>> {
>>
>> alert("alerta mañana");
>>
>> }
>>
>> </script>
>>
>> ...
>>
>> </html>
>>
>> Notice the word mañana, which has extended ascii characters, I have 
>> put the correct encoding in the page as
>>
>> <%@ page session="false" contentType="text/html;charset=ISO-8859-1"%>
>>
>> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1" />
>>
>> Thus JSF encodes the page correctly by emitting the code for ñ as is.
>>
>> But the strange thing comes when the filter gets applied, the whole 
>> page gets converted to the ISO-8859-1code page changing the ñ to the 
>> &#nnn; HTML convention, showing it incorrectly in my page, which is 
>> something it must not do.
>>
>> I have asked this in the development list but I have not got a reply 
>> more than a patch applied to the version 1.1.2
>>
>> Is there a way to circumvent all of this in a manner that the filter 
>> is useful to the <t:xxx> components and all the code emitted is 
>> correctly encoded not losing the original intention of the characters 
>> typed in the JSP page.
>>
>> Thanks in advance.
>>
>> **CARLOS ADOLFO ORTIZ Q**
>>
>> Ingeniero de Desarrollo
>>
>> **TRÉBOL Software S.A.******
>>
>> Tel : (574)3110663 Fax : (574)3113474
>>
>> Dirección Cll 16 # 28-195
>>
>> Medellín - Colombia
>>
>> http://www.trebol.com.co <http://www.trebol.com.co/>
>>
>> La información de este mensaje y sus anexos son propiedad exclusiva
>> de TRÉBOL Software S.A. Es  únicamente para el uso del destinatario
>> intencional  y  pueden  contener  información de carácter privado o
>> confidencial. Le  informamos que cualquier revisión, retransmisión,
>> divulgación,  copia  o  uso  indebido  del mismo está estrictamente
>> prohibida  y será sancionada legalmente.
>>
>>
>>
>> Information contained in this message and every attachment is property of TREBOL
Software S.A. Only the destiny user is able to make use of the data here contained, which
is private and/or confidential. Any revision, broadcasting, spreading, copy or illegal use
of this information is strictly prohibited and will be sanctioned by legal means.
>>     
>
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.13/1164 - Release Date: 02.12.2007 11:30
>   



La información de este mensaje y sus anexos son propiedad exclusiva
de TRÉBOL Software S.A. Es  únicamente para el uso del destinatario
intencional  y  pueden  contener  información de carácter privado o
confidencial. Le  informamos que cualquier revisión, retransmisión,
divulgación,  copia  o  uso  indebido  del mismo está estrictamente
prohibida  y será sancionada legalmente.



Information contained in this message and every attachment is property of TREBOL Software
S.A. Only the destiny user is able to make use of the data here contained, which is private
and/or confidential. Any revision, broadcasting, spreading, copy or illegal use of this information
is strictly prohibited and will be sanctioned by legal means.
Mime
View raw message