153 total views, 7 views today

JSF inputTextArea Example

The JSF inputTextArea component renders an HTML <textarea> component in the browser. The row and col determine the size of the Text Area. Below is the JSF and its corresponding HTML component

JSF => <h:inputTextarea rows=”7″ cols=”200″ value=”#{user.text}” />

HTML => <textarea name=”j_idt2:j_idt3″ cols=”200″ rows=”7″ />

The below example explains about the j:inputTextArea with an example

JSF h:inputTextArea Example

Below is the JSF page contains an h:inputTextArea field . The col and row are columsn are rows determines the size of text area . The value attribute bound to the backing bean class.

 

 

 

Below is the backing bean class. It prints in the console when a user submits the form.

 

 

 

Below is how the JSF page renders in a browser.

 

JSF_InputTextArea_Example JSF inputTextArea Example

 

Download the Source Code:

 

govindan JSF inputTextArea Example
Connect me

Govind

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 inputTextArea Example
Connect me
By | 2017-11-22T20:23:06+00:00 November 22nd, 2017|Categories: JSF|Tags: , , , , |0 Comments
Like us on Facebook.
Connect!