• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help !!!! Facing problem with display of data fetched from Database  RSS feed

 
nitude gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am fetching data from database which is in the format
0007256231<3spaces>004
but when I display it on screen it is modified to
0007256231<1space>004
why it is happening I am not ableto get.
I am using backing bean as policySearchBean.java

this is the piece of code which is displaying it on screen
 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML clients typically compact out multiple spaces when formatting text displays. It's not a problem specific to JSF or even Java in general.

One common solution for this is to substitute non-break space characters (nbsp) for the spaces, but it's generally a poor substitute.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!