Foros del Web » Programación para mayores de 30 ;) » Java »

Error en Ordenacion de un listado en hibernate

Estas en el tema de Error en Ordenacion de un listado en hibernate en el foro de Java en Foros del Web. El caso es que tengo mi JSP inicial donde me busca bien los registros. Pero luego cuando le doy a ordenar por alguno de los ...
  #1 (permalink)  
Antiguo 15/09/2010, 04:11
 
Fecha de Ingreso: abril-2007
Mensajes: 54
Antigüedad: 17 años
Puntos: 1
Exclamación Error en Ordenacion de un listado en hibernate

El caso es que tengo mi JSP inicial donde me busca bien los registros. Pero luego cuando le doy a ordenar por alguno de los campos me abre el resultado en otra pantalla sin estilos ni nada.




CODIGO PAGINA JSP

Código J2E:
Ver original
  1. <table width="100%" cellspacing="0" cellpadding="0" align="left" bgcolor="#ededed">
  2.     <tr height="3px">
  3.         <td></td>
  4.     </tr>
  5.     <tr>
  6.         <td width="2px">
  7.             &nbsp;
  8.         </td>
  9.         <td>
  10.             <fwk:vlhroot value="list" url="expVehiclesDetall.do?reqCode=search&" includeParameters="" configName="vlConfig">            
  11.             <table border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
  12.                 <!-- pagination section -->
  13.                 <tr>
  14.                     <td>
  15.                         <fwk:vlhpaging showSummary="true" attributes="align=right"/>
  16.                     </td>
  17.                 </tr>
  18.                 <!-- end of Pagination -->
  19.                 <tr>
  20.                     <td colspan="2" bgcolor="#ffffff">
  21.                         <table width="100%" class="classicLook" cellspacing="0" cellpadding="0">
  22.                             <%
  23.                                 String displayProvider = (request.getAttribute("displayProvider")!=null)?request.getAttribute("displayProvider").toString():"ExportHTML";
  24.                             %>
  25.                             <fwk:vlhrow bean="llista" display="<%=displayProvider%>">
  26.                                 <fwk:vlhattribute name="onmouseover">this.className='selected';</fwk:vlhattribute>
  27.                                 <fwk:vlhattribute name="onmouseout">this.className='zebra0';</fwk:vlhattribute>
  28.                                 <fwk:vlhcolumn titleKey="jsp.expedient.expVehiclesDetallList.numOrdre" property="id.numVehicle" sortable="desc">                        
  29.                                     <fwk:vlhaction url="editExpVehiclesDetall.do?reqCode=search&num_expediente=2007S000005">
  30.                                         <fwk:vlhaddParam name="reqCode" value="edit" temp="false" />
  31.                                         <fwk:vlhaddParam name="id" property="id.numVehicle" temp="false" />
  32.                                         <c:out value="${llista.expVehicles.id.numVehicle}"></c:out>
  33.                                     </fwk:vlhaction>
  34.                                 </fwk:vlhcolumn>
  35.                                 <fwk:vlhcolumn titleKey="jsp.expedient.expVehiclesDetallList.matricula" property="expVehicles.matricula" sortable="desc">
  36.                                     <c:out value="${llista.expVehicles.matricula}" />
  37.                                 </fwk:vlhcolumn>
  38.                                 <fwk:vlhcolumn titleKey="jsp.expedient.expVehiclesDetallList.marca" property="expVehicles.marcaVehByMarca.descripcio" sortable="asc">                    
  39.                                     <c:out value="${llista.expVehicles.marcaVehByMarca.descripcio}" />
  40.                                 </fwk:vlhcolumn>                    
  41.                                 <fwk:vlhcontrols titleKey="jsp.expedient.expVehiclesDetallList.accions">
  42.                                         [
  43.                                     <fwk:vlhaction url="editExpVehiclesDetall.do?reqCode=delete">
  44.                                         <fwk:vlhaddParam name="reqCode" value="delete" temp="false" /> <bean:message key="jsp.expedient.expVehiclesDetallList.delete"/>
  45.                                           <fwk:vlhaddParam name="id" property="id" temp="false" />
  46.                                     </fwk:vlhaction>
  47.                                         ]
  48.                                         [
  49.                                     <fwk:vlhaction url="editExpVehiclesDetall.do?reqCode=edit">
  50.                                         <fwk:vlhaddParam name="reqCode" value="edit" temp="false" /> <bean:message key="jsp.expedient.expVehiclesDetallList.editar"/>
  51.                                           <fwk:vlhaddParam name="id" property="id" temp="false" />
  52.                                     </fwk:vlhaction>
  53.                                         ]

COMO LLAMO A LA JSP
Código J2E:
Ver original
  1. <fwk:tabPanel panelStyleId="tabPanel" contentStyleId="tabContent" currentStyleId="ajaxCurrentTab">
  2.     <fwk:tab caption="pestanya.expedient.dadesBas" baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  3.     <fwk:tab caption="pestanya.expedient.testimonis" baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  4.     <fwk:tab caption="pestanya.expedient.ressenya" baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  5.     <fwk:tab caption="pestanya.expedient.opinioPat" defaultTab='true' baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  6.     <fwk:tab caption="pestanya.expedient.sct" baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  7.     <fwk:tab caption="pestanya.expedient.vehicles" baseUrl="expVehiclesDetall.do?reqCode=searchIni&num_expediente=2007S000005" reloadContent="true"/>
  8.     <fwk:tab caption="pestanya.expedient.foto" baseUrl="expOpinioPatrullaDetall.do?reqCode=iniciTab" reloadContent="true"/>
  9. </fwk:tabPanel>

PD: Siento no haber utilizado el buscador
  #2 (permalink)  
Antiguo 15/09/2010, 04:25
 
Fecha de Ingreso: abril-2007
Mensajes: 54
Antigüedad: 17 años
Puntos: 1
Respuesta: Error en Ordenacion de un listado en hibernate

sabeis por que puede ser?

Etiquetas: hibernate, listado, ordenacion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:10.