1 Reply Latest reply on Jun 30, 2010 3:36 AM by ilya_shaikovsky

    ListShuttle strange behavior when wrapped in custom tag

    fct

      Hi,

       

      I´m trying to use ListShuttle in my custom tag, but ListShuttle has a strange behavior as doesn´t do binding in backing-bean, styles problems, attributes has default values, ...

       

      I need to wrap ListShuttle in my custom tag. Simplify the scenario, if I get ListShuttle demo for example, and only put the same example demo

      in other tag (custom tag) the behavior change.

       

      Demo code:

      ....

      <rich:listShuttle sourceValue="#{toolBar.freeItems}"
                  targetValue="#{toolBar.items}" var="items" listsHeight="150"
                  sourceListWidth="130" targetListWidth="130" 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" />
                  <a4j:support event="onorderchanged" reRender="toolBar" />
      </rich:listShuttle>

      ....

       

       

      customTag.xhtml:


      <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"

      <rich:listShuttle sourceValue="#{toolBar.freeItems}"
                  targetValue="#{toolBar.items}" var="items" listsHeight="150"
                  sourceListWidth="130" targetListWidth="130" 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" />
                  <a4j:support event="onorderchanged" reRender="toolBar" />
      </rich:listShuttle>

       

      </ui:composition>

       

       

       

      I use this tag in other page but the behavior is other:

      ...

      <a:customTag />

      ...


        • 1. Re: ListShuttle strange behavior when wrapped in custom tag
          ilya_shaikovsky
          has a strange behavior as doesn´t do binding in backing-bean, styles problems, attributes has default values, ...

          should be clarified more. do you passing some values using custom tag attributes and them not working? Please post concrete problem sample. Component itseld should not be the reason.. seems something wrong in tag usage.