How to display the text-area in the Table in ADF.

Inorder to show the multiple lines of text data (generally for Description column) in the table column, you have to increase the number of rows in the <inputText> tag as shown

<af:column sortProperty=”DocumentDescr” filterable=”true”

                         sortable=”true”

                         headerText=”#{bindings.AttachmentsVO1.hints.DocumentDescr.label}”

                         id=”c1″ align=”center” width=”240″>

                <af:inputText value=”#{row.bindings.DocumentDescr.inputValue}”

                              label=”#{bindings.AttachmentsVO1.hints.DocumentDescr.label}”

                              required=”#{bindings.AttachmentsVO1.hints.DocumentDescr.mandatory}”

                              columns=”#{bindings.AttachmentsVO1.hints.DocumentDescr.displayWidth}”

                              maximumLength=”#{bindings.AttachmentsVO1.hints.DocumentDescr.precision}”

                              shortDesc=”#{bindings.AttachmentsVO1.hints.DocumentDescr.tooltip}”

                              readOnly=”#{!row.bindings.IsRemoveAttachmentEnabled.inputValue}”

                              rows=”4″

                             id=”it4″>

                  <f:validator binding=”#{row.bindings.DocumentDescr.validator}”/>

                </af:inputText>

              </af:column>

Default value for “rows” is 1. You can give any positive number. It will be displayed (‘Document Description’ field) as below –

Advertisements
This entry was posted in ADF (Application Development Framework) and tagged , , , , , , , , . Bookmark the permalink.

2 Responses to How to display the text-area in the Table in ADF.

  1. sj says:

    the width of the text area in the input text decreases as you enter the data do you know whats the issue with it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s