primefaces 3.3对话框不适用于jquery 1.8

时间:2013-04-03 09:08:48

标签: jquery jsf-2 primefaces dialog

我使用的是primefaces 3.3。我有一个模态对话框,之前工作正常,但是在我包含来自第三方的头文件后它没有工作。我意识到这是jquery问题,但还没有找到解决方案。

dialog.xhtml

<ui:include src="header.html" />

<p:commandButton id="modalDialogButton" value="Modal" onclick="dlg2.show();" type="button"/>  

<p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg2" modal="true" height="100">  
  <h:outputText value="This is a Modal Dialog." />  
</p:dialog>

了header.html

<!DOCTYPE html>
  <head></head>
  <body>
    header page.
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
  </body>
</html>

如果我删除

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>"

然后我的对话框工作正常..但不幸的是我不允许编辑header.html,任何人都知道如何解决它?谢谢..

0 个答案:

没有答案