Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java &;nbsp;转换为Â;在文本框和编辑器中使用primefaces 5.3_Java_Jsf_Primefaces_Xhtml - Fatal编程技术网

Java &;nbsp;转换为Â;在文本框和编辑器中使用primefaces 5.3

Java &;nbsp;转换为Â;在文本框和编辑器中使用primefaces 5.3,java,jsf,primefaces,xhtml,Java,Jsf,Primefaces,Xhtml,我使用primefaces编辑器在第一页加载时显示一些包含的文本,它会正确显示,但如果用户按下后退按钮,所有都会转换为。我试着把下面的元标签放在页面上 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> 我还尝试将文本放在文本框中,这些文本框也会显示相同的错误 primefaces的版本是5.3 <p:editor id="testProcedure" value="#{app.edit

我使用primefaces编辑器在第一页加载时显示一些包含
的文本,它会正确显示,但如果用户按下后退按钮,所有
都会转换为
。我试着把下面的元标签放在页面上

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

我还尝试将文本放在文本框中,这些文本框也会显示相同的错误

primefaces的版本是5.3

<p:editor id="testProcedure" value="#{app.editText}" controls="underline bold italic" style="width:1016px;margin-left:10px;border:1px solid grey;"></p:editor>

如果将commandButton与submit类型一起使用,则会发生这种情况。但是我不能删除类型submit,因为没有它我的数据不能完全提交

也许可以尝试包装所有的
标签:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <f:view contentType="text/html" encoding="UTF-8">
        <h:head>
            <title>Facelet Title</title>
        </h:head>
        <h:body>
            Hello from Facelets
        </h:body>
    </f:view>
</html>

Facelet标题
Facelets的你好

它不起作用请说明您认为这可以解决问题的原因。在您测试过的所有浏览器中都是这样吗?可以将浏览器配置为覆盖它们从页面接收到的字符集信息。是的,所有浏览器都是如此