This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!