• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2391
  • Last Modified:

How to set the pagesize attribute of display:table tag dynamically in JSP

Hi Expert,

Can you please let me know, how to set the pagesize attribute of display:table (displaytag taglibrary) dynamically.
My requirement is to change the pagesize based on a dropdown selection, i.e 10,20,50 etc records per page.

Thanks in advance
0
annapolistech
Asked:
annapolistech
  • 2
1 Solution
 
raj3060Commented:
You would need to use some javascript onchange event and set the parameters to what you want it to be.
0
 
annapolistechAuthor Commented:
Hi Raj,
I know but  how to access the display:table tag in javascript and change the pagesize attribute.
Thanks
0
 
raj3060Commented:
You can assign an id to it (or styleId) and read it using document.getElementById('ID')

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now