This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes Issue with hx:inputHelperDatePicker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Issue with hx:inputHelperDatePicker" Watch "Issue with hx:inputHelperDatePicker" New topic
Author

Issue with hx:inputHelperDatePicker

vaithee sub
Greenhorn

Joined: Mar 12, 2004
Posts: 20
Hello,
I am using the inputHelperDatePicker component in my application deployed to WAS 5.1. I get a hava script error which says hX_1 is undefined and the calender icon does not show up. On research, I found that the hx_1 is the java script reference to the calender object.I don't know how to fix this error. Help on this will be greatly appreciated.
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
I haven't used WAS5.1 and its JSF component. but check if the corresponding js file or script functions are being loaded.
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Originally posted by vaithee sub:
Hello,
I am using the inputHelperDatePicker component in my application deployed to WAS 5.1. I get a hava script error which says hX_1 is undefined and the calender icon does not show up. On research, I found that the hx_1 is the java script reference to the calender object.I don't know how to fix this error. Help on this will be greatly appreciated.


Have you checked that all the necessary Libraries are included in your deployment jar. I don't think WAS5.1 has all the necessary JARS to run JSF and you would have to include it in your Jar file
vaithee sub
Greenhorn

Joined: Mar 12, 2004
Posts: 20
I figured out what the problem is. The problem was that JSReouruce Servlet has a url .ibmjsfres/* and siteminder did not allow that. The issue was fixed once we added this as an exception.
Just to give you a backfround, the classes in ibm-faces.jar converts the tag to html tag lib and java script. So the html source code looks like this
<script type="text/JavaScript" language="JavaScript" src="/edcrslftpa/.ibmjsfres/hxclient_v1.js"></script>
<script type="text/JavaScript" language="JavaScript">
So the url ="/edcrslftpa/.ibmjsfres/hxclient_v1.js should be accessable and permitted inorder to display the calender.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with hx:inputHelperDatePicker
 
Similar Threads
strange error while compiling
calendar box
How to obtain week of year for any given date
onchange event problem
problem getting the selected date of webui:calender in javascript