2012-11-18 21 views
2

我想在我的xhtml網站上顯示豐富的日曆。這是我的代碼。我不明白爲什麼它不工作(該代碼不顯示日曆)。 我沒有得到任何錯誤,日曆沒有出現。爲什麼我的富人:日曆不工作?

<?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:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:rich="http://richfaces.org/rich" 
> 

<f:view> 
    <h:head> 
     <title>Title</title> 
    </h:head> 
    <h:body> 
     <h:panelGrid columns="2" styleClass="center"> 
      <h:outputText value="Date from" /> 
      <rich:calendar id="calendar_from" datePattern="d/M/yy HH:mm" value="18/11/12 09:00" popup="true" locale="de/DE" /> 
     </h:panelGrid> 
    </h:body> 
</f:view> 
</html> 
+0

嘗試2包住它裏面^ h:形成的? – Daniel

+0

我已經在h:form中試過了,沒有任何變化。 –

+1

你在屏幕上看到的是classpath中的richfaces jar嗎?服務器/瀏覽器中的任何錯誤? – Daniel

回答

2

確保RichFaces的罐子在classpath ...

+0

是的,這回答了我的問題,thx –

+0

不客氣。 – Daniel

+1

我的build.xml中有一個錯誤的條目。這是正確的:'' –