Jahia 4.0.3 problems with sort in tags

jose alberto g <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hello, I have some problems with sorting in Jahia.
I make a new tag for jahia using her classes.

Using this code to sort I haven't problems but if I
add  this code in my tag the container is show
unsorted.

<%

//-----------------------------------------------------------
	// Manejador de Ordenacion

//-----------------------------------------------------------
	String sortField = "fecha";
	String sortOrder = "desc";
	String sortType  = "normal";

	// Create the sort handler for the container list
"nombre"
	ContainerSorterByContainerDefinition sorter = new
ContainerSorterByContainerDefinition(-1,sortField,nombre,jParams.getEntryLoadRequest(),true);
	// Fuerza a que antes de la comparacion se convierta
el valor del campo a su representacion en numero
(long)
	if (sortType.equals("numeric")) {
sorter.setNumberOrdering(true); }
	if (!sortOrder.equals("asc")) {
sorter.setDescOrdering(); }
	// Almacena el manejador de ordenacion en el objeto
de respuesta.
	// Esto sera usado despues por el container list
loader.
	request.setAttribute(nombre + "_sort_handler",
sorter);
%>



	
	
		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.