3 Replies Latest reply on Jun 4, 2009 7:11 PM by Nick Belaevski

    richfaces and jQuery

    Kostya Piterskiy Newbie

      Hi!
      I trying use jQuery plugin with jsf page

      <%@ page contentType="text/html;charset=UTF-8" language="java" %>
      <%@include file="/pages/common/taglibs.jsp" %>
      <html>
      <head>
      </head>
      <body>
      <f:view>
       <a4j:loadScript src="/scripts/jquery-1.3.2.js"/>
       <a4j:loadScript src="/scripts/development-bundle/ui/ui.core.js"/>
       <a4j:loadScript src="/scripts/development-bundle/ui/ui.tabs.js"/>
       <script language="JavaScript">
       jQuery(document).ready(function(){
       jQuery("#example > ul").tabs();
       });
      
       </script>
       <div id="example" class="ui-tabs">
       <ul>
      
       <li><a href="#fragment-1"><span>One</span></a></li>
       <li><a href="#fragment-2"><span>Two</span></a></li>
       <li><a href="#fragment-3"><span>Three</span></a></li>
       </ul>
       <div id="fragment-1">
       .....
       </div>
       <div id="fragment-2">
       ....
       </div>
       <div id="fragment-3">
       .......
       </div>
       </div>
      </f:view>
      </body>
      </html>
      

      It's very simple code but it's not work. I don't understand what i doing wrong.
      Thanks!