I have two String
properties in my managed bean along with corresponding getters and setters.
@ManagedBean
@SessionScoped
public class EditorBean implements Serializable {
private String value="hello how are you";
private String message="hello how are you";
public EditorBean() {
value="hello how are you guys?";
message="dd";
}
// ...
}
I would like to render both strings in separate lines.
<h:outputText value="#{editorBean.message}" />
<h:outputText value="#{editorBean.value}" />
But they are shown in a single line.
ddhello how are you guys?
How is this caused and how can I solve it?