EGL allows you to dynamically update aspects of JSF controls that are displayed in a Web browser. For example, you can change the color of a text box if the user enters invalid information in that text box. These changes occur on the Web application server, affecting the information available to the JSP that in turn presents the Web page to the browser.
EGL accesses JSF components through the page's JSF component tree, an XML-based structure that identifies the JSF components specified in the JSP file. When using the JSF component tree, you associate an EGL variable with the JSF component you want to access. Then, you can perform the same functions on that EGL variable that you can perform on the JSF component itself, such as changing the style and other properties. For a complete list of the JSF components and the functions that are available for each of those components, see the documentation for Java™ Server Faces at http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html.
import com.ibm.egl.jsf.*
myControl HtmlInputText;
myControl = myViewRoot.findComponent("form1:inputField1");
myControl.setStyle("color : red");
Related concepts
viewRootVar property
Related tasks
Adding JSF component interface support to an EGL Web project
Accessing a JSF component from a pageHandler
Changing the style class of a JSF component
Changing the style of a JSF component
Changing the target of a JSF link
Enabling or disabling JSF components
Setting the size of a JSF image
Setting event handlers for a JSF component
Setting JSF data table properties
Related reference
Component tree access parts