using popup Calendar in JSF
843842Oct 26 2006 — edited Jan 3 2008Hi,
I m new to JSF...
I have 2 date fields in my jsf page.
I want to make them as JSF input calendar components... And The Calendar should be a popup...
How to do this...
I am pasting my code here...
Thanks in advance..
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld" prefix="x" %>
<f:loadBundle basename="Messages" var="msg"/>
<f:view>
<div align="center">
<h:form>
<br>
<br>
<h:outputText styleClass="portlet-font" value="#{msg.messageToUser}"/>
<br>
<br>
<br>
<h:panelGrid columns="2">
<h:outputText styleClass="portlet-font" value="Enter the start date (dd/mm/yyyy):"/>
<h:inputText id="startDate" value="#{transactionHistoryBean.startDate}" required="true">
<f:convertDateTime pattern="dd/MM/yyyy" />
</h:inputText><h:message for="startDate" />
</h:panelGrid>
<h:panelGrid columns="2">
<h:outputText styleClass="portlet-font" value="Enter the end date (dd/mm/yyyy):"/>
<h:inputText id="endDate" value="#{transactionHistoryBean.endDate}" required="true">
<f:convertDateTime pattern="dd/MM/yyyy" />
</h:inputText><h:message for="endDate" />
</h:panelGrid>
<h:commandButton action="#{transactionHistoryBean.getTransactionHistoryDetails}" value="Transaction History" />
</h:form>
</div>
</f:view>
Message was edited by:
JSFLearner