Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Friday, July 24, 2009

Moving components towards right in ADF

So, I got a small requirement to render a help commandlink on page towards top right corner.

And here is the trick applied:

<af:panelGroupLayout id="pgl3" layout="horizontal">
<af:toolbar id="t1" flex="1" stretchId="spacer1">
<af:spacer width="10" height="10" id="spacer1"
clientComponent="true"/>
<af:commandLink text="login" id="cl3"/>
<af:spacer width="10" height="10" id="s2"/>
<af:goLink text="FAQ" id="gl1"/>
</af:toolbar>
</af:panelGroupLayout>


3 comments:

Anonymous said...

That was exactly what I needed, thanks.

ZsEniko said...

Hi,

I did the same trick, but unfortunately does not work in Google Chrome, and Safari. The components after the one stretched are not displayed. Did you meet this issue?

Unknown said...

Well i have tried the above code in chrome and it works for me...