• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

struts and display tag

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on an application that uses Display Tag to render tables. In some of the tables, I am using the Struts tag "multibox" to render a list of options. I am having a problem with the checkboxs not holding the values after clicking the next page on the table.

Let me explain. Form example, if there are 100 records and the <pagesize> attribute -in the display tag decleration- set to "10", then there are 10 records shown at a time. When the user click on the little arrow on the top of the table, the table check out the next ten records.

Now, if I have a column of check boxes, when a user check some boxes and then click next arrow - to choose from the next values- the previous selection disappears.

How can I save the user selections?
Her are a snipet of the code from the JSP page

<display:table name="metadataList" export="true" id="row" requestURI="/publish.do?action=preExportSelect" pagesize="10" class="display_tag">

<bean define name="row" property="metadataId" id="metadataId"/>
<display:column sortable="false" title="Select" media="html">
<html:multibox name="PublishingForm" property="selectedMetadataIds" value="<%= String.valueOf(metadataId) %>" />
</display:column>
</display:table>
 
suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please reply me...

If I un select any check boxes, those are not refelcting in my action class and JSP remains as it is......
 
eat bricks! HA! And here's another one! And a tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic