|
Hi Jose, At first glance, your syntax seems correct. Without the rest of your JSP
code, it’s hard to tell what exactly might be the source of the
behaviour. Have you tried your code on Jahia 4.0.6 ? If it works, then I suggest
you upgrade since version 4.0.3 is rather dated. Note also that the following line is redundant: if (sortType.equals("numeric")) {sorter.setNumberOrdering(true);
} Hope this helps, Marc -----Original Message----- 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 (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 |
- Jahia 4.0.3 addition of field bug CodeMonkey
- Re: Jahia 4.0.3 addition of field bug Serge Huber
- Re: Jahia 4.0.3 addition of field bug CodeMonkey
- Re: Jahia 4.0.3 addition of field bug Stéphane Croisier
- Jahia 4.0.3 problems with sort in tags jose alberto g
- RE: Jahia 4.0.3 problems with sort in ... Marc Cardle
