cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter non-standard strings in webclient.properties

aprotogerellis
Champ in-the-making
Champ in-the-making
Hi,

I've looked all over the forum for this but can't find any mention - which could mean it simply isn't possible…

Is there a way to specify non-standard characters in the language files (webclient.properties, webclient_en_US.properties and so on).

For example a new line or carriage return, a space etc.

A couple of reasons for this:
- In some cases I'd like to split the message over two lines (e.g. the "Invalid username or password, please enter your standard network login in the format domain\username" looks very ugly on one line)
- I'd like to temporarily hide certain links such as the "Company Home". The easiest way would be to enter a space character instead of the "Company Home" text. Note that leaving the text completelly blank results in the UI look and feel to change a bit (the bars become thinner as there isn't any content)

Many thanks for any help on this.

Alex
1 REPLY 1

kevinr
Star Contributor
Star Contributor
You can add any valid UTF-8 character to a java messages property file using the \u0000 unicode format. However, it is up to the component that uses the string how it is output - and most of our strings are output to HTML which means line feeds and other whitespace will be ignored. You can try adding <br> tags - but the outputText component that displays the message may need the "escape='false'" attribute added to it first…

Thanks,

Kevin