• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to provide whitespace in JSF ?

 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without using css do we have any other option to provide white space between components ?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
Roopa Bhuvaneswari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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

please friends .....
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator


No My friend,

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

please ...........................
 
H saxena
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try #160; to provide whitespace.

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