Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

JSF Inputtext Example

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=”textid=”j_idt2:usernamename=”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

Share the post

JSF Inputtext Example

×

Subscribe to Oracle Adf, Bpm, Bi And Primavera P6 Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×