webtier@glassfish.java.net

Re: [webtier] Re: How to avoid _at_PostConstruct on page Faces beans during postback?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 13 Apr 2009 16:53:12 -0700

On 4/13/09 4:28 PM, webtier_at_javadesktop.org wrote:
> Thanks for the clarification Ryan.
> I do understand it's a requirement for @PostConstruct to be invoked *if* the bean is to be used.
> I guess where I'm at loss is understanding why myFB is invoked on a<commandLink action="#{anotherFB.myCommand}">. Why does the implementation need to instantiate myFB? What is the purpose of that? What does the rendered/disable condition of JSF components in my.jsp have anything to do with anotherFB.myCommand processing?
>
The rendered/disable attribute suggestion was just a general comment. I
can't say why myFB is being instantiated. You'll need to provide more info.
What does the view you're posting back to look like? Does anotherFB
inject a bean that may rely on myFB?


> [Message sent by forum member 'bouteill' (bouteill)]
>
> http://forums.java.net/jive/thread.jspa?messageID=341890
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>