Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with display table pagination and sorting

 
Rajesh murthy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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.
 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
does any body help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic