【发布时间】:2012-10-23 19:33:57
【问题描述】:
我已经开始使用 PrimeFaces p:editor 进行文本输入,而且大部分情况下我对它的工作方式非常满意。但是文档指出,它所基于的 CKEditor 并未插入 ThemeRoller 框架,因此组件尺寸不会自动调整。
例如:
<h:panelGrid columns="2">
(stuff)
<h:outputLabel value="Content:" />
<p:editor id="editDoc" widgetVar="editorDoc"
value="#{editDocument.text}"
style="width: 700px"
/>
(more stuff)
</h:panelGrid>
我希望 p:editor 扩展到 h:panelGrid 呈现的表格的宽度。然而,我没有尝试过任何工作。有什么建议吗?
更新:
我应该注意到 p:editor 标签不注意 style 属性。相反,它有一个 width 属性和一个 height 属性,它们的工作方式与 CSS 参数的工作方式不同。例如 width="100%" 是一个错误。
【问题讨论】:
标签: jsf-2 primefaces