我正在尝试使用rich:editor in rich:popupPanel来更新数据表中的博客文章.我正在使用RichFaces 4.2.0.如果我在popupPanel外部使用该编辑器标签,它只能在内部时工作正常.有人有这个问题吗?
我的代码是这样的:
<h:form id="form">
<rich:dataTable value="#{managePosts.allBlogPosts}" var="post" id="manage_posts_data_table"
styleClass="manage_posts_table" rows="15">
<f:facet name="noData">
Nothing found
</f:facet>
...
<rich:column width="70px">
<h:link outcome="userViewPost.jsf">
<f:param name="post_id" value="#{post.id}" />
<h:graphicImage library="images" name="posts/manage/view.png" />
</h:link>
<a4j:commandLink render="editGrid" execute="@this"
oncomplete="#{rich:component('editPane')}.show()">
<h:graphicImage library="images" name="posts/manage/update.png" />
<f:setPropertyActionListener target="#{managePosts.editedPost}" value="#{post}" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
<rich:popupPanel header="#{msg.edit_selected_post}" id="editPane" width="685" height="600" modal="true">
<h:outputLabel value="#{msg.title}: " styleClass="form_labels" />
<h:inputText id="update_post_title" value="#{managePosts.editedPost.title}" required="true"
requiredMessage="#{msg.empty_field_err}" size="103">
<f:validateLength minimum="6" maximum="128"/>
</h:inputText>
<h:outputLabel value="" />
<rich:message for="update_post_title" />
<h:outputLabel value="" />
<h:outputLabel value="#{msg.content}: " …Run Code Online (Sandbox Code Playgroud)