Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call a method in portlet action class from javascript function

 
Bharath Gowda
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic