[richfaces-issues] [JBoss JIRA] Created: (RF-2266) Problems selecting an item from listShuffle after reRender

Antonio Junior (JIRA) jira-events at lists.jboss.org
Thu Feb 14 13:53:32 EST 2008


Problems selecting an item from listShuffle after reRender
----------------------------------------------------------

                 Key: RF-2266
                 URL: http://jira.jboss.com/jira/browse/RF-2266
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.1.4, 3.1.3, 3.2.0
         Environment: Firefox 2.0
IE7
JBoss 4.2.1
            Reporter: Antonio Junior


I have a <listShuttle> element in my page, and a <h:selectOneMenu> combined with a <a4j:support> which should reRender the listShuttle component.
Unfortunatelly, this doesn' t happens - the list values are shown but I'm unable to click on the elements. After the first access, when the lists are loaded in the session, making a new request re-render the whole page, and the listShuttle component works fine.
I saw a similar issue, that seems to be solved: RF1510.
I tried the versions 3.1.3, 3.1.4 and 3.2.0 - richfaces-ui-3.2.0-20080125.055336-75-bin.zip.

Below is the code where the problem happens:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/pages/layout.xhtml">

	<ui:define name="title"><h:outputText value="#{bundle['title.manageGroups']}"/></ui:define>

	<ui:define name="principal">
		<h:form>
		<h:panelGrid id="panel1" align="center" columns="2" border="0">
			<h:outputText id="label_tipoGrupo" styleClass="textInput" value="Grupo: " />
			<h:selectOneMenu id="chooseTypeGroup" styleClass="comboBox"
				value="#{managedGroupBean.grupoSelecionado}">
				<f:selectItems id="mySelectItems" value="#{managedGroupBean.grupos}" />
				<a4j:support event="onchange" action="#{managedGroupBean.listarUser}"
					reRender="lsUser, lsStructure" />
			</h:selectOneMenu>
		</h:panelGrid>
		
		
		<h:panelGrid id="panel2" align="center" columns="1" border="0">
		
		<h:outputText id="label_usuario" styleClass="textInput" value="Associacao de Usuarios" />
			
		<rich:listShuttle id="lsUser"
			sourceValue="#{managedGroupBean.listaUser}"
			targetValue="#{managedGroupBean.listaUserTarget}" var="items"
			sourceCaptionLabel="Usuario Sem Grupo" 
			targetCaptionLabel="Usuario Associado Grupo"
			converter="conversorUser">
			<rich:column>
				<h:outputText value="#{items.name}" />
			</rich:column>
		</rich:listShuttle>
				
		<h:outputText id="label_estrutura" styleClass="textInput" value="Associacao de Usuarios" />
				
		<rich:listShuttle id="lsStructure"
			sourceValue="#{managedGroupBean.listaEstrutura}"
			targetValue="#{managedGroupBean.listaEstruturaTarget}" var="items"
			sourceCaptionLabel="Estrutura Sem Grupo" 
			targetCaptionLabel="Estrutura Associada ao Grupo"
			converter="conversorStructure">
			<rich:column>
				<h:outputText value="#{items.name}" />
			</rich:column>
		</rich:listShuttle>		
		<a4j:commandButton styleClass="btnActions" id="btn_send" value="Salvar"  action="#{managedGroupBean.gravar}" style="visibility: visible;"/>		
		</h:panelGrid>
		</h:form>
	</ui:define>
	
</ui:composition>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list