hello,
I'm useing JSF form MyFaces implemetation and I have on problem with fck editor.
I need to edit some content from database so I load it with c:out
<FCK:editor id="fckeditorDefault" basePath="../../fckeditor/"
customConfigurationsPath="fckconfig.js"
height="300" >
<c:out value="#{visit.currentArticle.body}" escapeXml="false"/>
</FCK:editor>
But after openning page, fckeditor content is only: #{visit.currentArticle.body}
Do you know what is the problem????
My second problem is that w need to nest fck:editor inside form (I use h:form tag)
But fckeditor was not loading in form, so I sorround fck:edit tag with f:verbartim which interpretate html code which fck:editor generate.
And here i one another prbolem. When I try to load fck editor content with h:outputText :
<f:verbatim>
<FCK:editor id="fckeditorDefault" basePath="../../fckeditor/"
customConfigurationsPath="fckconfig.js"
height="300" >
<h:outputText value="#{visit.currentArticle.body}" />
</FCK:editor>
</f:verbatim>
the text from h:output test is diplayed outside the fckeditor.
When I copy editor outside h:form, without f:verbatim tags, evrything works fine, but then I can't get fck vale form request :/
Do you have any experience with my problems??
I'll be gretefull for any help.
Slawek
I'm useing JSF form MyFaces implemetation and I have on problem with fck editor.
I need to edit some content from database so I load it with c:out
<FCK:editor id="fckeditorDefault" basePath="../../fckeditor/"
customConfigurationsPath="fckconfig.js"
height="300" >
<c:out value="#{visit.currentArticle.body}" escapeXml="false"/>
</FCK:editor>
But after openning page, fckeditor content is only: #{visit.currentArticle.body}
Do you know what is the problem????
My second problem is that w need to nest fck:editor inside form (I use h:form tag)
But fckeditor was not loading in form, so I sorround fck:edit tag with f:verbartim which interpretate html code which fck:editor generate.
And here i one another prbolem. When I try to load fck editor content with h:outputText :
<f:verbatim>
<FCK:editor id="fckeditorDefault" basePath="../../fckeditor/"
customConfigurationsPath="fckconfig.js"
height="300" >
<h:outputText value="#{visit.currentArticle.body}" />
</FCK:editor>
</f:verbatim>
the text from h:output test is diplayed outside the fckeditor.
When I copy editor outside h:form, without f:verbatim tags, evrything works fine, but then I can't get fck vale form request :/
Do you have any experience with my problems??
I'll be gretefull for any help.
Slawek
Re: FCKeditror+JSF Problem with loading editor's content
Re: FCKeditror+JSF Problem with loading editor's content
Actually I'm also using Spirng for my web project. Finally I manage to load html content into fck editor. Simple I used {visit.currentArticle.body} expresion:

<FCK:editor id="fckeditorDefault" basePath="../../fckeditor/"
customConfigurationsPath="fckconfig.js"
height="300" >
${visit.currentArticle.body}
</FCK:editor>
I have to admit that some time jsf can behave very unpredictible, but for my exprience it depends on the implementation on JSF. I' useing 1.2 for now beacase 2 still causes many problems. I think that JSF+Sping+Hibernate is a good mix for web project and has good posibilities, but sometimes needs to more time for google's