Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all I am building a Visual JSF project. On a page I get the a value from RequestBean in init method but after clicki ng on a button on the same page before button handler takes place init funct ion is called one more time. Why is it so? Any solution for it to be called only once when the page loade d? Kind Regards,
Post Follow-up to this messageThe 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...life-cycle.html John On Tue, Jun 10, 2008 at 3:14 AM, buyulu mr <buyulu21-/E1597aS9LQAvxtiuMwx3w@ public.gmane.org> 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 in it > 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.