В динамически подгружаемой страницы не работает сортировка таблицы, при нажатии на хидер столбца таблица рендерится а сортировки не происходит. Вод код страницы основной | Код | <%@ page language="java" contentType="text/html; charset=cp1251" pageEncoding="cp1251"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%> <%@ taglib prefix="rich" uri="http://richfaces.org/rich"%> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=cp1251"> <title>Dynamic include</title> <link href="styles/main.css" type=text/css rel=stylesheet> </head> <body> <div id="outerWrapper"> <div id="header"><jsp:include page="header.jsp" /></div> <div id="contentWrapper"> <div id="rightColumn"><jsp:include page="/rightColumn.jsp" /></div> <div id="leftColumn"><jsp:include page="/leftColumn.jsp" /></div> <div id="content"> <a4j:status id="stat"> <f:facet name="start"> <h:graphicImage url="/images/ajax-loader.gif" /> </f:facet> </a4j:status> <br /> <a4j:include id="include" viewId="#{menu.contentPage}" /> <br /> </div> </div> <div id="footer"><jsp:include page="/footer.jsp" /></div> </div> </body> </f:view>
|
Код страницы, которая грузится динамическим инклудом | Код | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <f:subview id="content_page"> <h:form> <rich:dataTable value="#{cTable.testTableForSort}" var="item" rowClasses="row1,row2" styleClass="calls" headerClass="calls" columnClasses="calls" id="sortTable"> <rich:column sortBy="#{item.col1}"> <f:facet name="header"> <h:outputText value="Col 1" /> </f:facet> <h:outputText value="#{item.col1}" /> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Col 2" /> </f:facet> <h:outputText value="#{item.col2}" /> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Col 3" /> </f:facet> <h:outputText value="#{item.col3}" /> </rich:column> </rich:dataTable> </h:form> </f:subview>
|
Может, кто знает, как отсортировать эту таблицу?
|