This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

problem with display table pagination and sorting

 
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.
 
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
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!