HtmlInputText inputText = new HtmlInputText();
inputText.setValueExpression("value", expressionFactory.createValueExpression(elContext, "#{bean.property}", String.class));
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd"
version="2.1">
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>com.example.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/page1.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/page2.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
<h:outputText value="#{bean.property}" />
<h:commandButton action="#{bean.method}" />
<h:commandButton action="#{bean.method}" />
<f:event type="preRenderView" listener="#{bean.listener}" />