aspose file tools*
The moose likes JSF and the fly likes Spacing issue before h:commandLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Spacing issue before h:commandLink" Watch "Spacing issue before h:commandLink" New topic
Author

Spacing issue before h:commandLink

Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
So I'm running into a weird issue with spacing before a command link. Here's my code:



It should render as "Home - Administration - Logout". However, it's actually rendering as "Home - Administration -Logout". Notice the missing space before Logout. Is there something I'm missing here?
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Howzit Chris,

I just pasted this line into a test jsp, and it spaced correctly. Using MyFaces.

What I was thinking a solution could be was to put the " - " into a <hutputText ../> tag, with escape set to false. Perhaps you can try that and let us know if it solved the problem.
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
You can also use   to provide space.


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
sorry, html character is not visible in my previous reply.

Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
Again the same problem. I think JavaRanch has to provide preview option for reply message.

You can use &#160; to provide space.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spacing issue before h:commandLink