我在String变量中有一些文本,其中包含回车符和新行\r\n.
text = "Text1\r\nText2\r\nText3";
Run Code Online (Sandbox Code Playgroud)
我用它来呈现它<h:outputtext>.
<h:outputText value="#{bean.text}" />
Run Code Online (Sandbox Code Playgroud)
但它无法识别新的行字符,并在webbrowser中显示如下.
Text1 Text2 Text3
为什么不<h:outputText>打破\n新线?
我该怎么办?我一定要更换\n有<br />?
我其实有两个问题:
我甚至不知道它是否真的可能,但我非常感谢你的帮助!
为您提供信息:主要问题是很多人在同一个网络驱动器中使用相同的Access,因此当我需要更改它时,我必须全力以赴,但我永远不知道谁在实际使用它.
我正在使用primefaces 3.5,我的表单中有一个DataTable组件.
当我尝试使用像这个 primefaces展示的过滤器时,我收到此警告消息:
WARNING: DataTable j_idt7:j_idt8:someList has filtering enabled but no filteredValue model reference is defined, for backward compatibility falling back to page viewstate method to keep filteredValue. It is highly suggested to use filtering with a filteredValue model reference as viewstate method is deprecated and will be removed in future.
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?