title: How to set focus of ICEFaces component after initial rendering?
body: <p>I have a complex ICEFaces XHTML page that renders certain components conditionally, based on flags set as the user enters data on the page. What I'd like to do is direct focus to a certain field as soon as it appears, which may not be during the initial render of the page.</p>
  
  <p>The <a href="http://www.icefaces.org/docs/v1_8_2/tld/ice/outputBody.html" rel="nofollow">ICEFaces documentation</a> suggests that I can do this using the focus attribute of the outputBody component. Specifically:</p>
  
  <blockquote>
    <p>If you setting the initial focus, the focused component must be rendered on first render call, if not then set the focus attribute only when the component gets rendered.</p>
  </blockquote>
  
  <p>This seems to suggest that I can manipulate the value of the focus attribute <strong>at the time that my conditional component gets rendered.</strong> However, I don't see any attributes of the inputText component that allow me to change a value at the time the component is rendered.</p>
  
  <p>Am I misreading the documentation? When and where can I alter the value of the focus attribute of outputBody so that my conditionally-rendered field gets the input focus when it appears? Or am I using the wrong tool to solve this problem?</p>