This behaviour is found with firefox 2.0.0.5 on Mac OS X

Am 25.07.2007 um 13:07 schrieb Burghard Britzke:

may be this comes out of invalid xhtml
I let w3c.org check the xhtml output and it found two errors that lets me suspect this. there are multible "required attribute "type" not specified" for the <script> tags. and there is one 'value of attribute "method" cannot be "POST"; must be one of "get", "post"' for the <form> tag. May be I trapped into an error? should I log it into the jira?


Am 25.07.2007 um 12:17 schrieb Burghard Britzke:

did you test if this page works fine for you if you surround your <tr:document> in template.xhtml with a <f:view contentType="text/ xml"> element?

for me it does not!

if I force xhtml output for my pages the trinidad table paging and sorting controls does not work properly.

can anybody repeat this observation?


Am 21.07.2007 um 12:28 schrieb Matthias Wessendorf:

Hi Burghard,

this page works fine for me

http://facesgoodies.googlecode.com/svn/trunk/src/main/webapp/ all.xhtml

MyFaces 1.2.0, Trinidad 1.2.1 and Facelets

I also use a List, that contains but enties.

-Matthias

On 7/21/07, Burghard Britzke <[EMAIL PROTECTED]> wrote:
 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 <[EMAIL PROTECTED]> 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?




--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org



Reply via email to