Showing posts with label wrap long text in af:outputText. Show all posts
Showing posts with label wrap long text in af:outputText. Show all posts

Tuesday, February 18, 2020

Oracle ADF 12c -Wrapping long text of af:link/af:outputtext

Requirement -Wrapping long text of any link so that it fits into small layout in ADF 12c.

Below code snippet for af:link works perfectly

<af:link text="Test for wrapping link with long text to fit into small layout"
                         inlineStyle="word-wrap:break-word;display:inline-block;width:150px;white-space: normal;"></af:link>

Please note that you need to give width according to your requirement and space available in layout.

same works for wrapping  the af:outputtext 

<af:outputText value="Test for wrapping link with long text to fit into small layout"
                         inlineStyle="word-wrap:break-word;display:inline-block;width:150px;white-space: normal;"></af:outputText >

image.png