You are right. I am trying to encode page as Windows-1252 page. The problem as you can read the JSP page I have included, in the original message. There I have characters like á, I ask the Tomcat server to handle the page and I capture the generated Java source for page and the characters like á is therein and the page gets to the Internet browser but surprise, when I look at the generated code the á is converted to &a#255; which is the equivalent to the á in HTML encoding.
I am using Tomahawk 1.1.6 MyFaces Tomahawk 1.1.6 Distribution and configured the Extensions Filter because I indeed use the t:Tags such as t:inputcalendar, etc, and if I put this Extension the page works well (although in the example there is no reference to it, but elsewhere the page works but renders á the way I don't want, and if I take away the Extension filter and use t:inputCalendar an exception is raised....that's why I suspect this is a bug. You can try for yourself, I think! -----Mensaje original----- De: Scott O'Bryan [mailto:[EMAIL PROTECTED] Enviado el: Wednesday, November 28, 2007 4:16 PM Para: MyFaces Development Asunto: Re: An Extensions Filter Bug Yeah sorry I got side tracked with the syntax. :) JSF1.2 handles inline html correctly. :) Now for your question. What exactly are you asking? In your page declaration, you are setting the charset to be windows-1252. This means that code will be transmitted to the browser using that encoding. The meta tag tells the browser what character set you are using. Should it be doing something different? Scott Carlos Adolfo Ortiz Quiros wrote: > I am using Tomahawk library, JSF1.2, and traed the f:verbatim and nothing > happened that way. It is the extension filter. > > -----Mensaje original----- > De: Scott O'Bryan [mailto:[EMAIL PROTECTED] > Enviado el: Wednesday, November 28, 2007 3:42 PM > Para: MyFaces Development > Asunto: Re: An Extensions Filter Bug > > Are you using JSF 1.2 or JSF 1.1. If you are using 1.1, you'll either > want to use the f:verbatum tag to wrap non-faces content. > > Scott > > Carlos Adolfo Ortiz Quiros wrote: > >> HI you all >> >> After a great amount of time trying to find why web page in the source >> code gets altered I concluded that the Extensions Filter is doing >> something that should not be doing or perhaps I don't know how to fix. >> >> Here is the situation. >> >> First code sample >> >> <%@ page contentType="text/html;charset=windows-1252"%> >> >> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> >> >> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> >> >> <f:view> >> >> <html> >> >> <head> >> >> <meta http-equiv="Content-Type" >> >> content="text/html; charset=windows-1252"/> >> >> <meta name="Eddy Johana Angarita Navarro" content="TRÉBOL Software >> S.A."></meta> >> >> <script type="text/javascript" language="JavaScript"> >> >> //Valida la longitud de un texto. >> >> function validaLongitud(texto, longitud, e) { >> >> if (!e) e = window.event; >> >> if (!isEdicionKey(e) && texto.value.length >= longitud) { >> >> *alert("No puede digitar más de " + longitud + " caracteres.");* >> >> return false; >> >> } >> >> return true; >> >> } >> >> // Valida si la tecla presionada es de edición. >> >> // Utilizar unicamente en evento "onkeydown". >> >> function isEdicionKey(e) { >> >> if (!e) e = window.event; >> >> var key = e.which ? e.which : e.keyCode; >> >> return (key==8 || key==9 || (key >= 33 && key <= 40) || key==45 || >> key==46); >> >> } >> >> function doOnKeyDown(e) { >> >> var obj = document.getElementById("frmSistemas:nombreSistema"); >> >> validaLongitud(obj.value, 10, e); >> >> } >> >> </script> >> >> <title>This is a full text sample</title> >> >> </head> >> >> <body onload="*alert('más o áéíóúñÑ'*);">This is it verbatim and >> más to >> >> this<h:form> >> >> <h:inputText maxlength="10" onkeypress="return validaLongitud(this, >> 10, event);"/> >> >> </h:form></body> >> >> </html> >> >> </f:view> >> >> See the text in bold above. >> >> I am using MyFaces tomahawk and have configured the ExtensionsFilter >> as stated in the page >> http://myfaces.apache.org/tomahawk/extensionsFilter.html >> >> I have put this page in a tomcat server and captured the generated >> java code and the characters are preserved but when I look at the >> source code in the Internet Browser, it gets altered to HTML >> characters, that is á is changed to á or ÿ. >> >> See in page >> >> <%@ page contentType="text/html;charset=windows-1252"%> >> >> <meta http-equiv="Content-Type" >> >> content="text/html; charset=windows-1252"/> >> >> To enforce page is interpreted correctly by browser >> >> I think this is a bug because the whole page should not be encoded, >> only what needed by the filter. >> >> Is there a way to fix this or it is indeed a bug in the library. >> >> **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. >> > > > > 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. 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.
