4 Replies Latest reply on Feb 28, 2008 10:25 AM by ilya_shaikovsky

    listshuttle and status.onStop()

    c_inconnu

      Hi,
      When i select a row on a listShuttle, the onstop callback isn't called on the status component (it works with other components). I am willing to open a case, but since i have a a:support in the listshuttle, i don't know if the problem comes from listshuttle or a:support ?

      The simplified code:

      <r:scrollableDataTable value="#{userList.listAll()}" var="user">
      
       <r:column>
       <h:outputText value="#{user.login}" />
       </r:column>
      
       <a:support event="onselectionchange" />
       </r:scrollableDataTable>
      


      Thanks

        • 1. Re: listshuttle and status.onStop()
          ilya_shaikovsky

          <h:form>
          <rich:toolBar id="toolBar" itemSeparator="line" height="28px">
          <c:forEach items="#{toolBar.items}" var="item">
          <h:panelGroup>
          <h:graphicImage value="#{item.iconURI}" styleClass="pic"/>
          <h:outputLink value="#">
          <h:outputText value="#{item.label}"></h:outputText>
          </h:outputLink>
          </h:panelGroup>
          </c:forEach>
          </rich:toolBar>
          <rich:spacer height="20"></rich:spacer>

          <rich:listShuttle sourceValue="#{toolBar.freeItems}"
          targetValue="#{toolBar.items}" var="items" listHeight="300" listWidth="300"
          sourceCaptionLabel="Available Items"
          targetCaptionLabel="Currently Active Items"
          converter="listShuttleconverter">
          <rich:column width="18">
          <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
          </rich:column>
          <rich:column>
          <h:outputText value="#{items.label}"></h:outputText>
          </rich:column>
          <a4j:support event="onlistchanged" reRender="toolBar"/>
          </rich:listShuttle>
          <a4j:status onstart="alert('1')" onstop="alert('2')"/>
          </h:form>

          both onstart and onstop called for me.

          • 2. Re: listshuttle and status.onStop()
            ilya_shaikovsky

            sorry,

            <h:form>
             <rich:toolBar id="toolBar" itemSeparator="line" height="28px">
             <c:forEach items="#{toolBar.items}" var="item">
             <h:panelGroup>
             <h:graphicImage value="#{item.iconURI}" styleClass="pic"/>
             <h:outputLink value="#">
             <h:outputText value="#{item.label}"></h:outputText>
             </h:outputLink>
             </h:panelGroup>
             </c:forEach>
             </rich:toolBar>
             <rich:spacer height="20"></rich:spacer>
            
             <rich:listShuttle sourceValue="#{toolBar.freeItems}"
             targetValue="#{toolBar.items}" var="items" listHeight="300" listWidth="300"
             sourceCaptionLabel="Available Items"
             targetCaptionLabel="Currently Active Items"
             converter="listShuttleconverter">
             <rich:column width="18">
             <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
             </rich:column>
             <rich:column>
             <h:outputText value="#{items.label}"></h:outputText>
             </rich:column>
             <a4j:support event="onlistchanged" reRender="toolBar"/>
             </rich:listShuttle>
             <a4j:status onstart="alert('1')" onstop="alert('2')"/>
             </h:form>


            • 3. Re: listshuttle and status.onStop()
              c_inconnu

              really sorry, i mixed things up... my problem is with scrollableDataTable, not with listshuttle !
              maybe i should start another thread ???

              • 4. Re: listshuttle and status.onStop()
                ilya_shaikovsky

                No, do not warry. For now we have critical issue in 3.2.0 branch with selection. So it will be difficult to check this. Will be tetsted after resolution.

                http://jira.jboss.com/jira/browse/RF-1846