• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

validation of two calendars

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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ā€
 
reply
    Bookmark Topic Watch Topic
  • New Topic