1 Reply Latest reply on Mar 3, 2008 5:27 AM by ilya_shaikovsky

    List Shuttle Problem - impossible to select a row after rere

    yossishemer

      List can't be selected after reRender (by radio buttons using a4j support )
      this bug is already reported at Jboss bug list (http://jira.jboss.com/jira/browse/RF-1510) and marked as fixed in Richfaces 3.1.3 version
      i'm using Tomcat 6 and Richfaces 3.1.4 but unfortunatly can't see this fix.
      i've also run it under 3.1.3 and still face this bug.
      Is somebody have fix it or manged to resolve it ?

      this is the code i'm running :

      <a4j:form id="form1">

      <!-- THIS REGION RENDERES THE SHUTTLE IF IT NEEDS -->

      <a4j:region renderRegionOnly="false" immediate="true">
      <h:selectOneRadio id="provMethod" value="#{contentInventoryList.editBean.selectedMethod}"
      valueChangeListener="#{contentInventoryList.editBean.selectProvisioningMethod}" layout="pageDirection" >
      <f:selectItems value="#{contentInventoryList.editBean.methodsSelect}"/>
      <a4j:support event="onclick" reRender="suttlesRgn"/>
      </h:selectOneRadio>
      </a4j:region>
      <a4j:outputPanel id="suttlesRgn" ajaxRendered="true" >

      <!-- TAGS -->
      <rich:listShuttle id="shuttle" rendered="#{contentInventoryList.editBean.shuttleRendered}" sourceValue="#{contentInventoryList.editBean.shuttleSourceValue}" targetValue="#{contentInventoryList.editBean.shuttleTargetValue}" var="shuttleItem" converter="#{contentInventoryList.editBean.shuttleItemsConverter}">
      <rich:column width="16">
      <h:graphicImage value="#{shuttleItem.iconURI}" styleClass="pic"/>
      </rich:column>
      <rich:column>
      <h:outputText value="#{shuttleItem.label}"/>
      </rich:column>
      </rich:listShuttle>

      <!-- Collectors -->
      <h:selectOneMenu id="collectorsSelect" rendered="#{contentInventoryList.editBean.collectorRendered}" valueChangeListener="#{contentInventoryList.editBean.selectCollector}"
      value="#{contentInventoryList.editBean.selectedCollector}"
      styleClass="combo">
      <f:selectItems value="#{contentInventoryList.editBean.collectorsSelect}"/>
      </h:selectOneMenu>

      <!-- Providers -->
      <h:selectOneMenu id="providersSelect" rendered="#{contentInventoryList.editBean.providerRendered}" valueChangeListener="#{contentInventoryList.editBean.selectProvider}" value="#{contentInventoryList.editBean.selectedProvider}" styleClass="combo">
      <f:selectItems
      value="#{contentInventoryList.editBean.providersSelect}"/>
      </h:selectOneMenu>

      </a4j:outputPanel>

      </a4j:form>


      ************
      The first a4j region displays 3 radio buttons, when user clicks on 1 of them Ajax call is send and and the relevant component rendered (shuttle or combo) in the second a4j rendered region.
      if the first rendered component is not the list shuttle and we display it afterwards(after reRender) than its impossible to select a row

      please help !