Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 98637 invoked from network); 6 Jul 2007 14:44:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 14:44:43 -0000 Received: (qmail 68902 invoked by uid 500); 6 Jul 2007 03:24:42 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 68871 invoked by uid 500); 6 Jul 2007 03:24:42 -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 68859 invoked by uid 99); 6 Jul 2007 03:24:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 20:24:42 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ivlad10@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 20:24:37 -0700 Received: by ug-out-1314.google.com with SMTP id t30so775722ugc for ; Thu, 05 Jul 2007 20:24:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ApIn8k1jD64A+RGY08hQ4NhaXfidzriI0SrkcQXhwIThjlSEcaX4QForPr5SBK6761rZt8/fZt2RKmZ7S6DAKnb3BXahFGTvzHsF/HE3ec+JP6s7Ip7UDP7R+K0zs24ZOfKsayz8NFhGEjenNRv1sEVt4yR4RKkZUKec37yLoeY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=f8oVYduazO/57LN5y8rAcuOo+/4JAyX8RTNCplj7HFpRYeROB9YNskE9Z1mXZSA7+XbXm6CO5crRguT0zrrpT0CoLKb0f33zdofB2kWO2VAcYTQMLETmtBSTcPDUnM7yhs1AoUz8BYsjFh80120B/A26ZBo7x99G9vvPPl9kdS4= Received: by 10.82.134.12 with SMTP id h12mr721503bud.1183692256248; Thu, 05 Jul 2007 20:24:16 -0700 (PDT) Received: by 10.82.148.19 with HTTP; Thu, 5 Jul 2007 20:24:16 -0700 (PDT) Message-ID: Date: Thu, 5 Jul 2007 23:24:16 -0400 From: "Vladimir Isakovich" To: "MyFaces Discussion" Subject: Re: Tomahawk+DataScroller+WorkingWithLargeTables In-Reply-To: <468DA4A3.9030502@voller-ernst.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45370_32805608.1183692256167" References: <2bd5ed640707022042p432719a5l32a8e5b7399ea879@mail.gmail.com> <2bd5ed640707030647w3aa5bfc5j3ff31bd254115442@mail.gmail.com> <8eed5c5b0707030836u2617930fgf93cb80a6c365b3b@mail.gmail.com> <2bd5ed640707031329g26db1306i81224bd8754f1615@mail.gmail.com> <2bd5ed640707031803i2b6f8516k4455d40a7fb7258d@mail.gmail.com> <468B8D7F.2030808@voller-ernst.de> <2bd5ed640707041012w1dfa45aaibe79a2067afc5d77@mail.gmail.com> <468D0560.9090000@voller-ernst.de> <468DA4A3.9030502@voller-ernst.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_45370_32805608.1183692256167 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Paul, many thanks for your answers. 1. Interestigly enough, after the warning the border is still applied. If I try to do the same with style=..., there is no effect. this has nothing to do with the data fetching. 2. I have a guess about two calls to fetchPage() in the DataModel. May be it's because we have 2 UIComponents called DataScroller (one with buttons and another with the message). Shuld it be posted as a bug on dataScroller? I've seen the defects page on myFaces, but not familiar with the procedure of addin to that list. 3. I've got it why you have your pageSize being analized and used in getDataModel(), your page explains it. I'll try to implement the same with an additional inputText. 4. I also noticed on your page - the dataScroller has just 2 buttons plus numbers in between. This way your strategy of fetching data chunks should work. I am using the "standard" scroller which has in addition fast forward/backward and first/last buttons, and in this case I think I'm better of calling DB every time (I've no way of predicting what page will be requested next). 5. Probably next thing I'll try to implement: edit/delete/add, and after that I'm planning to implement Ajax datascroller. It's not a good user experiense, when the whole page gets re-rendered on every action. 6. Although I've experience with javaScript, at least when I compare myself with the java developers I've worked with, but I've never tried using XmlHttpRequest. I have this book: 'Pro JSF and Ajax', but it was a diappointment after loading and gettin running their example to find out that it's based on some proprietary jars. Since you're using this ajax dataScroller, could you please enlight me on any existing standard for ajax (are there some 'standard' jars I can use as a base of my app)? thanks, vlad On 7/5/07, Paul Iov wrote: > > Well... just a bit refining > Vladimir Isakovich schrieb: > > Jul 5, 2007 1:12:09 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr > WARNING: /web/sec/examples/largeTableScroller.xhtml @104,85 border="1" > Property 'border' is not on type: org.apache.myfaces.component.html.ext.* > HtmlGraphicImage* > > 2. I also can see a warning... > > It's correct. The old good border="0" for image is deprecated with HTML4. > We should use CSS instead. > > ------=_Part_45370_32805608.1183692256167 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Paul,
many thanks for your answers.
 
1. Interestigly enough, after the warning the border is  still applied. If I try to do the same with style=..., there is no effect.
this has nothing to do with the data fetching.
2. I have a guess about two calls to fetchPage() in the DataModel. May be it's because we have 2 UIComponents called DataScroller (one with buttons and another with the message). Shuld it be posted as a bug on dataScroller? I've seen the defects page on myFaces, but not familiar with the procedure of addin to that list.
3. I've got it why you have your pageSize being analized and used in getDataModel(), your page explains it. I'll try to implement the same with an additional inputText.
4. I also noticed on your page - the dataScroller has just 2 buttons plus numbers in between. This way your strategy of fetching data chunks should work. I am using the "standard" scroller which has in addition fast forward/backward and first/last buttons, and in this case I think I'm better of calling DB every time (I've no way of predicting what page will be requested next).
5. Probably next thing I'll try to implement: edit/delete/add, and after that I'm planning to implement Ajax datascroller. It's not a good user experiense, when the whole page gets re-rendered on every action.
6. Although I've experience with javaScript, at least when I compare myself with the java developers I've worked with, but I've never tried using XmlHttpRequest. I have this book: 'Pro JSF and Ajax', but it was a diappointment after loading and gettin running their example to find out that it's based on some proprietary jars. Since you're using this ajax dataScroller, could you please enlight me on any existing standard for ajax (are there some 'standard' jars I can use as a base of my app)?
 
thanks, vlad

 
On 7/5/07, Paul Iov <paul@voller-ernst.de> wrote:
Well... just a bit refining
Vladimir Isakovich schrieb:

Jul 5, 2007 1:12:09 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
WARNING: /web/sec/examples/largeTableScroller.xhtml @104,85 border="1" Property 'border' is not on type: org.apache.myfaces.component.html.ext .HtmlGraphicImage

2. I also can see a warning...

It's correct. The old good border="0" for image is deprecated with HTML4. We should use CSS instead.
 

------=_Part_45370_32805608.1183692256167--