richfaces

Customizing RichFaces calendar

Here is example automatic date changing in rich:calendar component. We add one month to user selected date

<rich:calendar  showWeekDaysBar="false" showFooter="false" 
datePattern="MM/yyyy" required="true" id="startDate"
ondateselected="if(event.rich.date!=null){event.rich.component.selectDate(event.rich.date.setMonth(event.rich.date.getMonth()+1));}"
requiredMessage="#{msgs.simulatedTabReportingStartMonthisRequed}"
value="#{simulationReportTabController.startDate}" >
</rich:calendar>

Import RF sources as eclipse projects in JBoss Tools

    To import RF as eclipse project into workspace you need to do following steps
  • Download RF from SVN repository
    svn co http://anonsvn.jboss.org/repos/richfaces/root 
  • Then install library
    cd root
    mvn install -Dmaven.test.skip=true -P components,trunk 
  • Then add sources and make projects eclipse projects
    mvn eclipse:eclipse -Dmaven.test.skip=true -P components,trunk 
  • Import projects from root folder into eclipse
Syndicate content