1 Reply Latest reply on Jun 11, 2010 10:33 PM by karfei00

    Components failed to render in spring hotel booking app

      Hi all,

       

      i'm trying to integrate richfaces into spring-faces hotel booking application, followed all necessary steps mentioned in chapter 3 dev guide, but still richfaces components failed to render , instead of showing a calendar(rich:calendar), i got the CDATA codes as below

       

      Richfaces.Calendar.addLocale('en_US', {'weekDayLabels':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] ,'weekDayLabelsShort':['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] ,'monthLabels':['January','February','March','April','May','June','July','August','September','October','November','December'] ,'monthLabelsShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] ,'minDaysInFirstWeek':1,'firstWeekDay':0} );

       

      any idea? thanks!

       

       

       

       

        • 1. Re: Components failed to render in spring hotel booking app

          Solved by binding richfaces filter with Spring MVC servlet in web.xml

           

          <filter-mapping>
          <filter-name>richfaces</filter-name>
          <!-- <servlet-name>Faces Servlet</servlet-name> normal JSF servlet-->
          <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> <!-- spring mvc servlet -->
          <dispatcher>REQUEST</dispatcher>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>INCLUDE</dispatcher>
          </filter-mapping>