• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

problem with display table pagination and sorting

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I am facing some issues while implementing display table pagination and sorting.I have aroung 7 columns in display table out of which 2 columns are editable(User can enter through text box).Display table page size is 5.The problem here is, after enetering some values in text box and clicking next ,it will display next 5 records.While I am clicking previous, the values which I have entered for the first 5 records doesn't exist(means blank text box).Any help is appreciated.
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the code of how you made the textbox editable with the dynamic values sitting on the textbox..

Let me also how do we need to get the modified value in the action side..
 
Rajesh murthy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check the below code <display:table
name="${detailsForm.unConfAcctList}" cellspacing="1"
class="displaytag" pagesize="5" sort="list"
requestURI="/fwdSpinoff.do"
defaultorder="descending" id="unConfAcct" excludedParams="*">

<display:setProperty name="css.tr.even" value="TDBGlightgray" />
<display:setProperty name="css.tr.odd" value="TDBGgray" />
<td width="3%"><display:column title="Select"
class="TxtVer10black" headerClass="TH.width40">

<html:multibox title="Select safekeeping account"
property="unconfCheckBox" styleId="chkBox">
<bean:write name="unConfAcct_rowNum" />
</html:multibox>

</display:column></td>

<td width="3%"><display:column property="acctNum"
title="Safekeeping A/C" sortable="true"
sortName="safekeepingAcctNum" class="TxtVer10black"
headerClass="TH.width40" /></td>

<td width="3%"><display:column
property="availableShareBal" title="Available Balance"
sortable="true" sortName="availableShareBal"
class="TxtVer10black" headerClass="TH.width40" /></td>

<td width="3%"><display:column title="New Asset Shares" scope="session"
sortable="true" sortName="newShareQuantity"
class="TxtVer10black" headerClass="TH.width40">

<ca:text property="newShareQuantity"
value="" styleId="${unConfAcct_rowNum}"
size="40"
onchange="javascript:getValue(${unConfAcct_rowNum},'unconfCheckBox')"/>


</display:column></td>

<td width="3%"><display:column title="Cash" scope="session"
sortable="true" sortName="cash" class="TxtVer10black"
headerClass="TH.width40">

<ca:text property="cash" value="${unConfAcct.drCr}" styleId="cashvalue${unConfAcct_rowNum}"
size="40"
onchange="javascript:getCash(${unConfAcct_rowNum},'unconfCheckBox')" />
</display:column></td>

<td width="3%"><display:column property="reconcileStatus"
title="Reconciliation Status" sortable="true"
sortName="reconcileStatus" class="TxtVer10black"
headerClass="TH.width40" /></td>

<td width="3%"><display:column property="status"
title="Status" sortable="true" sortName="caStatus"
class="TxtVer10black" headerClass="TH.width40" /></td>
</display:table>
 
Rajesh murthy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
does any body help
 
What's gotten into you? Could it be this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic