Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 23617 invoked from network); 20 Sep 2006 15:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 15:39:42 -0000 Received: (qmail 16698 invoked by uid 500); 20 Sep 2006 15:39:36 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 16662 invoked by uid 500); 20 Sep 2006 15:39:36 -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 16651 invoked by uid 99); 20 Sep 2006 15:39:36 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 08:39:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [80.91.229.2] ([80.91.229.2:45516] helo=ciao.gmane.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 6E/25-01963-3B061154 for ; Wed, 20 Sep 2006 08:39:31 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GQ4AO-0000vm-Fo for users@myfaces.apache.org; Wed, 20 Sep 2006 17:39:16 +0200 Received: from 201-66-5-58.ctame704.dsl.brasiltelecom.net.br ([201.66.5.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Sep 2006 17:39:16 +0200 Received: from patrick.dreyer by 201-66-5-58.ctame704.dsl.brasiltelecom.net.br with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Sep 2006 17:39:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@myfaces.apache.org From: Patrick Dreyer Subject: Re: Two dataList in same page Date: Wed, 20 Sep 2006 12:38:18 -0300 Lines: 81 Message-ID: References: <8f985b960609151138x773f57e6tfa8ba445da7edca1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 201-66-5-58.ctame704.dsl.brasiltelecom.net.br User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <8f985b960609151138x773f57e6tfa8ba445da7edca1@mail.gmail.com> Sender: news X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N As suggested by Mike, I tried t:saveState which solves one problem but generates an other :-/ I put the application online, thus you can play yourself to see the effects. 1) http://ledz.com.br/CasamentoDosSonhos/index2.jsf * with NO t:saveState * link to subscription details does not work <- THE PROBLEM * subscription list gets repopulated on category clicks 2) http://ledz.com.br/CasamentoDosSonhos/index.jsf * WITH t:saveState * link to subscription details works <- cool * subscription list does not get repopulated on category clicks <- the NEW problem The "Test link" (between the two lists) always works and show the "Subscription 1". As you can imagine, I need a solution with the subscription detail links working AND the subscription list being repopulated on category clicks. Any ideas? Patrick Mike Kienenberger schrieb: > Is #{subscriptionCategoryBean.subscriptions} request-scoped? If so, > try using t:saveState to persist it across a page, or change it to > session-scoped, or use some other persisting mechanism. > > > On 9/15/06, Patrick Dreyer wrote: >> Hi, >> >> I don't like the prosa form and so: >> * Tomcat 5.5.17 >> * MyFaces 1.1.3 >> * Tomahawk 1.1.3 >> * Page with two dataList; subscriptionCategories and subscriptions >> * Links of subscriptionCategories work fine >> * Links of subscriptions don't work at all; action doesn't get called >> * Using dataTable for subscriptions doesn't work either >> * Put each list in a separate form doesn't work either >> * "Test" link (between the two lists) works as expected; action gets called, navigation to other page >> * Static values in "Test" link and subscriptions only for testing purposes >> >> Any ideas? Thanks >> >> Patrick >> >> Page snippet: >> >> >>
>>
    > jsfc="t:dataList" >> layout="unorderedList" >> value="#{portalBean.subscriptionCategories}" >> var="subscriptionCategory"> >>
  • >> >> #{subscriptionCategory.name} >>
  • >>
>>

>> >> >> Test >> >>

>>
    > jsfc="t:dataList" >> layout="unorderedList" >> value="#{subscriptionCategoryBean.subscriptions}" >> var="subscription"> >>
  • >> >> #{subscription.title} >>
  • >>
>>
>> >> >> >