Search code examples
oracle-adf

how to make af:inputText resizible in adf?


I have An inputText that i'm trying to Make Resizible

and i've put it in AF:PanelStrechLayout but it didn't work

and this my code

 <af:panelStretchLayout dimensionsFrom="auto" >
     <f:facet name="center" >
     <af:panelGroupLayout >
        <af:inputText rendered="#{bindings.commentType1.inputValue eq 'out'}"   autoSubmit="true" simple="true" value="#{bindings.newCommentValue.inputValue}" />
        <af:inputText rendered="#{bindings.commentType1.inputValue eq 'mile'}"  autoSubmit="true" simple="true" value="#{bindings.newCommentValue1.inputValue}" />
     </af:panelGroupLayout >
      </f:facet>

    </af:panelStretchLayout>

im also have an inputText in popup that don't resize depend on the Text Length and the text is truncated

and this is the code for it

<af:inputText disabled="true"  value="#{bindings.CrOuputComments.inputValue}" simple="true" rendered="#{bindings.commentType1.inputValue eq 'out'}"
                      required="#{bindings.CrOuputComments.hints.mandatory}"
                      columns="#{bindings.CrOuputComments.hints.displayWidth}" 
                      maximumLength="#{bindings.CrOuputComments.hints.precision}"
                      shortDesc="#{bindings.CrOuputComments.hints.tooltip}" id="it39">
            <f:validator binding="#{bindings.CrOuputComments.validator}"/>
        </af:inputText>

Solution

  • In ADF, to have a resizable input you should use the af:richTextEditor component instead of your af:inputText.

    In your case :

    <af:richTextEditor disabled="true"  value="#{bindings.CrOuputComments.inputValue}" simple="true" rendered="#{bindings.commentType1.inputValue eq 'out'}"
                  required="#{bindings.CrOuputComments.hints.mandatory}"
                  shortDesc="#{bindings.CrOuputComments.hints.tooltip}" id="it39">
        <f:validator binding="#{bindings.CrOuputComments.validator}"/>
    </af:richTextEditor>