myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burghard Britzke <b...@charmides.in-berlin.de>
Subject [Trinidad] sorting
Date Mon, 30 Jun 2008 10:00:26 GMT
I provide the following jsp

<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:tr="http://myfaces.apache.org/trinidad">
	<jsp:directive.page contentType="text/html; charset=UTF-8"/>
     <jsp:text><![CDATA[<?xml version="1.0" encoding="UTF-8" ?>]]></

jsp:text>
   <f:view>
     <tr:document title="Rulesets">
             <tr:form>
                <tr:table var="row" value="#{ManagedBean.list}"  
rows="4">
                   <tr:column sortProperty="id" sortable="true"  
align="right">
                     <f:facet name="header"><h:outputText value="id"/ 
 ></f:facet>
                      <tr:outputText value="#{row.id}"></tr:outputText>
                   </tr:column>
                   <tr:column sortProperty="name" sortable="true">
                      <f:facet name="header"><h:outputText  
value="Name"/></f:facet>
                      <tr:outputText value="#{row.name}"></ 
tr:outputText>
                   </tr:column>
                </tr:table>
             </tr:form>
     </tr:document>
    </f:view>
</jsp:root>

the list() method of ManagedBean delivers a list of seven rows with an  
int id and String name.
the table renders 4 rows and put the row navigator widgets on the top  
of the table.
but when I click on the navigator widgets it does not navigate to the  
next page. but it requests a new list from the ManagedBean.
even when I try to sort - only a new list ist requested from the  
ManagedBean but it is not sorted.
did I miss something?


Mime
View raw message