• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Using javascript with JSF

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically, I am converting an html page that has a javascript menu to JSF. I am not sure how to use the javascript menu I have, in conjunction with JSF. Any help would be greatly appreciated. Thanks.

Daniel
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Daniel,
Try using the JsCookMenu, this is a cool jsf component, http://jscook.yuanheng.org/JSCookMenu/, also you might want to try the myfaces libiary from apache.
Or you could just use your JavaScript menu as it is, though you might encounter a few changes in getting reference to the elements ( if needed ), so you will have to change a statement like
document.getElementById("elementId"); // normal HTML
document.getElementById("formname:elementId"); // incase of JSF,
so with a few modifications to your existing script, you should be good to go.

Good luck.

Allen.
[ January 30, 2007: Message edited by: Allen Mathew Williams ]
 
Daniel Conner
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! That was helpful. All done. :-)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic