Since there is no event for jsf pages like "on load" you can back a backing bean to your page and execute some code in the constructor of your bean.
So for example if you want to display on "index.faces" some database data you can load the data to a List (inside of the constructor) and wire that List to the dataTable component. This in an *easy* solution to that problem. This is better instead of using JSP scriptlets in a JSF page IMHO. You could also use "Struts Shale" (its ViewController interface) for this. HTH, Matthias On 12/17/05, Marco <[EMAIL PROTECTED]> wrote: > How can i make a code executing on page load ? > > Thanks in advance > -- Matthias Wessendorf Zülpicher Wall 12, 239 50674 Köln http://www.wessendorf.net mwessendorf-at-gmail-dot-com

