I'm new to JSF. I'm having a problem with my JSF applciation.
I need to display user's input HTML contents (which created with Primefaces editor) in my application. Users need to print it out on papers with browser's "Print" function.
<h:outputText value="#{backingBean.htmlContents}" escape="false" />
Most of the time it works fine but sometimes the page does not render correctly. I suspect it was caused by mixing up JSF tags and HTML tags!?
I tried to use:
<p:editor disabled="true" value="#{backingBean.htmlContents}">
instead. But it does not display everything when the content is too long. and it seems that there is no way to make it auto resize its height based on the length of the content.
Does anyone have the same problem? how did you solve it?
Any help will be greatly appreciated.