4 Replies Latest reply on Jan 11, 2011 8:04 AM by Ilya Sorokoumov

    ReRender paint2D component on onchange event of selectOneMenu

    Tony Tony Newbie

      I have the following code (simplified):

      <a4j:region id="previewRegion">

          <h:panelGroup id="divPreviewContainer" styleClass="preview">               

              <h:panelGroup styleClass="jScrollPaneContainer">

                  <rich:paint2D id="pregPainter" cacheable="true" format="png" paint="#{paintBean.paint}" data="#{paintDataBean}">




                      <h:selectOneMenu value="#{confQuest.type}" converter="entConverter">

                          <f:attribute name="list" value="#{confQuest.version.supportedTypes}" />

                          <f:selectItems value="#{confQuest.version.supportedTypes}" />

                          <a4j:support event="onchange"   actionListener="#{confQuest.selectType}"   reRender="previewRegion" />






      When I change the selected item of the selectonemenu, the acrionListener's event is executing correctly, but the reRender's event isn't. The paint event of the paint2D element is not executing.


      What could be happening?


      Thank you