This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes validation of two calendars Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "validation of two calendars" Watch "validation of two calendars" New topic
Author

validation of two calendars

ravi van
Greenhorn

Joined: Jul 20, 2009
Posts: 1
hi i have two jsf calendars.how to validate these two calendars.dates should not be null.dates should not be greater than current date.from date should not be greater than to date.canany one help me.im using jsf1.1.

<t:inputCalendar align="right" id="fromDate" maxlength="10" size="12" value="#{testbean.fromdate}" monthYearRowClass="monthYearRowClass" binding="#{testbean.fromdateComp}"

weekRowClass="weekRowClass" dayCellClass="dayCellClass" currentDayCellClass="currentDayCellClass" popupTodayString="Today is :"

popupWeekString="Wk" renderAsPopup="true" renderPopupButtonAsImage="true" popupDateFormat="dd/MM/yyyy"

alt="Calendar" title="Calendar"



t:inputCalendar

h:message for="fromDate"

t:inputCalendar id="ToDate" maxlength="10" value="#{testbean.todate}" monthYearRowClass="monthYearRowClass" binding="#{testbean.todateComp}"

weekRowClass="weekRowClass" dayCellClass="dayCellClass" currentDayCellClass="currentDayCellClass"

popupTodayString="Today is :" popupWeekString="Wk" renderAsPopup="true" renderPopupButtonAsImage="true"

popupDateFormat="dd/MM/yyyy" alt="Calendar" title="Calendar">



t:inputCalendar

h:message for="ToDateā€
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: validation of two calendars
 
Similar Threads
t:calender error
Need help with TOMAHAWK Calendar t:inputCalendar
pls help in t:calander i need it badly pls help
t:div, s;fieldset and t::inputCalendar confilict
JSF- tomahawk calander problem