The init method is called when you first navigate to a page, or when the view handler restores a page. This is why you may see it called twice.
The lifecycle can be found at
http://developers.sun.com/jscreator/reference/fi/2/event-life-cycle.html
John
On Tue, Jun 10, 2008 at 3:14 AM, buyulu mr <
buyulu21@...> wrote:
Hi all
I am building a Visual JSF project.
On a page I get the a value from RequestBean in init method but after clicking on a button on the same page before button handler takes place init function is called one more time.
Why is it so? Any solution for it to be called only once when the page loaded?
Kind Regards,
--
John Yeary
--
http://javaevangelist.blogspot.com"Far better it is to dare might things, to win glorious triumphs, even though checkered by failure,
than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the grey
twilight that knows not victory nor defeat." -- Theodore Roosevelt