1 Reply Latest reply on Jul 19, 2007 5:26 PM by ishabalov

    How to : manage the back bean's initializtion order

    Cui Michael Newbie

      I want to detect user's screen size and than calculate and display the every component in the right place of the page.

      <body onload="detectUserScreenSize()">
       <a4j:jsFunction name="detectUserScreenSize" action="#{bean.detectUserScreenSize}" >
       <a4j:actionparam name="screenwidth" noEscape="true" value="window.screen.width" assignTo="#{bean.screenWidth}" />
       <a4j:actionparam name="screenheight" noEscape="true" value="window.screen.height" assignTo="#{bean.screenHeight}" />

      But the bean was initialized first in server side.

      Is there any good way to solve my problem?