Title: OnLoad in Myfaces -->something like in Oracle ADF?

Here’s a work around that may do the trick:

 

Essentially create a dummy component which uses a backing bean attached to rendered option.

The dummy component should go right after <f:view>

 

<f:view>

<h:panelGroup id=”dummy” rendered=”#{mybean.onLoad}”>

<f:view>

 

 

public Boolean getOnLoad()

{

      // do your on load stuff here

      // always return false so dummy component is not rendered

      return Boolean.FALSE;

}

 

Rodney

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 12:16 PM
To: [email protected]
Subject: OnLoad in Myfaces -->something like in Oracle ADF?

 

Hi all!

Can I find a similar component like the Oracle ADF body, especially the "onload", component in Myfaces?
Or can I do a workaround to load a method from the backing bean at Onload of the jsf page?

Regards
Andy


______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ______________________________________________________________________

Reply via email to