You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Daniel Hannum <dh...@quovadx.com> on 2006/12/15 15:44:44 UTC

Making labels wrap

Hi, I have a few labels (on radio buttons) that are VERY long. I can't get
them to wrap though. selectOneRadio will put nowrap on the td that surrounds
the label. I've tried putting the css white-space tag everywhere I could.

 

I could probably redesign the page to eliminate this, but I'd like to know
if there are options I've overlooking.

 

Thanks.

Dan


Re: Re: Making labels wrap

Posted by Adam Winer <aw...@gmail.com>.
If you're using outputLabel in conjunction with an input
component, you should set simple="true" on the input
component.

Then you'd
  - Also set required="true" on the outputLabel to get the
    icon in the right spot
  - Also add a tr:message to get the help text to show

-- Adam


On 12/16/06, Robert Morse <rm...@mdesignz.com> wrote:
> I have experienced the same problem.  I tried tr:outputLabel and that
> wraps, but if the field is required, then the designator shows up
> alongside the first radio button.  There's no way that I found to
> have it place the required indicator near the text.  Help text for
> the control is also broken.
>
>
> On Dec 15, 2006, at 7:44 AM, Daniel Hannum wrote:
>
> > Hi, I have a few labels (on radio buttons) that are VERY long. I
> > can't get
> > them to wrap though. selectOneRadio will put nowrap on the td that
> > surrounds
> > the label. I've tried putting the css white-space tag everywhere I
> > could.
> >
> >
> >
> > I could probably redesign the page to eliminate this, but I'd like
> > to know
> > if there are options I've overlooking.
> >
> >
> >
> > Thanks.
> >
> > Dan
> >
>
>

Re: Making labels wrap

Posted by Robert Morse <rm...@mdesignz.com>.
I have experienced the same problem.  I tried tr:outputLabel and that  
wraps, but if the field is required, then the designator shows up  
alongside the first radio button.  There's no way that I found to  
have it place the required indicator near the text.  Help text for  
the control is also broken.


On Dec 15, 2006, at 7:44 AM, Daniel Hannum wrote:

> Hi, I have a few labels (on radio buttons) that are VERY long. I  
> can't get
> them to wrap though. selectOneRadio will put nowrap on the td that  
> surrounds
> the label. I've tried putting the css white-space tag everywhere I  
> could.
>
>
>
> I could probably redesign the page to eliminate this, but I'd like  
> to know
> if there are options I've overlooking.
>
>
>
> Thanks.
>
> Dan
>