Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-10-31 19:22:37

http-proxy
New member
Registered: 2009-10-31
Posts: 1

Xinha integration with Java / Rich Faces and ajax4jsf

Hallo,
I've explored xinha as a formidable wysiwyg html editor and I'm fond of it.

I integrated it successfully into a Java/JSF/Richfaces application.

However, for maximum confidence, there is an issue when using ajax4jsf and a 'xinhayfied' textfield:

On a loaded xhtml jsf page, xinha loads fine.
Now, it trigger an ajax request to the server side and modify a jsf backing bean, that holds the xinha textfield's string value.

After that this string is modifed, a partial page refresh is done.
Then, the new string content is displayed in the textfield as wanted, but unfortunately xinha has vanished and only the plain large textfield is shown.

Is there any way to reinitialize xinha again on the page. Currently only if the whole page is requested again, then xinha is built correctly again, via the line of my_config.js
" Xinha._addEvent(window,'load', xinha_init); ".

Is there any way to keep xinha alive? I'd appreciate any ideas very much! Thanks in advance,

http-proxy

Offline

#2 2009-11-10 09:22:26

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Xinha integration with Java / Rich Faces and ajax4jsf

This is beyond our sphere of influence I think, your problem is likely solvable, but with programming written by you to suit the specific way in which you're using Xinha.

In short, you'll need to re-initialize after scrubbing it (or better, don't scrub it at all, just move it out the way somewhere and put it back later).

Beware memory leaks when doing that though.


James Sleeman

Offline

Board footer

Powered by FluxBB