Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Input Text in Table, autosizing height to fit content

User757151-OracleNov 15 2012 — edited Nov 16 2012
I've a table with a variety of multi-row inputText components, most of them with the @row attribute set to 2.

However, one of these fields sometimes has verbose content. Is there a way to configure the InputText component to autosize itself (and the row) to a height that displays all the content without scroll bars? In other words, is there a way to set the text box/column/table so that the height of each row's text box auto-sizes to display all the content.

I'm aware that a brute force method would be to set the inputText's row attribute to 10; however, since most of the time the text will fit in 2-3 rows, setting it to 10 wastes a lot of real estate.

Have tried setting various properties without anl luck - here is the current definition of the InputText and the column that contains it:

<af:column sortProperty="Definition" sortable="true"
                         headerText="#{bindings.NamesBatchApproveVO1.hints.Definition.label}"
                         id="c9" width="450" inlineStyle="height:inherit;">
                <af:inputText value="#{row.bindings.Definition.inputValue}"
                              label="#{bindings.NamesBatchApproveVO1.hints.Definition.label}"
                              required="#{bindings.NamesBatchApproveVO1.hints.Definition.mandatory}"
                              columns="#{bindings.NamesBatchApproveVO1.hints.Definition.displayWidth}"
                              maximumLength="#{bindings.NamesBatchApproveVO1.hints.Definition.precision}"
                              shortDesc="#{bindings.NamesBatchApproveVO1.hints.Definition.tooltip}"
                              id="it4"
                              rendered="#{row.bindings.Definition.inputValue != null}" simple="true"
                              wrap="soft" rows="3">
                  <f:validator binding="#{row.bindings.Definition.validator}"/>
                </af:inputText>
              </af:column>
Am using 11g.

Thanks for your help.

Edited by: user757151 on Nov 15, 2012 11:12 AM
This post has been answered by Alejandro Profet on Nov 16 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2012
Added on Nov 15 2012
8 comments
1,544 views