Page 1 of 1

codeMirror render problem

Posted: 23 Oct 2012, 07:37
by dinco
Hello,

I was using PF 3.3 with PFE 0.5.1, i had a tabView with a codeMirror implementation on one of the tabs. The tabs had ajax tabchange events on them.
It was working fine until i migrated to PF 3.4.1 with PFE 0.6.1. Now when i change tab and come back to my codeMirror tab, there is a small textarea instead of the codeMirror (which means its not rendered?)
Then when i update the tab panel of codeMirror somehow (without changing the tab) it is rendered back again.

What seems to be the problem?

Thank you.

Re: codeMirror render problem

Posted: 23 Oct 2012, 09:47
by tandraschko
Same problem as here:
http://code.google.com/p/primefaces-ext ... %20Summary

Currently we have no solution but you can initialize it per JS:

http://code.google.com/p/primefaces-ext ... &start=100

Re: codeMirror render problem

Posted: 16 Nov 2012, 15:19
by Urbiwanus
I always get myCodeMirror.initialize() is not a function error
Whats wrong ?
INFO: Running on PrimeFaces 3.4.1
INFO: Running on PrimeFaces Extensions 0.6.1

Re: codeMirror render problem

Posted: 16 Nov 2012, 15:25
by tandraschko
Is myCodeMirror your widgetVar? You must also use 0.6.1 of the codemirror dependency.

Re: codeMirror render problem

Posted: 16 Nov 2012, 15:38
by Urbiwanus
Damn you are right
missed to update the version


Thanks a lot

Re: codeMirror render problem

Posted: 16 Nov 2012, 16:02
by Urbiwanus
Now codemirror reinits.

But an other problem occurs now
the edtior is just one line height
and the content is not readable anymore

after clicking inside the component the editor appears normal

any ideas ?