hey, i've got the fckeditor working in my jsf page, was really simple, but now im trying to do something like this
but the html in the fckeditor is just #{template.html} instead of the value in the html variable...
<FCK:editor instanceName="EditorDefault" value="#{template.html}"/>but the html in the fckeditor is just #{template.html} instead of the value in the html variable...

Re: fckeditor and jsf
Re: fckeditor and jsf
for anyone else who is wondering, i got it to work by doing the following
<h:inputHidden id="EditorDefault___Config" value="FullPage=true"/> <h:inputHidden id="EditorDefault" value="#{template.html}"/> <iframe id="EditorDefault___Frame" frameborder="no" height="500" scrolling="no" width="100%" src="/itracEmail/fckeditor/editor/fckeditor.html?InstanceName=form1:contentpagetitle1:panelgroup1:EditorDefault&Toolbar=Default"> </iframe>Re: fckeditor and jsf
<c:set var="html" value="#{template.html}" /> <FCKeditor instanceName="cool" value="${html}" />This should work.
Re: fckeditor and jsf
<c:set var="html" value="#{template.html}" /> <FCKeditor instanceName="EditorDefault" value="${html}" />assuiming template bean is in request scope, you must provide in faces config:
<managed-bean> <managed-bean-name>template</managed-bean-name> <managed-bean-class>de.test.Template/managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>html</property-name> <value>#{param.EditorDefault}</value> </managed-property> </managed-bean>