Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using popup Calendar in JSF

843842Oct 26 2006 — edited Jan 3 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2008
Added on Oct 26 2006
11 comments
719 views