如何设置p:面板组件的标题样式?我想设置panel_header div的高度.
<p:panel id="panel"
toggleSpeed="500" toggleable="true">
<f:facet name="header" >
<p:outputPanel style="float:left;">
<p:commandButton process="@this" id="new"
oncomplete="dialog.show();" icon="ui-icon-plus" />
<p:spacer width="15px;" />
</p:outputPanel>
<h:outputLabel value="Title" />
</f:facet>
</p:panel>
Run Code Online (Sandbox Code Playgroud) 有没有办法在使用intellij idea编码xhtml(jsf)文件时将消息字符串提取到资源包文件中?
我想通过使用 intellij idea 的重构选项添加消息属性。例如; 我的 xhtml 文件中有一个类似“Hello”的字符串。当我选择它时,我想自动将该字符串提取到我的捆绑文件中。
我想通过使用<ui:repeat>和<p:dialog>使用创建动态对话框窗口<ui:include>.但是当我尝试下面的时候有一个例外.
main.xhtml
<p:outputPanel id="windowsPanel" layout="block" style="width:100%;">
<p:outputPanel rendered="#{mainView.dynamicWindows ne null}">
<ui:repeat var="item" value="#{mainView.dynamicWindows}">
<p:dialog binding="#{item.dialog}">
<ui:include src="#{item.includedWindowPath}" />
</p:dialog>
</ui:repeat>
</p:outputPanel>
</p:outputPanel>
Run Code Online (Sandbox Code Playgroud)
MainView.java
@ManagedBean(name = "mainView")
@SessionScoped
public class MainView extends BaseView {
private static final long serialVersionUID = -6291834350102049312L;
private List<Window> dynamicWindows;
@PostConstruct
public void init() {
fillWindows();
}
private void fillWindows() {
dynamicWindows = new ArrayList<Window>();
for (int i = 0; i < 3; i++) {
Window window = new Window("Header " …Run Code Online (Sandbox Code Playgroud)