File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes selectOneRadio with nowrap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneRadio with nowrap" Watch "selectOneRadio with nowrap" New topic

selectOneRadio with nowrap

ranjan Khaba

Joined: Jan 16, 2008
Posts: 22
I have a Table which is having three column. The second column is having selectOneRadio and label(on radio buttons) that are very long. I cannot get them to wrap through, when I resize the window. I have tried putting the css white-space:nowrap tag everywhere I could.
Note: 1. The Table will be taking in different ui. So, The second column is using the setRendered(boolean).
2. After increasing the width of the second column, It works fine for some UI, not for all.
3. The third column is having some text which has the white-space:nowrap.
4. When we resize the window, only the second column is collapse.
5. The first column is having only one word.

Any probable Solution,

ranjan Khaba

Joined: Jan 16, 2008
Posts: 22
I have solve my problem by putting
<hutputText value="" style="150px"/>
in the second column. But this is not the generic solution because, if the label of the radio button is greater than 200px, the same problem arises.
Suggestion are always welcome for a generic solution.
I agree. Here's the link:
subject: selectOneRadio with nowrap
It's not a secret anymore!