Reg: Urgent Issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reg: Urgent Issue

Baskaran, Venkataraman

Hi All,

 

I am facing some problem in display tag:

Issue: Display tag pagination without page reloads. ( I am using struts framework)

Anybody pls provide solution for the issue:

Thanks in advance

 

Thanks & Regards,

Venkat.

Nortel : 044-3-3020

Mobile : +919790505581

 

"Success is a state of mind. If you want success, start thinking of yourself as a success."
- Dr. Joyce Brothers

 

Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
luy
Reply | Threaded
Open this post in threaded view
|

Re: Reg: Urgent Issue

luy

> I am facing some problem in display tag:
>
> Issue: Display tag pagination without page reloads. ( I am using struts
> framework)
>
> Anybody pls provide solution for the issue:

Not quite sure your question. If you display 20 rows per page, when go
to next page, the page has to be recalculated and updated, right?

For example,

(1) select first 20 records from table limit 1, 20;
(2) click next page
(3) select first 20 records from table limit 21, 30;
     will be returned?

Which step you'd like to omit?

I am using struts2 + tiles + spring3.05 + displaytag1.2. If you do some
form checking/validation and just want to return message to users, ajax
will help you stay the same page without reloading the whole calculation.


Emi



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

Re: Reg: Urgent Issue

Foram Parikh
In reply to this post by Baskaran, Venkataraman
Hi Venkat,
 
I used the below code and it was working fine for me without refreshing the page

 <display:setProperty name="paging.banner.first">
           
               
               
               
               
               
<input type="hidden" id="FIRSTPAGE1" value="{1}"/>
                <input type="button" value="&lt;&lt; First" class="buttons" onclick="openURLFIRSTPAGE1()" disabled="true"/>

               
<input type="hidden" id="PREVIOUSPAGE1" value="{2}"/>
                <input type="button" value="&lt; Previous" class="buttons" disabled="true" onclick="openURLPREVIOUSPAGE1()"/>
               
<input type="hidden" id="NEXTPAGE1" value="{3}"/>
                <input type="button" value="Next &gt;" class="buttons" onclick="openURLNEXTPAGE1()"/>
               
<input type="hidden" id="LASTPAGE1" value="{4}"/>
                <input type="button" value="Last &gt;&gt;" class="buttons" onclick="openURLLASTPAGE1()"/>
 </display:setProperty>


and the javascript for onclick event is

function openURLFIRSTPAGE1(){

    firstpage=document.getElementById("FIRSTPAGE1").value;
    window.location.href =  firstpage;

}

function openURLPREVIOUSPAGE1(){

    previouspage=document.getElementById("PREVIOUSPAGE1").value;
    window.location.href =  previouspage;

}

function openURLNEXTPAGE1(){

    nextpage=document.getElementById("NEXTPAGE1").value;
    window.location.href =  nextpage;

}

function openURLLASTPAGE1(){

    lastpage=document.getElementById("LASTPAGE1").value;
    window.location.href =  lastpage;

}

if in the above case window.location.href doesnt work, you can also try

window.location.replace("youractionname.action"+document.getElementById("FIRSTPAGE").value);

Regards,
Foram



Baskaran, Venkataraman wrote
Hi All,

 

I am facing some problem in display tag:

Issue: Display tag pagination without page reloads. ( I am using struts
framework)

Anybody pls provide solution for the issue:

Thanks in advance

 

Thanks & Regards,

Venkat.

Nortel : 044-3-3020

Mobile : +919790505581

 

"Success is a state of mind. If you want success, start thinking of
yourself as a success."
- Dr. Joyce Brothers

 


Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user