Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

call a method in portlet action class from javascript function

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've created a column sortable table in a portlet JSP using Comparator. When i click on the table header I call a javascript function to sort the data by sending the sorting order and the column value. And the sorting method is in the portlet action class. Now the question is to call this sorting method in the javascript and refresh the table.

I'm using Basic JSR 168 portlet,IBM RAD 7.0 and IBM portal 6.0

Can anybody please help!!!


Thanks,
Bharath
 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Create an ActionURL and make the form with that action submit in your javascript method. Have you tried that?
 
Bharath Gowda
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dharmesh,

Thanks for your suggestion.
Since the action URL will have encoded url, I tried it and does not work that way. Please let me know if you have come across other ways of implementing it.
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bharath ..

I dont have any sample with me as of now.. Let me see if I can bring up with a sample code by day end .
 
reply
    Bookmark Topic Watch Topic
  • New Topic