JSF Inputtext Example

The JSF INPUTTEXT renders an Text field in browser. It renders an HTML component <Input> of Type=’Text’ . Below is the JSF h:inputText and its corresponding HTML element

JSF => <h:inputText value=“#{user.name}” id=“username” />

HTML => <input 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)’



The h:inputText renders like below in the browser


JSF_Inputtext JSF Inputtext Example



Download Source Project: 

govindan JSF Inputtext Example
Connect me


Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan JSF Inputtext Example
Connect me
By | 2017-11-21T22:05:45+00:00 November 21st, 2017|Categories: JSF|Tags: , , |Comments Off on JSF Inputtext Example
Like us on Facebook.