jquery/datatable goes back to first page on reload

2,555 views
Skip to first unread message

newbie

unread,
Jun 26, 2013, 9:11:18 AM6/26/13
to tapestry...@googlegroups.com
Hi,
My jquery/datatable is in a zone. It has a column with eventlinks. It has many records, thus many pages. If I press on an eventlink on page 5 for example, and reload the datatable, it will go back to page 1. I want it to stay at the current page, page 5. The solution I found for jquery is "bStateSave": true. I tried putting that into my JSONObject getOptions() but it doesn't work. How do I make the page stay at the current page in Tapestry? 

Here is my tml file
<table width="100%" t:type="jquery/datatable" t:id="list" t:source="users" t:row="rowUser" t:options="options" 
     t:add="action"  >
     <p:actionCell >
      <a t:type="eventLink" t:event="review" t:context="[rowUser.id]" href="#">Test</a>
     </p:actionCell >

Here is my java file
public JSONObject getOptions() {
        JSONObject options = new JSONObject();
        options.put("bJQueryUI", true);
        options.put("sDom", "<\"H\"lfr>t<\"F\"ip>");
        options.put("bStateSave", true);
        
        return options;
    }


Any help would be much appreciated. Thanks.

Emmanuel DEMEY

unread,
Jun 26, 2013, 11:06:33 AM6/26/13
to tapestry...@googlegroups.com
Have you tested the iDisplayStart parameter ? 
Manu


2013/6/26 newbie <codeh...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.e...@gmail.com

Twitter : @EmmanuelDemey

newbie

unread,
Jun 26, 2013, 10:29:42 PM6/26/13
to tapestry...@googlegroups.com
Hi,
The iDisplayStart works when I enter a number manually. The question now is how do I get the record number? If I keep track of the record number myself in a list, the search function can alter the ordering of records and the pages number, so it will not work if the user uses the search function. Example would be 200 records in 20 pages with 10 records per page. On search, it might have only 100 records with 10 pages.  Does datable provides a dynamic/current record number that changes with the search function?
 
 

Emmanuel DEMEY

unread,
Jun 27, 2013, 4:18:13 AM6/27/13
to tapestry...@googlegroups.com

Hi
I have just tested the bStateSave and when I submit a form, i have got the same page before and after.
Can you send the configuration json foryour datatable. You will find at the bottom of your generated html.

Le 27 juin 2013 04:29, "newbie" <codeh...@gmail.com> a écrit :
Hi,
The iDisplayStart works when I enter a number manually. The question now is how do I get the record number? If I keep track of the record number myself in a list, the search function can alter the ordering of records and the pages number, so it will not work if the user uses the search function. Example would be 200 records in 20 pages with 10 records per page. On search, it might have only 100 records with 10 pages.  Does datable provides a dynamic/current record number that changes with the search function?
 
 

--

newbie

unread,
Jun 27, 2013, 4:45:00 AM6/27/13
to tapestry...@googlegroups.com
Hi,
I tried searching for JSON configuration in my webpage but I couldn't find any. How does a JSON configuration in a generated html look like? Any unique identifier that I can search for?
My datatable is inside a zone. Would that change the behavior of bStateSave?

Emmanuel DEMEY

unread,
Jul 1, 2013, 4:23:40 AM7/1/13
to tapestry...@googlegroups.com
Just copy in this thread the generated HTML (in a readable way). 

Manu

newbie

unread,
Jul 1, 2013, 5:36:08 AM7/1/13
to tapestry...@googlegroups.com
Here is my generated HTML, by clicking View Page Source in FireFox
 
<html><head><title>User Logon History</title><link rel="stylesheet" type="text/css" href="/paymatev9/assets/1.0/ctx/css/layout.css"><link rel="stylesheet" type="text/css" href="/paymatev9/assets/1.0/ctx/css/css.css"><link rel="stylesheet" type="text/css" href="/paymatev9/assets/1.0/ctx/css/common.css"><link href="/paymatev9/assets/1.0/core/default.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/jquery/themes/ui-lightness/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/ctx/css/layout.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/ctx/css/menu.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/core/tapestry-console.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/core/t5-alerts.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/core/tree.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/core/datepicker_106/css/datepicker.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/ctx/css/jquerydatatables.css" rel="stylesheet" type="text/css"><link href="/paymatev9/assets/1.0/ctx/css/jquery-ui-pepperGrinder.css" rel="stylesheet" type="text/css"><style>
body {behavior: url("/paymatev9/assets/1.0/ctx/css/csshover3.htc");}
#menu li .drop {background:url("/paymatev9/assets/1.0/ctx/img/drop.gif") no-repeat right 8px;
</style><meta name="generator" content="Apache Tapestry Framework (version 5.3.6)"><script type="text/javascript" src="/paymatev9/assets/1.0/stack/en/core.js"></script><script type="text/javascript" src="/paymatev9/assets/1.0/stack/en/core-datefield.js"></script><script type="text/javascript" src="/paymatev9/assets/1.0/core/corelib/components/ProgressiveDisplay.js"></script><link type="text/css" rel="stylesheet" href="http://localhost:8080/paymatev9/assets/1.0/jquery/assets/components/datatables/tango/skin.css"><script src="http://localhost:8080/paymatev9/assets/1.0/stack/en/DataTableStack.js" type="text/javascript"></script></head><body><div id="top1"><div id="top1_bg"><div id="top1_logo"><div id="top1_logo_img"><img width="189" height="33" src="/paymatev9/assets/1.0/ctx/img/logo_1.gif"> Version 9.0.2
</div><!--     
     <div id="top1_navi">
      ${message:welcome-label} ${userLogin.userId} | <t:actionlink t:id="logout">${message:logout-label}</t:actionlink>
     </div>
     --><br></div></div></div><ul id="menu"><li><a href="/paymatev9/core/userlogonhist/page?t:lb=t" class="drop">System Administration</a><div class="dropdown_3columns"><!-- Begin 4 columns container --><div class="col_3"><h3>System</h3></div><div class="col_1"><a href="/paymatev9/core/sftpservermgmt/sftpserverpage">SFTP SERVER</a></div><div class="col_1"><a href="/paymatev9/core/addrbookmgmt/addressbookpage">Address Book</a></div><div class="col_1"><a href="/paymatev9/core/globalemail/page">Global Email</a></div><div class="col_1"><a href="/paymatev9/core/orgmgmt/page">Org Management</a></div><div class="col_3"><h3>User Management</h3></div><div class="col_1"><a href="/paymatev9/core/rolemgmt/rolepage">Role Management</a></div><div class="col_1"><a href="/paymatev9/core/usermgmt/userpage">User Management</a></div><div class="col_1"><a href="/paymatev9/core/accessright/page">Access Right</a></div><div class="col_1"><a href="/paymatev9/core/agent/page">Agent</a></div><div class="col_1"><a href="/paymatev9/core/globaldayoff/page">Global Day Off</a></div><div class="col_1"><a href="/paymatev9/core/resetpassword/page">Reset Password</a></div><div class="col_1"><a href="/paymatev9/core/resetauthcode/page">Reset Auth Code</a></div><div class="col_3"><h3>Security</h3></div><div class="col_1"><a href="/paymatev9/core/userlogonhist/page?t:lb=t">User Logon History</a></div><div class="col_1"><a href="/paymatev9/core/logoutuser/page">Logout Online User</a></div><div class="col_1"><a href="/paymatev9/core/sysconfig/page">System Configuration</a></div><div class="col_1"><a href="/paymatev9/core/audit/page">Audit Trail</a></div><div class="col_1"><a href="/paymatev9/core/license/page">License Update</a></div><div class="col_3"><h3>Log</h3></div><div class="col_1"><a href="/paymatev9/core/evault/page">e-Vault</a></div><div class="col_1"><a href="/paymatev9/core/edistribute/page">e-Distribute</a></div><div class="col_1"><a href="/paymatev9/core/notification/page">Notification</a></div><div class="col_1"><a href="/paymatev9/core/outbound/page">Outbound</a></div><div class="col_1"><a href="/paymatev9/core/inbound/page">Inbound</a></div></div></li><li><a href="/paymatev9/core/userlogonhist/page?t:lb=t" class="drop">Report</a><div class="dropdown_3columns"><!-- Begin 4 columns container --><div class="col_3"><h3>Collection</h3></div><div class="col_1"><a href="/paymatev9/core/collectsummary/page">Summary</a></div><div class="col_1"><a href="/paymatev9/core/collectdetail/page">Detail</a></div><div class="col_3"><h3>Transfer</h3></div><div class="col_1"><a href="/paymatev9/core/transsummary/page">Summary</a></div><div class="col_1"><a href="/paymatev9/core/transdetail/page">Detail</a></div></div></li><li><a href="/paymatev9/core/userlogonhist/page?t:lb=t" class="drop">Action</a><div class="dropdown_3columns"><!-- Begin 4 columns container --><div class="col_3"><h3>Resend</h3></div><div class="col_1"><a href="/paymatev9/core/resendoutbound/page">Outbound</a></div><div class="col_1"><a href="/paymatev9/core/resendinbound/page">Inbound</a></div><div class="col_1"><a href="/paymatev9/core/resendnotification/page">Notification</a></div><div class="col_3"><h3>Stop</h3></div><div class="col_1"><a href="/paymatev9/core/stopnotification/page">Notification</a></div></div></li><!-- End 4 columns Item --><li class="menu_right"><a href="#">admin</a><div class="dropdown_1column align_right"><div class="col_1"><ul class="simple"><li><a href="/paymatev9/core/changepassword/page">Change Password</a></li><li><a href="/paymatev9/core/changeauthcode/page">Change Auth Code</a></li><li><h6></h6></li><li><a href="/paymatev9/core/userlogonhist/page.modulelayout.menulink.logout">Logout</a></li></ul></div></div></li></ul><div class="post"><div class="title"><h2>User Logon History</h2></div></div><div xmlns="http://www.w3.org/1999/xhtml" class="page"><noscript class="js-required">
[[missing key: javascript_required]]
</noscript><style type="text/css">
DIV.t-alert-controls { display: none; }
</style><div class="pagecontent"><table width="100%" id="searchAndList"><tbody><tr><td width="65%" valign="top" id="searchCol"><div id="searchZone" class="t-zone tapestry-zone"><form id="searchForm" method="post" action="/paymatev9/core/userlogonhist/page.search.searchform" onsubmit="javascript:return Tapestry.waitForPage(event);" class="t-prevent-submission"><div class="" style="display: none;"><input type="hidden" name="t:formdata" value="CECgXakAPGKYJN/Hf7/dPNqmfzc=:H4sIAAAAAAAAAN1WTWsTQRgeA02rEakFld4EG5sKbqBJL/WgsaZtSiyB+HESmey8SUZ2Z6Yzk48e9NSD/gQv/oGqJ/UoQg/ixb8g/gAvVbzowZndJFAKZrOlPeSys8y+zz4Pz/sO87z+gSY6aXTF5RKyLQXS4w3OmlTpbAU3YFkBlm7TsV+URMtcNhwssNsER2MBSsvtJcdiPVozqy84A6aVcxswKxKquZyrSBBYwsPpzdRu98NsAqGu6FxDmQiMjse5MLROVNqyqZ9b3Bf1hbWLuzePnyr3KbOznvv1BoVUebQYhUpILkDqbQgMMqRrUUkrPWTP2iroliiyNpWc+aZg43xi61suez2BTpXRVJ9Go5nyE9zGWQ+zRraqJWWNG12h0aTRSFmJdDLo6hDdQSUlRuvSf7XWsAKnUDOb2NWrFDwSikzf30t9v/D5b6As5XKmJfc2sQ9b6BmajC2mMKoYY6ALSlVbNZ8qRTnbe0vy9d+vvh6tgaWYDVzxzDk50EL/wcenl9cv/Tn+2c3HPia2ZxMxvbLYpEanqSgQIk0rIhBTgcPaAH0mLtqCz8WTbaHTo1o0c8KeThlEsW0a3FlA88OPENjSvqNxsOPuZ1JprFuqM4/SQ34SFva9HBU37j6mXAlYA7ljHhHGi5iyuuT+YDQtbtVsjIAdd0vP+pzQOu15OnzQrC+aDwbUou7xyLiTdzNyIC3GCKSHL93HdzdefHn083l4E0Y4t8Fi6G9FpQ8Chz4cP15W92ffv9tZSaCESWyuR011iQShyOQk8MDKO5CTkiH54OUfA+yikcELAAA="></div><div class="t-beaneditor"><div class="t-beaneditor-row"><label for="loginId">Login ID</label><input type="text" name="loginId" id="loginId"><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="loginId_icon" style="display: none;"></div><div class="t-beaneditor-row"><label for="ipAddress">Ip Address</label><input type="text" name="ipAddress" id="ipAddress"><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="ipAddress_icon" style="display: none;"></div><div class="t-beaneditor-row"><label for="logEvent">Log Event</label><select name="logEvent" id="logEvent"><option value=""></option><option value="LOGIN">LOGIN</option><option value="LOGOUT">LOGOUT</option></select><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="logEvent_icon" style="display: none;"></div><div class="t-beaneditor-row"><label for="status">Status</label><select name="status" id="status"><option value=""></option><option value="SUCCESSFUL">SUCCESSFUL</option><option value="UNSUCCESSFUL">UNSUCCESSFUL</option></select><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="status_icon" style="display: none;"></div><div class="t-beaneditor-row"><label for="DateFrom">Date From</label><input type="text" name="DateFrom" id="DateFrom" value="07/01/2009"><img id="DateFrom-trigger" class="t-calendar-trigger" src="/paymatev9/assets/1.0/core/corelib/components/datefield.gif" alt="[Show]"><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="DateFrom_icon" style="display: none;"></div><div class="t-beaneditor-row"><label for="DateTo">Date To</label><input type="text" name="DateTo" id="DateTo" value="07/01/2013"><img id="DateTo-trigger" class="t-calendar-trigger" src="/paymatev9/assets/1.0/core/corelib/components/datefield.gif" alt="[Show]"><img src="/paymatev9/assets/1.0/core/spacer.gif" alt="" class="t-error-icon" id="DateTo_icon" style="display: none;"></div><div class="center"><input type="submit" name="search" id="search" class="submitButton" value="Search"></div></div></form></div></td><td valign="middle" rowspan="2" id="detailCol"><div class="center"><div id="alerts"></div></div><div id="detailZone" class="t-zone tapestry-zone"><div id="showDetail" class="t-zone" style="background-image: none; background-color: rgb(255, 255, 255);"><div xmlns="http://www.w3.org/1999/xhtml" class="moduleTitle">
View
</div><div xmlns="http://www.w3.org/1999/xhtml" class="normalBox"><dl class="t-beandisplay"><dt class="loginId">Login ID</dt><dd class="loginId">admin</dd><dt class="logEvent">Log Event</dt><dd class="logEvent">login</dd><dt class="ipAddress">Ip Address</dt><dd class="ipAddress">192.168.2.230</dd><dt class="status">Status</dt><dd class="status">SUCCESSFUL</dd><dt class="reason">Reason</dt><dd class="reason">&nbsp;</dd><dt class="errorMsg">Error Msg</dt><dd class="errorMsg">&nbsp;</dd><dt class="createdDate">Created Date</dt><dd class="createdDate">Feb 15, 2012</dd></dl></div></div></div></td></tr><tr><td valign="top" id="listCol"><div id="listZone" class="t-zone tapestry-zone"><div id="list"><div id="showList" class="t-zone" style="background-image: none; background-color: rgb(255, 255, 255);"><div><div role="grid" class="dataTables_wrapper" id="list_13f9992fff7_wrapper"><div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"><div id="list_13f9992fff7_length" class="dataTables_length"><label>Show <select name="list_13f9992fff7_length" size="1" aria-controls="list_13f9992fff7"><option value="10" selected="selected">10</option><option value="20">20</option><option value="40">40</option></select> entries</label></div><div class="dataTables_filter" id="list_13f9992fff7_filter"><label>Search: <input type="text" aria-controls="list_13f9992fff7"></label></div></div><table width="100%" id="list_13f9992fff7" class="dataTable" aria-describedby="list_13f9992fff7_info" style="width: 100%;"><thead><tr role="row"><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 97px;" aria-sort="ascending" aria-label="
Login ID
activate to sort column descending"><div class="DataTables_sort_wrapper">
Login ID
<span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-n"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 92px;" aria-label="
Log Event
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Log Event
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 132px;" aria-label="
Ip Address
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Ip Address
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 170px;" aria-label="
Status
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Status
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 173px;" aria-label="
Reason
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Reason
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 173px;" aria-label="
Error Msg
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Error Msg
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="list_13f9992fff7" rowspan="1" colspan="1" style="width: 204px;" aria-label="
Time
activate to sort column ascending"><div class="DataTables_sort_wrapper">
Time
<span class="DataTables_sort_icon css_right ui-icon ui-icon-carat-2-n-s"></span></div></th><th class="ui-state-default" role="columnheader" rowspan="1" colspan="1" style="width: 61px;" aria-label="
Action
"><div class="DataTables_sort_wrapper">
Action
<span class="DataTables_sort_icon"></span></div></th></tr></thead><tfoot><tr><th class="ui-state-default" rowspan="1" colspan="1">
Login ID
</th><th class="ui-state-default" rowspan="1" colspan="1">
Log Event
</th><th class="ui-state-default" rowspan="1" colspan="1">
Ip Address
</th><th class="ui-state-default" rowspan="1" colspan="1">
Status
</th><th class="ui-state-default" rowspan="1" colspan="1">
Reason
</th><th class="ui-state-default" rowspan="1" colspan="1">
Error Msg
</th><th class="ui-state-default" rowspan="1" colspan="1">
Time
</th><th class="ui-state-default" rowspan="1" colspan="1">
Action
</th></tr></tfoot><tbody role="alert" aria-live="polite" aria-relevant="all"><tr class="odd"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:03:32</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/68">
View
</a></div></td></tr><tr class="even"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:04:28</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/69">
View
</a></div></td></tr><tr class="odd"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:05:58</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/70">
View
</a></div></td></tr><tr class="even"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:14:07</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/71">
View
</a></div></td></tr><tr class="odd"><td class="  sorting_1">admin</td><td class=" ">logout</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:14:37</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/72">
View
</a></div></td></tr><tr class="even"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:15:13</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/73">
View
</a></div></td></tr><tr class="odd"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:16:32</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/74">
View
</a></div></td></tr><tr class="even"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:17:44</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/75">
View
</a></div></td></tr><tr class="selected odd"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:19:37</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/76">
View
</a></div></td></tr><tr class="even"><td class="  sorting_1">admin</td><td class=" ">login</td><td class=" ">192.168.2.230</td><td class=" ">SUCCESSFUL</td><td class=" "></td><td class=" "></td><td class=" ">15-Feb-2012 15:21:12</td><td class=" "><div xmlns="http://www.w3.org/1999/xhtml" class="prop:rowCss"><a href="/paymatev9/core/userlogonhist/page.list:review/77">
View
</a></div></td></tr></tbody></table><div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"><div class="dataTables_info" id="list_13f9992fff7_info">Showing 41 to 50 of 500 entries</div><div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="list_13f9992fff7_paginate"><a class="first ui-corner-tl ui-corner-bl fg-button ui-button ui-state-default" tabindex="0" id="list_13f9992fff7_first">First</a><a class="previous fg-button ui-button ui-state-default" tabindex="0" id="list_13f9992fff7_previous">Previous</a><span><a class="fg-button ui-button ui-state-default" tabindex="0">3</a><a class="fg-button ui-button ui-state-default" tabindex="0">4</a><a class="fg-button ui-button ui-state-default ui-state-disabled" tabindex="0">5</a><a class="fg-button ui-button ui-state-default" tabindex="0">6</a><a class="fg-button ui-button ui-state-default" tabindex="0">7</a></span><a class="next fg-button ui-button ui-state-default" tabindex="0" id="list_13f9992fff7_next">Next</a><a class="last ui-corner-tr ui-corner-br fg-button ui-button ui-state-default" tabindex="0" id="list_13f9992fff7_last">Last</a></div></div></div></div></div></div></div></td></tr></tbody></table></div></div><div class="footer"><center>
All rights reserved. Copyright (C) CBSA Group
</center></div><script type="text/javascript">var $j = jQuery; Tapestry.JQUERY=false;
Tapestry.DateField.initLocalization({"firstDay":6,"months":["January","February","March","April","May","June","July","August","September","October","November","December",""],"days":"mtwtfss"});
Tapestry.onDOMLoaded(function() {
Tapestry.init({"alertManager":[{"id":"alerts","dismissText":"Dismiss all","dismissURL":"/paymatev9/core/userlogonhist/page.alerts:dismiss"}],"formEventManager":[{"formId":"searchForm","validate":{"submit":true,"blur":true}}]});
Tapestry.init({"activate":["DateFrom"],"progressiveDisplay":[{"element":"showDetail","url":"/paymatev9/core/userlogonhist/page.detail.showdetail"},{"element":"showList","url":"/paymatev9/core/userlogonhist/page.list.showlist"}],"validate":[{"DateTo":[["required","You must provide a value for Date To."]],"DateFrom":[["required","You must provide a value for Date From."]]}],"linkZone":[{"linkId":"searchForm","url":"/paymatev9/core/userlogonhist/page.search.searchform","zoneId":"^"}],"zone":[{"update":"highlight","element":"searchZone","show":"show"},{"update":"highlight","element":"detailZone","show":"show"},{"update":"highlight","element":"listZone","show":"show"}],"dateField":[{"field":"DateFrom","formatURL":"/paymatev9/core/userlogonhist/page.search.datefrom:format","parseURL":"/paymatev9/core/userlogonhist/page.search.datefrom:parse"},{"field":"DateTo","formatURL":"/paymatev9/core/userlogonhist/page.search.dateto:format","parseURL":"/paymatev9/core/userlogonhist/page.search.dateto:parse"}]});
});
</script></body></html> 
 
 

Emmanuel DEMEY

unread,
Jul 2, 2013, 3:29:12 AM7/2/13
to tapestry...@googlegroups.com
Very very strange. i do not see the initialization for the datatable :s
Manu


2013/7/1 newbie <codeh...@gmail.com>
 
 

--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Emmanuel DEMEY

unread,
Jul 2, 2013, 3:30:48 AM7/2/13
to tapestry...@googlegroups.com
Can you test in a development mode ? (SymbolConstants.PRODUCTION_MODE=false in your AppModule)


2013/7/2 Emmanuel DEMEY <demey.e...@gmail.com>

newbie

unread,
Jul 2, 2013, 4:55:07 AM7/2/13
to tapestry...@googlegroups.com

I have change to development mode but the datatable is still not staying at the current page on refresh.
Here is the code fragment in my AppModule


public static void contributeApplicationDefaults(
       configuration.add( SymbolConstants.PRODUCTION_MODE, "false" );

newbie

unread,
Jul 4, 2013, 12:09:49 AM7/4/13
to tapestry...@googlegroups.com

Hi,
I have got the bStateSave to work. Turns out I need to set the value as a string, "true" rather than a Boolean true.
 
Here is my part of my JSON getOptions
options.put("bStateSave", "true");
 
Now it always return to the current page selected by the user. However, I would like it to reset to the first page on @PageReset in Tapestry. I am thinking of deleting the cookie. Is this approach correct and where can I delete the correct cookie?

Emmanuel DEMEY

unread,
Jul 4, 2013, 3:57:23 AM7/4/13
to tapestry...@googlegroups.com
You can maybe use the Cookies Tapestry service. It has a removeCookieValue method.



2013/7/4 newbie <codeh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages