Yes, it uses jquery. If I don't use struts2 ajax, it works properly. But when I use it, I receive the error jquery is not defined.
This code works properly: <%@ page import="ads.web.action.UsuarioAction"%> <%@ taglib uri="http://displaytag.sf.net" prefix="display" %> <% Object result = session.getAttribute( "result" ); //if( result == null ) { UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( "result", ac.getTodosUsuarios() ); } %> <html> <head> <script language='javascript' src="../../src/javascript/jquery.js" type="text/javascript"></script> <script src="../../src/javascript/displayTagAjax.js"> </script> </head> <body> <div id="ajxDspId"> <display:table name="sessionScope.result" pagesize="2" htmlId="dispTable" sort="list"> <display:column property="idUsuario" title="ID" /> <display:column property="nombre" sortable="true"/> <display:column property="mail" sortable="true"/> </display:table> </div> <!--- end display tag --> <script> </script> </body> </html> but not this one: <html> <head> <script src="src/javascript/optiontransferselect.js" type="text/javascript"/> <script language='javascript' src="src/javascript/jquery.js" type="text/javascript"></script> <script src="src/javascript/displayTagAjax.js"> <s:head theme="ajax"/> <link rel="stylesheet" media="all" type="text/css" href="src/css/default.css" /> <script src="src/javascript/stuHover.js" type="text/javascript"></script> </head> <body> CODE TO GO TO THE TABLE PAGE INSIDE THE DIV divContenedor <s:div id="divContenedor" theme="ajax"> <s:actionerror/> <s:actionmessage/> </s:div> </body> > Date: Tue, 9 Sep 2008 04:14:50 -0700 > From: [EMAIL PROTECTED] > Subject: Re: Sorting with displaytag issue due to theme="ajax" > To: user@struts.apache.org > > --- On Tue, 9/9/08, Francisco Exposito wrote: > > But when I reload this page, I receive the error > > "jQuery is not defined" and the error seems to be > > in the line of displayTagAjax.js: > > > > jQuery(function($) { > > changeLinks(); > > }); > > It looks like the Ajax version of displaytag uses jQuery. Are you loading > jQuery? Have you tried asking on a displaytag site/list/forum or wherever > this tag lives? > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ ¡Entra en el Club oficial de Messenger y te enterarás de todas las novedades! http://www.vivelive.com/ilovemessenger