Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/09/2010, 04:11
JuanMi23
 
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