我想在我的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>
嘗試2包住它裏面^ h:形成的? – Daniel
我已經在h:form中試過了,沒有任何變化。 –
你在屏幕上看到的是classpath中的richfaces jar嗎?服務器/瀏覽器中的任何錯誤? – Daniel