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 Re: [Trinidad] sorting table, table range navigation...
Date Sat, 21 Jul 2007 09:18:06 GMT
BTW the page does not reload in response of a click. should it?

Am 21.07.2007 um 11:10 schrieb Burghard Britzke:

>
> I use the <tr:document>
>
> the managed bean returns a java.util.List. In the docs there are  
> notes about a CollectionModel and an "underlying table model". what  
> is it? is it my managed bean?
>
> my page looks like this:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
>           xmlns:f="http://java.sun.com/jsf/core"
>           xmlns:h="http://java.sun.com/jsf/html"
>           xmlns:tr="http://myfaces.apache.org/trinidad">
> <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="#{rulesetMB.list}" rows="3">
>                   <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:column>
>                      <f:facet name="header"><h:outputText  
> value="aktiviert"/></f:facet>
>                      <tr:selectOneRadio value="#{row.active}"  
> layout="horizontal" >
>                         <tr:selectItem  value="true"  label="Ja"/>
>                         <tr:selectItem  value="false" label="Nein"/>
>                      </tr:selectOneRadio>
>                   </tr:column>
>                </tr:table>
>             </tr:form>
>     </tr:document>
>    </f:view>
> </jsp:root>
>
> Am 21.07.2007 um 03:31 schrieb Adam Winer:
>
>> Do you have a trh:body or tr:document on the page?
>> These are (at least for 1.0.1) required for PPR to function.
>>
>> -- Adam
>>
>>
>> On 7/20/07, Burghard Britzke <bubi@charmides.in-berlin.de> wrote:
>>>
>>> I am new to trinidad and tried to play a little bit with the  
>>> <tr:table>.I
>>> enabled table paging with the attribut rows="15" for the <tr:table>
>>> I enabled table sorting with the sortProperty="name"  
>>> sortable="true" for the
>>> <tr:column>
>>>
>>> the controls are shown as expected. but do nothing on click.
>>>
>>> I read the FAQ at http://wiki.apache.org/myfaces/FAQ . But
>>> yes I defined the ResourceServlet for the ADF resource mapping in  
>>> web.xml.
>>> I read the documentation
>>> at http://myfaces.apache.org/trinidad/devguide/table.html .
>>> But it is not clear to me if I have to code an own "underlying  
>>> table model"
>>> which supports sorting. And (if I have to) how to "underly" it.
>>>
>>> has anybody done it?
>


Mime
View raw message