Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with hx:inputHelperDatePicker

 
vaithee sub
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic