Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

why init function is called twice in Visual JSF?
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,





Report this thread to moderator Post Follow-up to this message
Old Post
buyulu mr
06-10-08 10:13 AM


Re: why init function is called twice in Visual JSF?
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...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


Report this thread to moderator Post Follow-up to this message
Old Post
John Yeary
06-11-08 12:39 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Netbeans J2EE archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:47 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.