Reputation: 1809
I am using JDeveloper 11.1.2.3.0, I have an inputFile component in my page that takes its text value from the name of some components. The problem is that that when the text is long it gets displayed all there and may even occupy the whole window. Is there any possibility to wrap this text value in this case?
Upvotes: 0
Views: 1817
Reputation: 191
I don't think <af:inputFile>
has a labelStyle attribute:
You can try adding the CSS in the component's inlineStyle or contentStyle
<af:inputFile inlineStyle="word-wrap:break-word;" />
It depends if the very long text is in the content or the label of the field. If this doesn't do the trick, you can try creating a custom skin and customizing the label or content style via the adf style selectors: af|inputFile::content , af|inputFile::label.
Btw, you need to check if word-wrap works on all browsers you're targeting.
Upvotes: 1
Reputation: 11
I too had this problem with af:inputFile. Just give contentStyle="width:200px" it will solve the issue. we can adjust the width accordingly.
Upvotes: 1
Reputation: 6242
You can try setting the labelStyle attribute of the <af:inputFile>
component to wrap the contents of the label. I am not sure of the CSS style attribtue information for it, but searching on the net I found word-wrap:break-word;
.
Upvotes: 1