Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

panelLabelAndMessage with top-aligned label is uneven when there's one vertically aligned value

js-OracleJan 19 2016 — edited Jan 19 2016

I'm completely new to ADF and I've encountered the following issue with layout:

I'm using panelLabelAndMessage with multiple vertically aligned values. I would like my label to be always aligned with the top value (not center aligned as it is by default). In order to achieve that I use labelStyle="vertical-align: top;".

Below is my code:

<af:panelFormLayout maxColumns="3" rows="1" labelWidth="200" fieldWidth="200px">

 _\<af:panelLabelAndMessage label="Label" labelStyle="vertical-align: top;">_

     _\<af:panelGroupLayout layout="vertical">_

          _\<af:iterator value="#{someBean.someCollection}" var="var1">_

                    _\<af:outputText value="#{var1.value}"/>_

           _\</af:iterator>_

           _\<f:facet name="separator">_

             _\<af:spacer height="10"/>_

           _\</f:facet>_

   _\</af:panelGroupLayout>_

_\</af:panelLabelAndMessage>_

</af:panelFormLayout>

This works fine when I have two values in the iterator:

LCFoF.jpg

But when there is only one value the label and value become uneven:

BGw6m.jpg

What should be done to overcome this issue?

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2016
Added on Jan 19 2016
2 comments
281 views