How to set width to InputText in ADF

avalagne picture avalagne · Jan 18, 2014 · Viewed 16.5k times · Source

I have ADF application, which is a film database. I have a big problem with settings ADF component af:inputText.

I tried a lot of different width settings of the various components, but I always failed.

There are pictures...

enter image description hereenter image description here

You do not know how to do it please? Thank you.

Answer

GlennG picture GlennG · May 9, 2014

Set the contentStyle

Example: contentStyle="width:240px;"

(Setting inlineStyle only adds CSS to the wrapper span - which is an inline style, so cannot set a width.)

It's also worth setting simple="true" to remove other styling emitted by the control.