相关疑难解决方法(0)

Primefaces - AjaxStatus - Dialog位于叠加层后面

在此输入图像描述

我检查了z-index,但Dialog z-index高于overlay的div.这是正确的.

在展示中正常工作.

你能帮我解决这个问题吗?

ajax overlay dialog primefaces

10
推荐指数
2
解决办法
9772
查看次数

适当构造Primefaces对话框

我对Primefaces 3对话框的构造感到困惑.

我在SO中看到有这种模式的问题.表单在对话框之外.

<h:form>
  <p:dialog id="dialog" modal="true" widgetVar="dlg">
  </p:dialog>
</h:form>
Run Code Online (Sandbox Code Playgroud)

但其他问题有这个.

<p:dialog id="dialog" modal="true" widgetVar="dlg">
    <h:form>      
    </h:form>
</p:dialog>
Run Code Online (Sandbox Code Playgroud)

Primefaces展示了http://www.primefaces.org/showcase/ui/dialogLogin.jsf赞成后者.

如果有任何正当理由使用其中一个,我会感到困惑吗?

谢谢

primefaces

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

p:commandbutton action在p:dialog中不起作用

我有ap:对话框,里面有一个面板.问题是"保存"按钮的操作方法不起作用.它甚至不调用该方法.我可以达到方法def.使用ctrl + lm,因此方法名称没有问题.

<h:body>
    <h:form id="createAppUserForm" prependId="false">
      ....
      <p:dialog id="newRoleDialogId"
                  header="Add New Role"
                  resizable="true"
                  draggable="true"
                  widgetVar="newRoleDetailsDialog"  
                  appendToBody="true"
                  >
            <p:panel id="newRoleDialogPanel">
                <p:panelGrid id="newRoleDialogPanelGrid" columns="2" style="width: 100%" styleClass="panelGridWithoutBorder">
                    <h:outputText value="Role Name :"/>
                    <p:inputText value="#{createAppUserController.selectedRole.name}"/>
                    <h:outputText value="Role Desc :"/>
                    <p:inputText value="#{createAppUserController.selectedRole.description}"/>
                </p:panelGrid>
                <center>
                    <p:commandButton value="Save"
                                     update="roleListDataTable newRoleDialogPanelGrid growlCreateAppUser"
                                     oncomplete="if (!args.validationFailed) newRoleDetailsDialog.hide()"                                     
                                     action="#{createAppUserController.saveNewRole()}"/>
                    <p:commandButton value="Cancel"                                         
                                     immediate="true"
                                     onclick="newRoleDetailsDialog.hide()" />
                </center>
            </p:panel>
        </p:dialog>
       </h:form>
    </h:body>
Run Code Online (Sandbox Code Playgroud)

jsf dialog primefaces commandbutton

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

primefaces ×3

dialog ×2

ajax ×1

commandbutton ×1

jsf ×1

overlay ×1