1 Reply Latest reply on Jan 29, 2008 6:04 AM by rhancke

    Help me listShuttle  does not show information

    janisabel

      Im using the component listShuttle and it does not mark ningun his mistake but it me does not fill the lists with the information the code is the following one:

      <?xml version="1.0" encoding="iso-8859-1"?>
      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      template="/layout/template.xhtml">



      <ui:define name="titulo">R.Puestos Administrativos</ui:define>

      <ui:define name="link">

      </ui:define>

      <ui:define name="body">

      <!--Main -->
      <a4j:form id="form">
      <a4j:region id="region">



      <a4j:outputPanel id="panelCombos" ajaxRendered="true">




      <s:fragment id="fragmentDependencia" rendered="#{catPuestos.muestraCombosDependencia}" >




      </s:fragment>

      <s:fragment id="fragmentNivel" rendered="#{catPuestos.muestraCombosNivel}" >




      </s:fragment>
      R.Puestos Administrativos:


      <a4j:status >
      <f:facet name="start">
      <h:graphicImage value="/imagenes/spinner.gif"/>
      </f:facet>
      </a4j:status>

      Dependencia:
      <a4j:region id="regionDependencia">
      <h:selectOneMenu value="#{selectorDependencia.seleccion}"
      valueChangeListener="#{catPuestos.nivelListener}"
      styleClass="ContenidoSelectPeriodos">
      <f:selectItems value="#{selectorDependencia.listaObjetos}" />
      <a4j:support event="onchange" reRender="panelCombos" />
      </h:selectOneMenu >
      </a4j:region>
      Nivel:
      <a4j:region id="regionSegundoNivel">
      <h:selectOneMenu
      id="SelectorNivel" value="#{selectorNivelJ.seleccion}"
      valueChangeListener="#{catPuestos.objetoListener}"
      styleClass="ContenidoSelectPeriodos">
      <f:selectItems value="#{selectorNivelJ.listaObjetos}" />
      <a4j:support event="onchange" reRender="panelObjetos" />
      </h:selectOneMenu>
      </a4j:region>

      </a4j:outputPanel >




      <a4j:outputPanel id="panelObjetos" ajaxRendered="true">

      <s:fragment id="fragmentobjeto" rendered="#{catPuestos.muestraObjeto}" >
      <rich:listShuttle id="lista" sourceValue="#{puestosDisponibles}"

      targetValue="#{puestosRelacion}" var="items" listHeight="300" listWidth="300"

      sourceCaptionLabel="Puestos Disponibles"

      targetCaptionLabel="Puestos Relacionados"

      converter="RpuestosConverter">

      <rich:column width="18">

      <h:outputText value="#{items.nombrePuesto}"/>

      </rich:column>

      <rich:column>

      <h:outputText value="#{items.nombrePuesto}"/>

      </rich:column>

      <a4j:support event="onlistchanged" reRender="panelObjetos"/>

      </rich:listShuttle>
      </s:fragment>


      <s:fragment rendered="#{catPuestos.muestraObjeto}"> <h:commandLink
      action="#{catPuestos.guardarPuestosRelacion}"
      onmouseout="MM_swapImgRestore()"
      onmouseover="MM_swapImage('form:APLICAR','','imagenes/botones/botonAplicar2.png',1)">
      <h:graphicImage url="imagenes/botones/botonAplicar1.png" id="APLICAR" value="APLICAR" styleClass="ImagenBotonBlanco" />
      </h:commandLink> </s:fragment>

      </a4j:outputPanel >

      </a4j:region>
      </a4j:form>
      </ui:define>
      </ui:composition>

        • 1. Re: Help me listShuttle  does not show information
          rhancke

          janisabel,

          Maybe, this post can solve your doubts about ListShuttle: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126838
          There are replies with source and war codes to download and test.


          "janisabel" wrote:
          Im using the component listShuttle and it does not mark ningun his mistake but it me does not fill the lists with the information the code is the following one:

          <?xml version="1.0" encoding="iso-8859-1"?>
          <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
          xmlns:s="http://jboss.com/products/seam/taglib"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:c="http://java.sun.com/jstl/core"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          template="/layout/template.xhtml">



          <ui:define name="titulo">R.Puestos Administrativos</ui:define>

          <ui:define name="link">

          </ui:define>

          <ui:define name="body">

          <!--Main -->
          <a4j:form id="form">
          <a4j:region id="region">



          <a4j:outputPanel id="panelCombos" ajaxRendered="true">




          <s:fragment id="fragmentDependencia" rendered="#{catPuestos.muestraCombosDependencia}" >




          </s:fragment>

          <s:fragment id="fragmentNivel" rendered="#{catPuestos.muestraCombosNivel}" >




          </s:fragment>
          R.Puestos Administrativos:


          <a4j:status >
          <f:facet name="start">
          <h:graphicImage value="/imagenes/spinner.gif"/>
          </f:facet>
          </a4j:status>

          Dependencia:
          <a4j:region id="regionDependencia">
          <h:selectOneMenu value="#{selectorDependencia.seleccion}"
          valueChangeListener="#{catPuestos.nivelListener}"
          styleClass="ContenidoSelectPeriodos">
          <f:selectItems value="#{selectorDependencia.listaObjetos}" />
          <a4j:support event="onchange" reRender="panelCombos" />
          </h:selectOneMenu >
          </a4j:region>
          Nivel:
          <a4j:region id="regionSegundoNivel">
          <h:selectOneMenu
          id="SelectorNivel" value="#{selectorNivelJ.seleccion}"
          valueChangeListener="#{catPuestos.objetoListener}"
          styleClass="ContenidoSelectPeriodos">
          <f:selectItems value="#{selectorNivelJ.listaObjetos}" />
          <a4j:support event="onchange" reRender="panelObjetos" />
          </h:selectOneMenu>
          </a4j:region>

          </a4j:outputPanel >




          <a4j:outputPanel id="panelObjetos" ajaxRendered="true">

          <s:fragment id="fragmentobjeto" rendered="#{catPuestos.muestraObjeto}" >
          <rich:listShuttle id="lista" sourceValue="#{puestosDisponibles}"

          targetValue="#{puestosRelacion}" var="items" listHeight="300" listWidth="300"

          sourceCaptionLabel="Puestos Disponibles"

          targetCaptionLabel="Puestos Relacionados"

          converter="RpuestosConverter">

          <rich:column width="18">

          <h:outputText value="#{items.nombrePuesto}"/>

          </rich:column>

          <rich:column>

          <h:outputText value="#{items.nombrePuesto}"/>

          </rich:column>

          <a4j:support event="onlistchanged" reRender="panelObjetos"/>

          </rich:listShuttle>
          </s:fragment>


          <s:fragment rendered="#{catPuestos.muestraObjeto}"> <h:commandLink
          action="#{catPuestos.guardarPuestosRelacion}"
          onmouseout="MM_swapImgRestore()"
          onmouseover="MM_swapImage('form:APLICAR','','imagenes/botones/botonAplicar2.png',1)">
          <h:graphicImage url="imagenes/botones/botonAplicar1.png" id="APLICAR" value="APLICAR" styleClass="ImagenBotonBlanco" />
          </h:commandLink> </s:fragment>

          </a4j:outputPanel >

          </a4j:region>
          </a4j:form>
          </ui:define>
          </ui:composition>