Use escape attribute

Julian Garcia
Union Soluciones Sistemas de Informacion
Transversal 30 # 106 A - 89 Bogota, D.C.
Telefono No. (571) 256 00 79 - (57) 300 215 06 07
Fax No. (571) 623 17 48

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: Miercoles, 14 de Septiembre de 2005 08:08 a.m.
Para: [email protected]
Asunto: Displaying certain characters using bundles


Hi,

I'm currently trying to use the following:

<h:commandLink id="clChangePassword"
action="#{mybean.showChangePassword}" immediate="true"
value="#{bundle['menu.changePassword']}"/>             

In my bundle, changePassword is defined in a properties file as follows:


menu.changePassword=Change&nbsp;Password

This renders as: Change&nbsp;Password instead of Change Password...

The &nbsp; was there because the page was previously written in Struts
and the space was displayed properly when the Struts was rendered using:

<bean:message bundle="mybundle" key="menu.changePassword"/> 

My question is the following: is there a way to keep the property as is
in the properties file, yet get MyFaces to render the page the space
properly or do I have to change the property to:
menu.changePassword=Change Password ?

Thanks a lot,

Greg


Reply via email to