[jboss-user] [JBossCache] - listShuttle

janisabel do-not-reply at jboss.com
Fri Jan 25 10:25:19 EST 2008


I am 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">
    
        
                    R.Puestos Administrativos:
                    
                    
				       <a4j:status >                                                                         
						        <f:facet name="start">
						           <h:graphicImage value="/imagenes/spinner.gif"/>
						        </f:facet>
						</a4j:status> 
				                   
                    
        
       <s:fragment id="fragmentDependencia" rendered="#{catPuestos.muestraCombosDependencia}" >
      
        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>					
        
      
      </s:fragment>
      
      <s:fragment id="fragmentNivel"  rendered="#{catPuestos.muestraCombosNivel}" >
      
        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>
        
      
      </s:fragment>
       
    </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>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123530#4123530

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123530



More information about the jboss-user mailing list