[richfaces-issues] [JBoss JIRA] Reopened: (RF-2239) listShuttle: doesn't works after ajax update

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Wed Oct 15 05:08:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Shaikovsky reopened RF-2239:
---------------------------------



I've reproduced at livedemo.

<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"
	xmlns:c="http://java.sun.com/jstl/core">

	<style>
.pic {
	margin-bottom: -4px;
	margin-right: 2px;
}
</style>
	<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="#" style="color:#{a4jSkin.generalTextColor}; text-decoration:none;" >
						<h:outputText value="#{item.label}"	/>
					</h:outputLink>
				</h:panelGroup>
			</c:forEach>
		</rich:toolBar>
		<rich:spacer height="20" />
		<a4j:commandButton reRender="output" oncomplete="#{rich:component('modal')}.show();"></a4j:commandButton>
	</h:form>
<rich:modalPanel id="modal">
		<a4j:form id="form">
		<a4j:outputPanel id="output">
		<rich:listShuttle sourceValue="#{toolBar.freeItems}"
			targetValue="#{toolBar.items}" var="items" listHeight="300"
			listWidth="300" sourceCaptionLabel="Available Items"
			targetCaptionLabel="Currently Active Items"
			converter="listShuttleconverter" oncopyclick="return false;" id="shuttle">
			<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>
		</a4j:outputPanel>
		</a4j:form>
		</rich:modalPanel>
</ui:composition> 


> listShuttle: doesn't works after ajax update
> --------------------------------------------
>
>                 Key: RF-2239
>                 URL: https://jira.jboss.org/jira/browse/RF-2239
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Ilya Shaikovsky
>            Assignee: Tsikhon Kuprevich
>             Fix For: 3.2.0
>
>
> 	<h:form>
> 		<h:selectBooleanCheckbox value="#{bean.enabled}" >
> 			<a4j:support reRender="list" event="onchange" ajaxSingle="true"/>
> 		</h:selectBooleanCheckbox>
> 		<a4j:outputPanel layout="none">
> 		<rich:orderingList value="#{capitalsBean.capitals}" var="cap" converter="converter" rendered="#{bean.enabled}" id="list">
> 			<rich:column> 
> 				<f:facet name="header">
> 					<h:outputText value="test"/>
> 				</f:facet> 
> 				<h:outputText value="#{cap.name}"/>	
> 				<f:facet name="footer">
> 					<h:outputText value="test"/>
> 				</f:facet>
> 			</rich:column>
> 		</rich:orderingList>
> 		</a4j:outputPanel>
> 		</h:form>
> Initial value of enabled = false.
> after checkbox activation - listShuttle rendered but doesn't works and layout broken.

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

        



More information about the richfaces-issues mailing list