Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 42674 invoked from network); 7 Mar 2008 14:12:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2008 14:12:26 -0000 Received: (qmail 62475 invoked by uid 500); 7 Mar 2008 14:12:17 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 62438 invoked by uid 500); 7 Mar 2008 14:12:17 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 62426 invoked by uid 99); 7 Mar 2008 14:12:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 06:12:17 -0800 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=FUZZY_CREDIT,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.162.108.65] (HELO mail292.jndata.dk) (193.162.108.65) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 14:11:29 +0000 Received: by mail292.jndata.dk; Fri, 07 Mar 2008 15:10:43 +0100 Received: by sjn00077.jndata.local; Fri, 07 Mar 2008 15:10:33 +0100 Received: by mail81.jndata.dk; Fri, 07 Mar 2008 15:10:33 +0100 Received: from DA1633.JBMAIN00.CORP.JYSKEBANK.NET ([10.16.164.32]) by da1444.JBMAIN00.CORP.JYSKEBANK.NET with Microsoft SMTPSVC(6.0.3790.3959); Fri, 7 Mar 2008 15:11:39 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8805D.29037335" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Problem with tomehawk datatable, selectBooleanCheckbox and sorting Date: Fri, 7 Mar 2008 15:11:38 +0100 Message-ID: <6A279A8C8B428F43B80316ECD06CDE713874C0@DA1633.JBMAIN00.CORP.JYSKEBANK.NET> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with tomehawk datatable, selectBooleanCheckbox and sorting Thread-Index: AciAXSkt5cqQCcBHSVCqi9U120CFfg== From: "Anders H. Andersen" To: X-OriginalArrivalTime: 07 Mar 2008 14:11:39.0420 (UTC) FILETIME=[295AF5C0:01C8805D] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C8805D.29037335 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The problem is that the checked boxes does not move when the sorting is changed. I can see from the log that the set and get metodes ond checkbox isnt's called when the sorting is changed, so that explains why the marks on the checkbox does not follow the sorting. How can I make the datatable call the setter and getters on the checkbox? The code look like these:       regards Anders ------_=_NextPart_001_01C8805D.29037335 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Problem with tomehawk datatable, selectBooleanCheckbox and = sorting

The problem is that the checked boxes = does not move when the sorting is changed.

I can see from the log that the set = and get metodes ond checkbox isnt's called when the sorting is changed, = so that explains why the marks on the checkbox does not follow the = sorting. How can I make the datatable call the setter and getters on the = checkbox?

The code look like these:

<t:dataTable = id=3D"payments"
        =         value=3D"#{paymentBB.uiPayments}" = var=3D"paymentUI"
        =         rendered=3D"#{paymentBB.showPayments}"
        =         sortable=3D"false"
        =         preserveRowStates=3D"true"
        =         rows=3D"#{paymentBB.noOfRowsPrPage}" &nbs= p;            =         =         =         =         =         =        
        =         rowIndexVar=3D"rowIndex"
        =         first=3D"#{paymentBB.rowIndex}"   =         =         =         =         =         =         =        
        =         styleClass=3D"TableStandard" = columnClasses=3D",FixedBSKreditorColumWidth = Label,Amount,Label,Label" rowClasses=3D"Even, Odd"  = >

        =         <t:column sortable=3D"false" >
        =         =         <f:facet name=3D"header">
        =         =         =         <h:outputText = value=3D"#{text['text.afvis']}" />  =         =         =         =         =         =         =         =         =        

        =         =         </f:facet>
        =         =         <t:selectBooleanCheckbox = value=3D"#{paymentUI.checked}"/>
        =         </t:column>
        =         <t:column sortable=3D"true">
        =         =         <f:facet name=3D"header">
        =         =         =         <t:commandSortHeader = columnName=3D"modtager" = arrow=3D"false">       =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =        

        =         =         =         =         <f:facet name=3D"ascending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortop.gif" border=3D"0" = alt=3D""/>
        =         =         =         =         </f:facet>
        =         =         =         =         <f:facet name=3D"descending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortned.gif" border=3D"0" = alt=3D""/>
        =         =         =         =         </f:facet>
        =         =         =         =         <h:outputText id=3D"txtModtager" = style=3D"text-align:left;"
        =         =         =         =         =         title=3D"#{text['text.tabelTitle']}"
        =         =         =         =         =         value=3D"#{text['text.modtager']}" = />
        =         =         =         </t:commandSortHeader>
        =         =         </f:facet>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.modtager}" />
        =         </t:column>
        =         <t:column sortable=3D"true" = styleClass=3D"Amount">
        =         =         <f:facet name=3D"header">
        =         =         =         <t:commandSortHeader = styleClass=3D"RightSpan" arrow=3D"false" = columnName=3D"beloeb" = title=3D"#{text['text.tabelTitle']}">

        =         =         =         =         <f:facet name=3D"ascending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortop.gif" border=3D"0" = alt=3D""/>
        =         =         =         =         </f:facet>
        =         =         =         =         <f:facet name=3D"descending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortned.gif" border=3D"0" = alt=3D""/>
        =         =         =         =         </f:facet>      =         =         =         =         =         =         =         =         =         =        

        =         =         =         =         <h:outputText = value=3D"#{text['text.beloeb']}" />
        =         =         =         </t:commandSortHeader>
        =         =         </f:facet>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.beloeb}">
        =         =         =         <f:convertNumber maxFractionDigits=3D"2" = minFractionDigits=3D"2"  />
        =         =         </h:outputText>
        =         </t:column>
        =         <t:column sortable=3D"true">
        =         =         <f:facet name=3D"header" >
        =         =         =         <t:commandSortHeader arrow=3D"false" = columnName=3D"dato" = title=3D"#{text['text.tabelTitle']}">

        =         =         =         =         <f:facet name=3D"ascending" >
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortop.gif" border=3D"0" = alt=3D"" />
        =         =         =         =         </f:facet>
        =         =         =         =         <f:facet name=3D"descending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortned.gif" border=3D"0" = alt=3D"" />
        =         =         =         =         </f:facet>      =         =         =         =         =         =         =         =         =         =        

        =         =         =         =         <h:outputText
        =         =         =         =         =         title=3D"#{text['text.tabelTitle']}"
        =         =         =         =         =         value=3D"#{text['text.dato']}" />
        =         =         =         </t:commandSortHeader>
        =         =         </f:facet>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.betalingsdato}">
        =         =         =         <ebf:dateConverter = pattern=3D"#{formatBB.datoFormat}" />
        =         =         </h:outputText>
        =         </t:column>

        =         <t:column defaultSorted=3D"true" = sortable=3D"true" >
        =         =         <f:facet name=3D"header">
        =         =         =         <t:commandSortHeader columnName=3D"konto" = arrow=3D"false">  =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =         =        

        =         =         =         =         <f:facet name=3D"ascending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortop.gif" border=3D"0" = alt=3D"" />
        =         =         =         =         </f:facet>
        =         =         =         =         <f:facet name=3D"descending">
        =         =         =         =         =         <t:graphicImage = url=3D"/images/listesortned.gif" border=3D"0" = alt=3D"" styleClass=3D""/>

        =         =         =         =         </f:facet>      =         =         =         =         =         =         =         =         =         =        

        =         =         =         =         <h:outputText
        =         =         =         =         =         title=3D"#{text['text.tabelTitle']}"
        =         =         =         =         =         value=3D"#{text['text.konto']}" = />        =         =         =         =         =         =         =         =         =         =        

        =         =         =         </t:commandSortHeader>
        =         =         </f:facet>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.regNr}" = /><f:verbatim>&nbsp;</f:verbatim>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.kontoNr}">
        =         =         =         <jbsf:kontoConverter />
        =         =         </h:outputText>
        =         =         <f:verbatim>&nbsp;</f:verbatim>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.kontoNavn}" />
        =         =         <f:verbatim>&nbsp;</f:verbatim>
        =         =         <h:outputText = value=3D"#{paymentUI.skyggeSaldoTekst}" /><t:htmlTag = value=3D"br"/>   =         =         =         =         =         =         =         =        

        =         =         <h:outputText = value=3D"#{paymentUI.payment.kontoEjer}" /><t:htmlTag = value=3D"br"/>
        =         =         <h:outputText = value=3D"#{paymentUI.payment.kontoMedejer}" />
        =         </t:column>
        </t:dataTable>

regards
Anders

------_=_NextPart_001_01C8805D.29037335--