The refresh feature uses DynaFaces.fireAjaxTransaction under the covers.
However, the issue you're having seems to be related to the request
character encoding -- see the e-mail archives for
users_at_jsf-extensions.dev.java.net. Their suggestion is to set the
character encoding for the response.
public void setEncoding(FacesContext context) {
context.getExternalContext().setResponseCharacterEncoding("UTF-8");
FYI... Although the browser may have encoded characters, the server
still may not decode them correctly. I have observed that browsers do
not make the encoding known in the request; therefore, the request
encoding most likely has not been set. If the request encoding is not
set, the locale of the server is used by default. And once the first
parameter is retrieved, the encoding cannot be set again -- at least,
not on Tomcat.
Dan
Aluisio Aires Aguiar wrote:
> Hi,
>
> I'm using netbeans6.0 and here is my problem.
> My project uses Tomcat 6.0.14, MySql 5.0 and visual
> web JSF. I live in Brazil, so the default language is
> Portuguese and charset is ISO-8859-1. This
> configuration allows me to use accetuation.
> When I update all the page, all data is updated
> correctly, with the correct accetuation. However, when
> I update only a specific component, like a dropdown
> list or a textbox, using javascript funciton
> "refresh()", characters with accentuation in this
> component are replaced by "?" in firefox or, when I
> use IE, it gives me a javascript error.
> I also tryed to use "DynaFaces.fireAjaxTransaction()",
> but it gives me the same error.
>
> Do you know a way that works using single component
> update and languages with accentuation?
>
> Thanks!
>
>
> Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
> http://br.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>