You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Burghard Britzke <bu...@charmides.in-berlin.de> on 2009/01/01 09:33:45 UTC
Re: [Trinidad] charset
to verify if you are rendering xml, have a look at source code in the
browser or the http response data.
to set html rendering use code like the following:
<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:tr="http://myfaces.apache.org/trinidad">
<jsp:directive.page contentType="text/html; charset=UTF-8"/>
<f:view>
...
</f:view>
</jsp:root>
Am 31.12.2008 um 14:28 schrieb desik:
>
> I don't have any settings regarding html / xhtml rendering. So I
> guess it's
> default rendering. Voted for both bugs.
>
>
> Burghard Britzke wrote:
>>
>> are you trying to render xml? you probably run into
>> https://issues.apache.org/jira/browse/TRINIDAD-1139
>> and https://issues.apache.org/jira/browse/TRINIDAD-818 . the
>> javascript generated for xml rendered pages is not valid and does not
>> work. you should consider to vote for them or better fix it. I wonder
>> why so few users run into this issue. do they all render old
>> fashioned
>> html?
>>
>> burghard.britzke
>>
>> Am 30.12.2008 um 08:00 schrieb desik:
>>
>>>
>>> I have a simple trinidad page, with no jsp:directive.page charset
>>> specified:
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
>>> xmlns:f="http://java.sun.com/jsf/core"
>>> xmlns:h="http://java.sun.com/jsf/html"
>>> xmlns:tr="http://myfaces.apache.org/trinidad">
>>> <f:view>
>>> <tr:document title="not working">
>>> <tr:form>
>>> <h:commandButton value="h: Click me"
>>> action="#{loginHandler.login}"/>
>>> <tr:commandButton text="tr: Click me"
>>> action="#{loginHandler.login}"/>
>>> </tr:form>
>>> </tr:document>
>>> </f:view>
>>> </jsp:root>
>>>
>>> Both buttons don't work. When I click them request is not sent to
>>> server.
>>>
>>> Now, if I add:
>>>
>>> <jsp:directive.page contentType="text/html; charset=utf-8"/>
>>>
>>> at the beginning of the page, both buttons work properly.
>>> Environment: myfaces 1.2.5, trinidad 1.2.10, tomcat 6.0.18, windoze
>>> vista,
>>> firefox 3.
>>> Do you thing this is a trinidad bug?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-Trinidad--charset-tp21213794p21213794.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--charset-problem-tp21213794p21231445.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>