小编ogo*_*gok的帖子

更改面板组件的primefaces标题样式

如何设置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)

css jsf facelets primefaces

5
推荐指数
1
解决办法
3万
查看次数

如何使用intellij idea从xhtml文件中提取字符串以资源包

有没有办法在使用intellij idea编码xhtml(jsf)文件时将消息字符串提取到资源包文件中?

我想通过使用 intellij idea 的重构选项添加消息属性。例如; 我的 xhtml 文件中有一个类似“Hello”的字符串。当我选择它时,我想自动将该字符串提取到我的捆绑文件中。

xhtml jsf properties resourcebundle intellij-idea

5
推荐指数
0
解决办法
121
查看次数

使用动态ui:include in ui:在NullPointerException中重复结果

我想通过使用<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)

jsf facelets uirepeat uiinclude

1
推荐指数
1
解决办法
7440
查看次数