struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lalchandra Rampersaud" <lrampers...@ceis.cujae.edu.cu>
Subject Re: Display tag and AJAX
Date Fri, 06 Jun 2008 02:48:14 GMT
yes, you can update a display table alone with an ajax call. 

this is one done with ajaxanywhere:

<aa:zone name="bossTechnicalCompetitions">
<display:table name="workers"
                   decorator="displaytagClasses.DisplayRadio"
                   class="displaytag">

                   <display:column property="projWorker" title=""
                    style="width: 10px" />
                   <display:column property="lastName"
                    title="Primer Apellido" />
                   <display:column property="surName"
                    title="Segundo Apellido" />
                   <display:column property="workerName"
                    title="Nombre(s)" />
                   <display:column property="lester" title="Detalles" />

                   <display:footer>
                    <tr class="row_color">
                     <td style="width: 10px">
                      &nbsp;
                     </td>
                     <td>
                      &nbsp;
                     </td>
                     <td>
                      &nbsp;
                     </td>
                     <td>
                      &nbsp;
                     </td>
                     <td>
                      &nbsp;
                     </td>
                    </tr>
                    <tr>
                     <td colspan="4" class="headerTable" align="center">

                      <DIV align="center" />
                       <c:out
                        value="${sessionScope.projWorkerPaginator.pageIndexText}" />
                      </DIV>
                     </td>
                    </tr>
                   </display:footer>
                  </display:table>
</aa:zone>



Saludos
Lalchandra Rampersaud
------------
Carpe diem


----- Original Message ----- 
From: "Arunkumar Balasubramanian" <arun-82@hotmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, June 04, 2008 6:41 PM
Subject: Display tag and AJAX



  Can we update the display:table with an ajax call? Here is what I was expecting to do.
 
 - There are different radio buttons (each will have different status of results) - Depending
on the selection, the display:table has to update the rows. - There display:table headers
dosen't change and the values inside the display:rable    changes based on the selections.
 
 I was trying to do the following.
 
 - Make an AJAX call when the user clicks on radio buttons, so that only the display:table
   gets refreshed and not the entire page. - Based on the selections, the display:table will
update the results.
 
 If someone was able to provide the reference for how to perform the above task it would be
great.
 
 Thanks in advance.
_________________________________________________________________
It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger.
Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow
Mime
View raw message