permaculture playing cards*
The moose likes Portals and Portlets and the fly likes call a method in portlet action class from javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "call a method in portlet action class from javascript function " Watch "call a method in portlet action class from javascript function " New topic
Author

call a method in portlet action class from javascript function

Bharath Gowda
Greenhorn

Joined: Apr 15, 2008
Posts: 17
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


Bharath PU<br />SCJP - 1.4 <br />IBM Certified Database Associate<br />IBM Certified Advanced Application Developer -- Rational Application Developer for WebSphere Software V6.0
Dharmesh Chheda
Ranch Hand

Joined: May 08, 2001
Posts: 204
Hi

Create an ActionURL and make the form with that action submit in your javascript method. Have you tried that?


regards,<br />Dharmesh Chheda
Bharath Gowda
Greenhorn

Joined: Apr 15, 2008
Posts: 17
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

Joined: May 08, 2001
Posts: 204
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call a method in portlet action class from javascript function
 
Similar Threads
Test 399: IBM WebSphere Portal V5.1, Application Development
Question about backing files accessing javascript
wps urlGenaration Issue on portal6.1
Websphere Portal - Test 399
How to avoid server calls in Sorting