• Post Reply Bookmark Topic Watch Topic
  • New Topic

h:outputText and many spaces between 2 words problem  RSS feed

 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to use this tag to print "Hello Java!"
but it prints to me "Hello Java!" with one space would anyone knows a way to print 2 words woth more than one space in jsf please.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case you hadn't noticed, there's only one space in your posting, as well. That's because HTML compacts out the spaces. HTML is a markup language, not a layour language.

For precise spacing control, use CSS. For dirty spacing control the best you can to is insert non-breaking space characters ( ). However, JSF is usually marked up in XML form, and that's not one of the standard supported entities. You'd have to explicitly define it.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!