1 Reply Latest reply on Jan 1, 2012 6:05 AM by Peter Butkovic

    richfaces 4.1 with jquery problem

    Peter Butkovic Newbie

      hi all,

       

      how can I use richfaces 4.1 with jquery?

       

      I'm trying to show some alert on page load. But it doesn't work for me for some reason.

      I'll post full page so that it's clear.

      Thanks in advance.

       

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:ui="http://java.sun.com/jsf/facelets"

          xmlns:rich="http://richfaces.org/rich"

          xmlns:a4j="http://richfaces.org/a4j">

      <f:view contentType="text/html">

          <h:head>

              <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />

       

              <rich:jQuery />

       

              <script type="text/javascript">

                  jQuery(document).ready(function() {

                      alert('bbb');

                  });

              </script>

       

          </h:head>

          <h:body>

              aaa

          </h:body>

      </f:view>

      </html>