This post is about a small trick
How to show whitespace in ADF Faces component properly ?
Recently I found a question on OTN about this
How can I and spaces in the text property of a showDetailItem?
so thought to document it here for future reference
There is one more post about showing whitespace, check it
Showing white-spaces properly in ADF table column- 11g & 12c
Sometimes we need to insert some whitespace in between of some text as panelBox name, tab name in showDetailItem etc
In this case space appears in page editor but it doesn’t appear on page and you can not put spacer at these points because there is only one component
Suppose you have a panelBox and requirement is to show Oracle ADF as it’s header text . In this case providing space in propertyInspector doesn’t work , HTML entity for space also doesn’t work because of no DOCTYPE declaration
See here i added normal spaces in property of panelBox
But is doesn’t work 🙁
Now what to do ?
After lots of hit and tries finally i found that it work with equivalent entity number for
and this magic number is –
So tried this –
and output is
This is the small trick , sometimes you may need this 🙂
Cheers, Happy Learning 🙂
I’m an Oracle ACE, Blogger, Reviewer,
Technical Lead working on Oracle ADF