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
ckEditor + tabView issue
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
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.
there is currently no solution but you can call myWidgetVar.initialize() by yourself on the editor.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests