This content has been marked as final.
Show 3 replies
-
1. Re: rich:editor not working correctly on a rich:modalPanel
nbelaevski Mar 21, 2009 8:49 PM (in response to maguri)Hello,
Please take a look at this issue: https://jira.jboss.org/jira/browse/RF-5268 -
2. Re: rich:editor not working correctly on a rich:modalPanel
strannik Oct 20, 2009 4:16 AM (in response to maguri)I applied workaround but still couldn't move focus to editor. My code
<rich:modalPanel id="newsWindow" autosized="true" width="350" domElementAttachment="parent"> <f:facet name="header"> <h:panelGroup> <h:outputText value="#{msg['news.add']}" /> </h:panelGroup> </f:facet> <f:facet name="controls"> <h:panelGroup> <rich:componentControl for="newsWindow" attachTo="cancel" operation="hide" event="onclick" /> </h:panelGroup> </f:facet> <h:form id="editForm"> <a4j:outputPanel ajaxRendered="true"> <h:messages id="error" /> </a4j:outputPanel> <h:panelGrid columns="2" styleClass="label left" id="fieldsGrid"> <h:outputText value="#{msg['news.title']}" /> <h:inputText id="title" size="30" value="#{currentNews.title}" required="true" requiredMessage="#{msg['news.title.required']}" /> <h:outputText value="#{msg['news.text']}" /> <rich:editor id="editor" width="330" height="150" value="#{currentNews.text}" /> </h:panelGrid> <script type="text/javascript"> function windowclose(){ if (document.getElementById('editForm:error')==null){ Richfaces.hideModalPanel('newsWindow'); }; }; </script> <div class="buttonGroup"><a4j:commandButton id="save" action="#{adminController.saveAnnouncement(currentNews, adminBean)}" reRender="newsForm" value="#{msg['buttons.save']}" oncomplete="windowclose();"> </a4j:commandButton> <a4j:commandButton id="cancel" oncomplete="Richfaces.hideModalPanel('newsWindow');" value="#{msg['buttons.cancel']}" immediate="true"> </a4j:commandButton></div> </h:form> </rich:modalPanel>
-
3. Re: rich:editor not working correctly on a rich:modalPanel
strannik Oct 21, 2009 6:08 AM (in response to maguri)Any updates? Actually I used workaround from https://jira.jboss.org/jira/browse/RF-5268.