| Author |
How to run Controller method when page loads ?
|
Daniel Breitner
Ranch Hand
Joined: Nov 13, 2008
Posts: 70
|
|
Hello  I have a JSF page on which i�d like to call a specific Controller method (config) everytime the page loads. I tried to do it with an hidden input field but then other methods were executed before my config- method. How do I tell the page to load a method as the first method on that page ?
|
Visit me at http://liferay-blogging.blogspot.com
|
 |
Bob Good
Ranch Hand
Joined: Jan 09, 2008
Posts: 86
|
|
In Rational Application Developer, you can invoke a method using:
|
 |
Himanshu Gupta
Ranch Hand
Joined: Aug 18, 2008
Posts: 598
|
|
Its a known problem. You can write the code in constructor if your bean is in request scope. If it is in session or application then make use of some getter. If you find anything better then please let us also know that.
|
My Blog SCJP 5 SCWCD 5
|
 |
 |
|
|
subject: How to run Controller method when page loads ?
|
|
|