[richfaces-issues] [JBoss JIRA] Created: (RF-5411) extendedDataTable: sortMode="multi" doesn't work.

Mikhail Vitenkov (JIRA) jira-events at lists.jboss.org
Wed Dec 17 09:11:56 EST 2008


extendedDataTable: sortMode="multi" doesn't work.
-------------------------------------------------

                 Key: RF-5411
                 URL: https://jira.jboss.org/jira/browse/RF-5411
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: IE6, IE7, FF 3.1.3, Safari 3.1, Opera 9.62(3.3.0.BETA4)
            Reporter: Mikhail Vitenkov
            Assignee: Nick Belaevski


#1. Use following code(rich:extendedDataTable+panelGrid with "Sort Mode" and "Selection Mode" controls).
<h:form>
		<h:panelGrid columns="2" columnClasses="top,top">
			<rich:extendedDataTable value="#{capitalsBean.capitals}" var="cap"
				id="table" width="580px" height="400px"
				sortMode="#{extendedTableBean.sortMode}"
				selectionMode="#{extendedTableBean.selectionMode}">
				<rich:column sortable="false" label="Flag">
					<f:facet name="header">
						<h:outputText value="Flag" />
					</f:facet>
					<h:graphicImage value="#{cap.stateFlag}" />
				</rich:column>
				<rich:column sortable="true" sortBy="#{cap.state}"
					filterBy="#{cap.state}" filterEvent="onkeyup" width="170px"
					label="State Name">
					<f:facet name="header">
						<h:outputText value="State Name" />
					</f:facet>
					<h:outputText value="#{cap.state}" />
				</rich:column>
				<rich:column sortable="true" sortBy="#{cap.name}"
					filterBy="#{cap.name}" filterEvent="onkeyup" width="170px"
					label="State Capital">
					<f:facet name="header">
						<h:outputText value="State Capital" />
					</f:facet>
					<h:outputText value="#{cap.name}" />
				</rich:column>
				<rich:column sortable="false" label="Time Zone"
					sortBy="#{cap.timeZone}">
					<f:facet name="header">
						<h:outputText value="Time Zone" />
					</f:facet>
					<h:outputText value="#{cap.timeZone}" />
				</rich:column>
			</rich:extendedDataTable>
			<rich:panel>
				<f:facet name="header">
					<h:outputText value="Sort/Selection modes changing" />
				</f:facet>
				<h:panelGrid columns="2">
					<h:outputText value="Sort Mode:" />
					<h:selectOneMenu value="#{extendedTableBean.sortMode}">
						<f:selectItem itemLabel="Single" itemValue="single" />
						<f:selectItem itemLabel="Multi" itemValue="multi" />
						<a4j:support event="onchange" ajaxSingle="true" reRender="table" />
					</h:selectOneMenu>
					<h:outputText value="Selection Mode:" />
					<h:selectOneMenu value="#{extendedTableBean.selectionMode}">
						<a4j:support ajaxSingle="true" event="onchange" reRender="table" />
						<f:selectItem itemLabel="Single" itemValue="single" />
						<f:selectItem itemLabel="Multi" itemValue="multi" />
						<f:selectItem itemLabel="None" itemValue="none" />
					</h:selectOneMenu>
				</h:panelGrid>
			</rich:panel>
		</h:panelGrid>
	</h:form>
#2. Set Sort Mode = "multi".
#3. Sort "Time Zone" column first by clicking on header.
#4. Sort "State Capital" column by header clicking.
#5. Verify "Time Zone" column sort order.

Actual behavior:
"Time Zone" column is unsorted like in "single" sort mode.

-- 
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