You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Zhi <zh...@gmail.com> on 2006/05/20 16:35:01 UTC
Defect of t:buffer?
With source code of Tomahawk-1.1.3-SNAPSHOT and MyFaces-1.1.4-SNAPSHOT, t:buffer mess the Chinese characters.
I use t:buffer, t:dataTable, and t:dataScroller in the standard way as tomahawk/examples/simple/buffer.jsp.
<t:buffer into="#{table}">
<t:dataTable
...
</t:dataTable>
</t:buffer>
<t:buffer into="#{tableScroller}">
<t:dataScroller
...
</t:dataScroller>
</t:buffer>
<h:outputText value="#{tableScroller}" escape="false"/>
<h:outputText value="#{table}" escape="false"/>
<h:outputText value="#{tableScroller}" escape="false"/>
And these codes work perfectly with Tomahawk-1.1.2 and MyFaces-1.1.2. But when I replaced them with Tomahawk-1.1.3-SNAPSHOT and MyFaces-1.1.4-SNAPSHOT, Chinese characters in the data table become DIAMONDS, while letters and digits display fine.
When I remove t:buffer surrounding t:dataTable, Chinese characters return back.
<%-- t:buffer into="#{table}" --%>
<t:dataTable
...
</t:dataTable>
<%-- /t:buffer --%>
<%--t:buffer into="#{tableScroller}" --%>
<t:dataScroller
...
</t:dataScroller>
<%-- /t:buffer --%>
<%--
<h:outputText value="#{tableScroller}" escape="false"/>
<h:outputText value="#{table}" escape="false"/>
<h:outputText value="#{tableScroller}" escape="false"/>
--%>
Is this a known defect of t:buffer? I shall appreciate for any solution.
Zhi