PrimeFaces.cw不显示对话框内容

时间:2017-08-01 12:07:48

标签: jsf primefaces

当我使用PrimeFaces.cw ..

PrimeFaces.cw("Dialog","checkoutDlg",{
  id:"j_idt115",
  draggable:false,
  resizable:false,
  modal:true,
  width:"auto",
  maxWidth: „1083“,
  showEffect:"blind",
  hideEffect:"blind",
  closeOnEscape:true,
  fitViewport:true,
  onShow:function(){
    styleDialogCheckoutBtn()
   }
});

..要显示一个对话框,我只看到灯箱,但内容没有出现。

 <p:commandButton id="btnCheckOut" styleClass="btn btn-block btn-success" value="Add to card" process="@this"  
 oncomplete="PrimeFaces.cw('Dialog','checkoutDlg',{ id:'checkoutDlg', draggable:false, resizable:false, modal:true, width:'auto', maxWidth: '1083', showEffect:'blind', hideEffect:'blind', closeOnEscape:true, fitViewport:true, onShow:function(){styleDialogCheckoutBtn()} }); PF('checkoutDlg').initPosition(); PF('checkoutDlg').show(); return false;"/>

对话内容:

<p:dialog widgetVar="checkoutDlg" id="checkoutDlg">

<div class="cart-items">
    <div class="row-fluid cart-head-row clearfix">
        <div class="col-xs-4">
            <p class="text-bold">#{msg['dashboard.cart.checkout.service']}</p>
        </div>
        <div class="col-xs-4">
            <p class="text-bold">#{msg['dashboard.cart.checkout.details']}</p>
        </div>
        <div class="col-xs-3 text-right">
            <p class="text-bold">#{msg['dashboard.cart.checkout.price']}</p>
        </div>
        <div class="col-xs-1"></div>
        </div>
</div>

</p:dialog>

有谁能告诉我如何在灯箱中显示对话框的内容?

0 个答案:

没有答案