Hi,

all properties are set in the order they are defined in the faces-config.xml.
This is defined in the spec.
So you can define a dummy setter as last one in the config as init method.
e.g.:


<managed-bean>
 ...
 <managed-property>
   <description>
     dummy init MUST be the last property
   </description>
   <property-name>init</property-name>
   <value>true</value>
 </managed-property>
</managed-bean>

public void setInit(boolean init) {
   init();
 }

Regards,
 Volker

2007/2/5, Lisa <[EMAIL PROTECTED]>:

Is there a way to automatically call an init() method after all setters have
been called on a managed-bean?  I am looking for something I can put in the
.xml config file or an interface that I can extend.

Spring has this facility.  We are using Spring for most of the framework but
using JSF managed-bean facility for all backing beans.


thanks


L
--
View this message in context: 
http://www.nabble.com/JSF-lifecyle---managed-bean-tf3172695.html#a8801378
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to