This content has been marked as final. 
    
Show                 7 replies
    
- 
        1. Re: Create rich:calendar programmaticallynbelaevski Mar 25, 2009 8:09 AM (in response to allanjun)Hello, 
 Your code is ok. When do these exception happen?
- 
        2. Re: Create rich:calendar programmaticallyilya_shaikovsky Mar 25, 2009 9:30 AM (in response to allanjun)could be classloading issue. You using EAR or WAR? Where RF libs are placed? 
- 
        3. Re: Create rich:calendar programmaticallyallanjun Mar 25, 2009 6:06 PM (in response to allanjun)"ilya_shaikovsky" wrote: 
 could be classloading issue. You using EAR or WAR? Where RF libs are placed?
 I'm using EAR, and have the 3.3.0.GA included in there. And had those libs in war/web-inf/lib again.
 The exception raises when the page was being rendered.
- 
        4. Re: Create rich:calendar programmaticallynbelaevski Mar 25, 2009 6:12 PM (in response to allanjun)EAR, put: 
 richfaces-api in EAR\lib\*
 richfaces-impl, richfaces-ui in EAR\WAR\WEB-INF\lib\*
- 
        5. Re: Create rich:calendar programmaticallyallanjun Mar 25, 2009 6:50 PM (in response to allanjun)"nbelaevski" wrote: 
 EAR, put:
 richfaces-api in EAR\lib\*
 richfaces-impl, richfaces-ui in EAR\WAR\WEB-INF\lib\*
 But my war project only contains web pages, java classes are in a ejb jar project, therefore, i have to put all 3 RF libs in EAR, and included them again in war\web-inf\lib.
- 
        6. Re: Create rich:calendar programmaticallynbelaevski Mar 25, 2009 10:57 PM (in response to allanjun)You should put classes using components into WAR. Another solution - work through generic JSF API, without using UICalendar/HtmlCalendar: use Application#createComponent() to instantiate component and UIComponent#getAttributes() to set attributes. 
- 
        7. Re: Create rich:calendar programmaticallyallanjun Mar 26, 2009 2:30 AM (in response to allanjun)"nbelaevski" wrote: 
 You should put classes using components into WAR. Another solution - work through generic JSF API, without using UICalendar/HtmlCalendar: use Application#createComponent() to instantiate component and UIComponent#getAttributes() to set attributes.
 Thanks nbelaevski. It worked within WAR, but using generic JSF API didn't help.
 
     
    