Hello,
I use JSF 1.2 and Facelets to generate a form automatically. This works so far well. But if I have a label with line breaks, JSF does not convert the line breaks into �
� tags. Is there a hack to convert line breaks into �
� tags?
A little example
Code:
<h:outputLabel value="#{component.label}" for="#{component.id}" />
<h:inputText value="#{component.value}" id="#{component.id}" />
component.label = �First Line\nSecond Line�
component.value = "UserInput"
This is rendered to:
First Line Second Line [UserInput]
Instead of:
First Line [UserInput]
Second Line
One possible solution is to disable �escape�. But this is a bad solution because there are umlauts and angle brackets (�<�,�>�) in some texts for my labels. Does anyone know a better solution?
Regards
Martin