struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Get single value from a row with displaytag and struts 2
Date Mon, 08 Jun 2015 10:49:45 GMT
> From: Álex Basoa <axisbas@gmail.com>
> To: user@struts.apache.org, 
> Date: 03.06.2015 09:33
> Subject: Get single value from a row with displaytag and struts 2
> 
> i have a table wich works perfect made with struts 2 and displaytag
> 
>         <display:table name="session.listaNotificaciones" 
excludedParams="*"
>                    requestURI="navegarNuevoEnvio.action" 
class="tablacoin"
>                    summary="Listado de Notificaciones" cellspacing="0"
> cellpadding="0"
>                    uid="listaContatosTable">
> 
> 
>         <display:column title="Estado" sortProperty="estado_Nue"
>                                 sortable="false"
> headerClass="sortable" defaultorder="descending"
>                                 style="width:12% ;color:red">
> 
>                     <s:property
> 
> value="%
> {@registradores.utiles.enumerados.EstadoTramite@convertirTexto
> (#attr.listaContatosTable.estado_Nue)}"
> />
> 
>                 </display:column>
> 
> 
>         <display:column title="Archivo"  headerClass="sortable"
> sortable="false" defaultorder="descending"
>                         style="width:12% ;color:black">
>             <s:hidden key="estado"
> value="%{#attr.listaContatosTable.estado_Nue}" />
>             <s:submit id="botonNotificacion" value="Notificación"
>                       cssClass="boton"
> onclick="enviarA('descargarDocumentoNotificacionAcuse.action')"/>
>         </display:column>
> 
> The problem is that i have declared in the action
> 
>     private String estado;
> 
> And i get all values from estado_Nue, but i only need the value wich i 
have
> "clicked"
> 
> Thx for all your help



hi,

not sure if i understand what the problem is. You get all items of a list 
posted when you submit your form? How does the html look like? What form 
elements are generated by display?


regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message