Page 1 of 1

ckEditor + tabView issue

Posted: 03 Dec 2012, 10:29
by Strannik
Hi

I am using p:tabView with ckEditor instance on each tab.
When I am switching between tabs the editor content is copied to my backing bean.

However after I press submit button the empty string is copied to backing bean for all tabs,
If I replace ckEditor with p:editor everything foes fine.
Please suggest.

<p:tabView var="subStory" value="#{story.subStories}"
dynamic="true" titleStyleClass="active-tab">
<p:tab title="#{linkController.getSubStoryTitle(subStory)}"
titleStyleClass="active-tab">
<pe:ckEditor value="#{subStory.text}" checkDirtyInterval="0"
language="#{userLocale.locale}" width="750px" height="500px" />
</p:tab>
</p:tabView>

<h:commandButton action="save" value="#{msg['buttons.save']}" />

PrimeFaces 3.4.1 + Primefaces extensions 0.6.1

Re: ckEditor + tabView issue

Posted: 03 Dec 2012, 10:58
by tandraschko
Please use forum search first -> http://code.google.com/p/primefaces-ext ... ail?id=250

there is currently no solution but you can call myWidgetVar.initialize() by yourself on the editor.

Re: ckEditor + tabView issue

Posted: 04 Dec 2012, 00:36
by Strannik
Thank you for the quick reply.

If i have one tab I can add this attribute to p:tabView
onTabShow="var1.initialize()"
where var1 is widgetVar for CkEditor.

However what should I do if I multiple tabs? I don't see any "show"/"click" handlers for p:tab.
Please advice.