• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to provide whitespace in JSF ?

 
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without using css do we have any other option to provide white space between components ?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The   HTML entity can do some of that. But for most purposes, CSS is the preferred way controlling page layout.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim.

I solved that issue using


Here nbsp is not visible.

Actually we have CSS file but we are not allowed to modify it as it is from client side.

Thanks a lot for your valuable time.
[ October 17, 2008: Message edited by: Himanshu Gupta ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



Hii anyone please tell me the solution how to give whitespaces in jsf ?

please friends .....
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roopa, Welcome to Javaranch.

Tim and Himanshu have actually given a couple of solutions to your problem. Are you not able to use them with your scenario?
 
Roopa Bhuvaneswari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Thanks my friend,
but

Actually what i want was

i have created a panelgrid with three columns in that
Action : then drop down box then ok button in the same row

my problem was there was no spaces between drop down and ok button

i want solution for that please help me
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cant you apply a css to the button? The css could have a padding of, say 10 px or so.
 
Roopa Bhuvaneswari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


No My friend,

im not getting please tell me how to provide space between dropdown box and button.

please ...........................
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try this one for space like " "
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<h:outputText value="             " escape="false" />
and use this on for "BR"
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<t:htmlTag value="br"/> or
<h:outputText value="br" escape="false" />
 
Greenhorn
Posts: 4
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try #160; to provide whitespace.

#160; is JSF equivalent of html nbsp
 
reply
    Bookmark Topic Watch Topic
  • New Topic