Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

| Views: 5329
For a very simple task of aligning a button to the input fields on the rest of the form, in ADF 10g it is quite a painful process. It took me a bit of experimentation to get it working correctly, but here is the result.
buttonalign1.png


To get this result I had to add the following components to the JSF page:
buttonalign2.png


The commandButton is inside a rowLayout, which is inside a tableLayout. The rowLayout has a cellFormat that contains a outputFormatted with a non-breaking space.

The critical thing to do is to set the columnSpan of the cellFormat to 2 so that the empty space takes up two columns, aligning the button correctly.
buttonalign3.png




-i

Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip.
comments powered by Disqus
Other posts you may like...