Default Richfaces Jquery not loaded in the page -


i'm facing weird issue. i'm building web application using jsf 1.2 , richfaces 3.3.3. haven't loaded external jquery versions, rather stuck default 1 provided rich faces , ie jquery version 1.3.2. access default jquery using 'jquery' keyword.

i have included few javascript files on top of page contains jquery in it. when remove richfaces components page, looks jquery isnt loaded. on console, see message 'jquery undefined'. when include 'rich:extendeddatatable' tag in page, error vanishes. wierd thing that, error still persists if include 'rich:datatable'. looks jquery loaded in page when use 'rich:extendeddatatable'. put 'rich:extendeddatatable' on page mo reason , render 'false'. i'm not sure how makes sense.

the jsf includes on top of page

 <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.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:a4j="http://richfaces.org/a4j"                             xmlns:rich="http://richfaces.org/rich"                             xmlns:t="http://myfaces.apache.org/tomahawk"                             xmlns:ui="http://java.sun.com/jsf/facelets">     <head>         <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />         <link href="../../styles/bootstrap.min.css" rel="stylesheet" type="text/css" />         <link href="../../styles/stylesheet.css" rel="stylesheet" type="text/css" />         <script src ="first.js" language="javascript"/>         <script src ="second.js" language="javascript"/>         <script src ="validation.js" language="javascript"/>     

the error see on console referenceerror: jquery not defined

what happening here?. wy jquery loaded when include particular rich components. how make usre jquery avaiable on apge bby default though there no rich components loaded in page

richfaces adds import jquery if needs itself. have force richfaces load jquery if don't use richfaces component using jquery.

you can force import of jquery writing this:

<a4j:loadscript src="resource://jquery.js"/> 

if search code, find lot of examples.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -