Saturday, December 1, 2012

How to verify jQuery in Richfaces 4 is working

The purpose of this post is to verify that the jQuery bundled in Richfaces is working.

Steps:
1. Add the following script into the page
2. add the following line of code into the page.
3. make sure <h:head /> in the page. it must be <h:head /> instead of the html <head />, so that Richfaces is dynamically adding the required script files into the page.
4. add at least 1 Richfaces component into the page to ensure Richfaces scripts are loaded into the page.



complete source:

4 comments:

  1. This does not work for my case at all. whatever you put there there is not alert appeared.

    ReplyDelete
    Replies
    1. If the alert does not appear, most likely ur jQuery is not working fine.
      could u pls paste ur code here?

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hey buddies, such a marvelous blog you have made I’m surprised to read such informative stuf
    UX design studio

    ReplyDelete

LinkWithin

Related Posts Plugin for WordPress, Blogger...