14 total views, 14 views today
JSF Inputtext Example
The JSF INPUTTEXT renders an Text field in browser. It renders an HTML component of Type=’Text’ . Below is the JSF h:inputText and its corresponding HTML element
JSF => h:inputText value=“#{user.name}” id=“username” />
HTML => type=”text” id=”j_idt2:username” name=”j_idt2:username” />
JSF h:InputText Example
Below is the index.jsf page contains an inputText field.
Below is the backing Bean class; The value of InputText component is bound to the below-backing bean class getter/setter method. That is value=’#(user.name)’
@ManagedBean @RequestScoped public class User { private String name; public String getName() { return name; } public void setName(String name) { System.out.println(name); this.name = name; } }
The h:inputText renders like below in the browser
Download Source Project:
JSF_InputText_Example
This post first appeared on Oracle ADF, BPM, BI And Primavera P6 Tutorials, please read the originial post: here