Reg: Display Tag Issue

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

Reg: Display Tag Issue

Baskaran, Venkataraman

I have a 30 records to display and my page size is 10 records/page.

When I click next pagination icon the UI gets reloaded and next 10 records are displaying.

 But I don’t need to reload the UI.

Display tag Code below:

 

<display:table name="sessionScope.displaylist"  id="tableid" pagesize="2"  requestURI="report.do?reload=false">                          

                           

                                <td class="R_leftborder" >&nbsp;</td>

                             

                             <td>

                              <display:column class="Report_name" property="repGrpName" title=""></display:column>

                             

                             </td>

                              </display:table>

 

 

 

 

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
Reply | Threaded
Open this post in threaded view
|

R: Reg: Display Tag Issue

craig1980

Well for use displaytag without full page reload you need to use some AJAX feature.

I used, in Spring MVC application, AJAX Tags where a wrapper around displaytag has been implemented and it seems to work great

 

Regards,

Angelo

 

 


Da: Baskaran, Venkataraman [mailto:[hidden email]]
Inviato: mercoledì 4 maggio 2011 7.46
A: [hidden email]
Oggetto: [displaytag-user] Reg: Display Tag Issue

 

I have a 30 records to display and my page size is 10 records/page.

When I click next pagination icon the UI gets reloaded and next 10 records are displaying.

 But I don’t need to reload the UI.

Display tag Code below:

 

<display:table name="sessionScope.displaylist"  id="tableid" pagesize="2"  requestURI="report.do?reload=false">                          

                           

                                <td class="R_leftborder" >&nbsp;</td>

                             

                             <td>

                              <display:column class="Report_name" property="repGrpName" title=""></display:column>

                             

                             </td>

                              </display:table>

 

 

 

 

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
Reply | Threaded
Open this post in threaded view
|

Re: R: Reg: Display Tag Issue

Baskaran, Venkataraman

Could you share me the code and guide me if possible.

 

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

 

From: Angelo Immediata [mailto:[hidden email]]
Sent: Wednesday, May 04, 2011 12:34 PM
To: [hidden email]
Subject: [displaytag-user] R: Reg: Display Tag Issue

 

Well for use displaytag without full page reload you need to use some AJAX feature.

I used, in Spring MVC application, AJAX Tags where a wrapper around displaytag has been implemented and it seems to work great

 

Regards,

Angelo

 

 


Da: Baskaran, Venkataraman [mailto:[hidden email]]
Inviato: mercoledì 4 maggio 2011 7.46
A: [hidden email]
Oggetto: [displaytag-user] Reg: Display Tag Issue

 

I have a 30 records to display and my page size is 10 records/page.

When I click next pagination icon the UI gets reloaded and next 10 records are displaying.

 But I don’t need to reload the UI.

Display tag Code below:

 

<display:table name="sessionScope.displaylist"  id="tableid" pagesize="2"  requestURI="report.do?reload=false">                          

                           

                                <td class="R_leftborder" >&nbsp;</td>

                             

                             <td>

                              <display:column class="Report_name" property="repGrpName" title=""></display:column>

                             

                             </td>

                              </display:table>

 

 

 

 

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.

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
Reply | Threaded
Open this post in threaded view
|

Re: R: Reg: Display Tag Issue

Baskaran, Venkataraman
In reply to this post by craig1980

Could you guide me the code and guide me if possible.

 

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

 

From: Angelo Immediata [mailto:[hidden email]]
Sent: Wednesday, May 04, 2011 12:34 PM
To: [hidden email]
Subject: [displaytag-user] R: Reg: Display Tag Issue

 

Well for use displaytag without full page reload you need to use some AJAX feature.

I used, in Spring MVC application, AJAX Tags where a wrapper around displaytag has been implemented and it seems to work great

 

Regards,

Angelo

 

 


Da: Baskaran, Venkataraman [mailto:[hidden email]]
Inviato: mercoledì 4 maggio 2011 7.46
A: [hidden email]
Oggetto: [displaytag-user] Reg: Display Tag Issue

 

I have a 30 records to display and my page size is 10 records/page.

When I click next pagination icon the UI gets reloaded and next 10 records are displaying.

 But I don’t need to reload the UI.

Display tag Code below:

 

<display:table name="sessionScope.displaylist"  id="tableid" pagesize="2"  requestURI="report.do?reload=false">                          

                           

                                <td class="R_leftborder" >&nbsp;</td>

                             

                             <td>

                              <display:column class="Report_name" property="repGrpName" title=""></display:column>

                             

                             </td>

                              </display:table>

 

 

 

 

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.

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
Reply | Threaded
Open this post in threaded view
|

Re: R: Reg: Display Tag Issue

Jeff Chevalier
In reply to this post by Baskaran, Venkataraman
An alternative approach might be using displaytag to render the html for the table with no paging or sorting and use a javascript library like jQuery with the Datatables to provide your paging, sorting, etc... It works really well, here is a link to an example http://www.datatables.net/examples/basic_init/zero_config.html



2011/5/4 Baskaran, Venkataraman <[hidden email]>

Could you share me the code and guide me if possible.

 

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

 

From: Angelo Immediata [mailto:[hidden email]]

Sent: Wednesday, May 04, 2011 12:34 PM
To: [hidden email]
Subject: [displaytag-user] R: Reg: Display Tag Issue

 

Well for use displaytag without full page reload you need to use some AJAX feature.

I used, in Spring MVC application, AJAX Tags where a wrapper around displaytag has been implemented and it seems to work great

 

Regards,

Angelo

 

 


Da: Baskaran, Venkataraman [mailto:[hidden email]]
Inviato: mercoledì 4 maggio 2011 7.46
A: [hidden email]
Oggetto: [displaytag-user] Reg: Display Tag Issue

 

I have a 30 records to display and my page size is 10 records/page.

When I click next pagination icon the UI gets reloaded and next 10 records are displaying.

 But I don’t need to reload the UI.

Display tag Code below:

 

<display:table name="sessionScope.displaylist"  id="tableid" pagesize="2"  requestURI="report.do?reload=false">                          

                           

                                <td class="R_leftborder" >&nbsp;</td>

                             

                             <td>

                              <display:column class="Report_name" property="repGrpName" title=""></display:column>

                             

                             </td>

                              </display:table>

 

 

 

 

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.

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




--
Jeff Chevalier

------------------------------------------------------------------------------
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: R: Reg: Display Tag Issue

wild_oscar

On Wed, 2011-05-04 at 06:07 -0600, Jeff Chevalier wrote:
An alternative approach might be using displaytag to render the html for the table with no paging or sorting and use a javascript library like jQuery with the Datatables to provide your paging, sorting, etc... It works really well, here is a link to an example http://www.datatables.net/examples/basic_init/zero_config.html

Jeff: this implies loading the entire table (and thus not recommended for big/heavy tables/queries), right?

Miguel Almeida
------------------------------------------------------------------------------
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: R: Reg: Display Tag Issue

Jeff Chevalier
It certainly depends upon your unique situation. If there is a huge amount of data, and that is the reason you are wanting to page then do not use the datatables, unless you use it with Ajax, but then you would probably not use displaytag at all.

If that is the case you may want to look in some of the solutions of combining displaytag with one of the javascript libraries.  I did a quick search on "displaytag ajax jquery" and found several examples.

2011/5/4 Miguel <[hidden email]>

On Wed, 2011-05-04 at 06:07 -0600, Jeff Chevalier wrote:
An alternative approach might be using displaytag to render the html for the table with no paging or sorting and use a javascript library like jQuery with the Datatables to provide your paging, sorting, etc... It works really well, here is a link to an example http://www.datatables.net/examples/basic_init/zero_config.html

Jeff: this implies loading the entire table (and thus not recommended for big/heavy tables/queries), right?

Miguel Almeida

------------------------------------------------------------------------------
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




--
Jeff Chevalier

------------------------------------------------------------------------------
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: Display Tag Issue

luy
In reply to this post by Baskaran, Venkataraman
> I have a 30 records to display and my page size is 10 records/page.
>
> When I click *next* *pag*ination icon the UI gets reloaded and next 10
> records are displaying.
>
> But I don’t need to reload the UI.
>
> Display tag Code below:
>
> <display:table name=/"sessionScope.displaylist"/ id=/"tableid"/
> pagesize=/"2"/ requestURI=/"report.do?reload=false"/>
>
> <td class=/"R_leftborder"/ >&nbsp;</td>
>
> <td>
>
> <display:column class=/"Report_name"/ property=/"repGrpName"/
> title=/""/></display:column>
>
> </td>
> </display:table>

If I understand wrongly , please correct me:

Your situation is in "page.jsp":
=====================================================
---------
| part1 | huge calculation
---------
| part2 | display tag (10 over 30)
---------
| part3 | huge calculation
---------

You just want part2 to be updated by clicking paging icon. You tried to
avoid calculation for part1 & part2?  Am I correct?

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
luy
Reply | Threaded
Open this post in threaded view
|

Re: R: Reg: Display Tag Issue

luy
In reply to this post by Jeff Chevalier
Jeff,

> An alternative approach might be using displaytag to render the html for
> the table with no paging or sorting and use a javascript library like
> jQuery with the Datatables to provide your paging, sorting, etc... It
> works really well, here is a link to an example
> http://www.datatables.net/examples/basic_init/zero_config.html

Just have a quick look about "DataTables" - a very good tool!

Seems that Displaytag1.2 is the final version of display tag; while
datatables is on development.

A quick question, does DataTables support great under "struts2 + tiles +
jsp + MyBatis dataset dynamic query"?

Thanks a lot!
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: R: Reg: Display Tag Issue

Jeff Chevalier
I haved used Datatables with Struts2, JSP, and with my experience with Tiles I cannot see why there would be any conflict (although I have not tried that combination yet). With datatables you can build the html or just write JSON or XML objects into the HttpServletResponse PrintWriter from the Struts2 controller on your ajax call.

I used hibernate with ScrollableResults and not MyBatis. I am not familiar with MyBatis, but as long as it returns data, you can format into JSON or XML I would think it would work.

Datatables is nice because it has a lot of working examples and like displaytag it gives you a fairly rich feature set without a lot of work.

On Wed, May 4, 2011 at 7:43 AM, Emi Lu <[hidden email]> wrote:
Jeff,


An alternative approach might be using displaytag to render the html for
the table with no paging or sorting and use a javascript library like
jQuery with the Datatables to provide your paging, sorting, etc... It
works really well, here is a link to an example
http://www.datatables.net/examples/basic_init/zero_config.html

Just have a quick look about "DataTables" - a very good tool!

Seems that Displaytag1.2 is the final version of display tag; while datatables is on development.

A quick question, does DataTables support great under "struts2 + tiles + jsp + MyBatis dataset dynamic query"?

Thanks a lot!
Emi





--
Jeff Chevalier

------------------------------------------------------------------------------
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