aspose file tools*
The moose likes JSF and the fly likes How to provide whitespace in JSF ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to provide whitespace in JSF ?" Watch "How to provide whitespace in JSF ?" New topic
Author

How to provide whitespace in JSF ?

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Without using css do we have any other option to provide white space between components ?


My Blog SCJP 5 SCWCD 5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16011
    
  19

The   HTML entity can do some of that. But for most purposes, CSS is the preferred way controlling page layout.


Customer surveys are for companies who didn't pay proper attention to begin with.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

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 ]
Roopa Bhuvaneswari
Greenhorn

Joined: Nov 10, 2010
Posts: 5



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

please friends .....
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
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

Joined: Nov 10, 2010
Posts: 5


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

Joined: Mar 20, 2007
Posts: 317
Cant you apply a css to the button? The css could have a padding of, say 10 px or so.
Roopa Bhuvaneswari
Greenhorn

Joined: Nov 10, 2010
Posts: 5


No My friend,

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

please ...........................
H saxena
Greenhorn

Joined: Nov 20, 2010
Posts: 4
Hi,
Try this one for space like " "
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<hutputText value="             " escape="false" />
and use this on for "BR"
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<t:htmlTag value="br"/> or
<hutputText value="br" escape="false" />
D hanu
Greenhorn

Joined: Jan 30, 2011
Posts: 4

Try #160; to provide whitespace.

#160; is JSF equivalent of html nbsp
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to provide whitespace in JSF ?