2012-04-30 107 views
0

嗨,我遇到了問題,因爲當我在Chrome和Mozilla中執行我的代碼時,它是好的!但在IE-8中,它不能正確執行。說dialog.show沒有定義IE-8與Primefaces兼容的問題?

<p:calendar value="#{bean.method}" mode="inline"> 
<p:ajax update="@all" event="dateSelect" listener="#{Bean.method1}" oncomplete="dialog.show()" /> 

<p:schedule id="dialog" initialDate="#{Bean.method3}"/> 

表示錯誤。 當我點擊日期日曆時,計劃中的日期正在顯示。 但在IE-8中,當我點擊日曆和日程安排正在消失的日期時,當我刷新頁面時,我發現我選擇的日期已被選中,並且我還發現了一個錯誤,如上所述..(對不起,關於該問題if什麼是整齊的解釋:))

+0

發表您的 Daniel

+0

你看,我已經在schedule..i使用的ID覺得這是不工作 – Santosh

+0

是的,我試過一個,但沒有use.instead我已經給前 ..so對於多選我已更改update =」@ all「 – Santosh

回答

0

嘗試加入widgetVar="myschedule"<p:schedule,改變

oncomplete="dialog.show()" 

oncomplete="myschedule.update();" 
0

嘗試把這個在XHTML文件的第一行錯。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
1

我有很多與IE和primefaces組件無法工作的問題,直到我有一個解決方案一次性解決了所有問題。我意識到,如果我把下面的代碼作爲頭部的第一行,一切都像魅力一樣。

<?xml version='1.0' encoding='UTF-8' ?> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:p="http://primefaces.org/ui" 
      xmlns:f="http://java.sun.com/jsf/core"> 
     <h:head> 

     <f:facet name="first"> 
      <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
     <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> 
     </f:facet> 
     // other head code goes here 

     </h:head> 
+0

爲我工作的Primefaces 4.0 – mostar