Shashank gaur
Shashank gaur

Reputation: 55

How to call a method with argument from HTM page and get a return string in Apache Click framework

I have a page which is being extended to other pages in the UI. I have written a method which accepts and returns a String. I need to pass this string from HTM pages. I tried using #getTextFromKey("xyz") in HTM with having the same method in my common page being extended but it does not work.

Can anyone please help how to call a method in Java class from HTM page?

Upvotes: 0

Views: 97

Answers (1)

Paul Vargas
Paul Vargas

Reputation: 42030

You can't pass arguments to methods of Page class, but you can do an AJAX request to get similar behavior on the load event in the page.

Upvotes: 0

Related Questions