aspose file tools*
The moose likes JSF and the fly likes Rich Faces Calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rich Faces Calendar" Watch "Rich Faces Calendar" New topic
Author

Rich Faces Calendar

Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Enviro JSF 1.1,RichFaces 3.1.6

I am using a richfaces calendar component

<rich:calendar></rich:calendar> wrote this much code in my jsp and run on server.I got an input box and a calendar icon by the side of it.But I am unable to select values from it(Nothing showing up).I got an error(Javascript error:Calendar undefined)

Any workarounds.

I guess I have to use a calendar bean (as explained in the richfaces component reference).Is that true.Where can I get that java bean,or nothing like that.

Help me to resolve this?
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
I resolved this.

Add these to your web.xml

<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
vish nath
Greenhorn

Joined: Oct 08, 2009
Posts: 3
Hi,

I am also facing similar problem. I have added as you said in context params in web.xml file. Even though for me it is not working. Please advise me. How can I solve this problem.

Thanks & Regards,
Vish
Hatem Alimam
Ranch Hand

Joined: Dec 14, 2008
Posts: 30
The problem is that your Calendar component did not load it's javaScript files normally so this is the solution .

Best regards.


SCJP 5.0, SCWCD 1.4, SCBCD 3.0 with 100 score
vish nath
Greenhorn

Joined: Oct 08, 2009
Posts: 3
Hi Hateem,

Do I need to do any configuration to load Java script files? Please guide me how to load java script file?

Thanks & Regards,
Vish
 
jQuery in Action, 2nd edition
 
subject: Rich Faces Calendar