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

    ReRender paint2D component on onchange event of selectOneMenu

    qaelbdj

      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}">

                  </rich:paint2D>

              </h:panelGroup> 

              <h:panelGrid>

                      <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" />

                      </h:selectOneMenu>

                  </h:panelGrid>

          </h:panelGroup>

      </a4j:region>

       

      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