myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danielle <mi.basura.m...@gmail.com>
Subject Re: Problem with <tr:panelFormLayout>
Date Thu, 02 Oct 2008 23:21:14 GMT
Thanks!


On Thu, Oct 2, 2008 at 7:19 PM, Matt Cooper <matt.faces@gmail.com> wrote:

> This is because the tr:panelHorizontalLayout is getting in the way.
> The labelAlignment will only apply to inputs that are direct children
> of the panelFormLayout.  If you want to force 2 columns of inputs, you
> can also set rows="1" maxColumns="2" on the panelFormLayout.
>
> Regards,
> Matt
>
> On Thu, Oct 2, 2008 at 5:02 PM, Danielle <mi.basura.mail@gmail.com> wrote:
> > I'm using the <tr:panelFormLayout> with the property labelAlignment="top"
> > but the labels are still being displayed on the side.
> >
> > This is the segment:
> >
> > <tr:panelFormLayout labelAlignment="top">
> >                                 <tr:panelHorizontalLayout valign="top">
> >                                     <tr:inputText
> value="#{form.firstName}"
> >                                         label="#{msgBundle['fname']}"
> > required="true"
> >                                         columns="22" />
> >                                     <tr:inputText
> > value="#{form.secondLastName}"
> >                                         label="#{msgBundle['lname2']}"
> > required="true"
> >                                         columns="#22" />
> >                                 </tr:panelHorizontalLayout>
> > </tr:panelFormLayout>
> >
> > Any suggestions to change the label alignment correctly?
> >
> >
> > Thanks.
> >
> >
>

Mime
View raw message