Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BDCC9BC3 for ; Tue, 17 Apr 2012 07:40:14 +0000 (UTC) Received: (qmail 46078 invoked by uid 500); 17 Apr 2012 07:40:13 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 45927 invoked by uid 500); 17 Apr 2012 07:40:10 -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 45893 invoked by uid 99); 17 Apr 2012 07:40:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:40:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of buettner.marcus@gmail.com designates 209.85.210.181 as permitted sender) Received: from [209.85.210.181] (HELO mail-iy0-f181.google.com) (209.85.210.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:40:02 +0000 Received: by iagk10 with SMTP id k10so9682390iag.12 for ; Tue, 17 Apr 2012 00:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=020PlU1mjPM+AHGPqjh/4ACRUgDLTzkZnWUQ2nonFGs=; b=U6b7Zh6Wwt1aJjhYkNwW9O5a4EYg7lJBY6mtGUumjfBnTisWA+2YGNtSZRrrUkS4Ar zzI/SHAPaPrHQ0kgLszpFqt/n24xg/BWgO7zQCC2O1+OcTZ80zsZ5Ry8xMVn91/WSuut y9gBs0UAupwbMDh8vYbAYR38nq2BEuGvw62rUKmLHE7jdZXcLRw6PeWYYj2FnJBTjFxX e9JhjACLYps/vwboRXR2RRE1AD63sSPY5ToK/kqyHWoIzDwzRAvkYnf0Cy6vSbyyZcDD 3+qzUcpu+06gXoKthvGiGJ/Yu56wG4SVXnVMipTt1v2PKcLKyFdDMWU4loKYZ/JywkHQ 02qA== MIME-Version: 1.0 Received: by 10.42.159.202 with SMTP id m10mr9144937icx.50.1334648380951; Tue, 17 Apr 2012 00:39:40 -0700 (PDT) Received: by 10.231.145.194 with HTTP; Tue, 17 Apr 2012 00:39:40 -0700 (PDT) In-Reply-To: References: <1334599666.1377.YahooMailNeo@web171502.mail.ir2.yahoo.com> Date: Tue, 17 Apr 2012 09:39:40 +0200 Message-ID: Subject: Re: Ajax update of a composite component within ui:repeat doesn't work From: =?ISO-8859-1?Q?Marcus_B=FCttner?= To: MyFaces Discussion Content-Type: multipart/alternative; boundary=90e6ba6e8b34a58d7704bddb0a3e --90e6ba6e8b34a58d7704bddb0a3e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thx Leonardo! I've patched your fix locally an it works. But I think you mean line 728 instead of 714. I created an Issue: https://issues.apache.org/jira/browse/MYFACES-3527 Regards, Buett 2012/4/16 Leonardo Uribe > Hi > > It seems there is a bug inside _setRowIndex() line 714: > > _initialDescendantComponentState =3D saveDescendantComponentStates(this, > false, false); > > should be > > _initialDescendantComponentState =3D saveDescendantComponentStates(this, > true, true); > > Since all content of a composite component is inside a facet, the > state for that facet is not saved and it should be. > > A fast workaround is wrap all content of ui:repeat inside a > h:panelGroup. (not tested yet). Please create the issue and I'll fix > it. > > regards, > > Leonardo Uribe > > 2012/4/16 Mark Struberg : > > Hi Leo! > > > > Did you also try the stuff with composite components inside ui:repeat? > > > > Default components seem to work, but composite components are probably > broken. > > > > > > Buett will upload a sample code later today. > > > > LieGrue, > > strub > > > > > > ----- Original Message ----- > >> From: Leonardo Uribe > >> To: MyFaces Discussion > >> Cc: > >> Sent: Monday, April 16, 2012 6:32 PM > >> Subject: Re: Ajax update of a composite component within ui:repeat > doesn't work > >> > >> Hi > >> > >> There was two issues solved in 2.1.7 related to ui:repeat: > >> > >> https://issues.apache.org/jira/browse/MYFACES-3415 > >> > >> [ui:repeat] field value disappears if validation error exists on > current site > >> > >> https://issues.apache.org/jira/browse/MYFACES-3463 > >> > >> Refactor UIRepeat code to implement PSS algorithm like UIData and fix > >> state behavior > >> > >> The code taken from UIData has been already tested and there are some > >> junit tests for ui:repeat, so in theory it should work. > >> > >> regards, > >> > >> Leonardo Uribe > >> > >> 2012/4/16 Marcus B=FCttner : > >>> Hi, > >>> > >>> This following example works with MyFaces 2.1.6 but not with 2.1.7. > >>> > >>> mycc.xhtml: > >>> > >>> >> type=3D"ExampleModel.State"/> > >>> > >>> > >>> > >>> >> value=3D"#{cc.attrs.state.state}"> > >>> > >>> > >>> > >>> > >>> > >>> > >>> example.xhtml: > >>> > >>> >> var=3D"state"> > >>> > >>> > >>> > >>> > >>> > >>> In debugger I saw the submitted value of the checkbox is set but thi= s > state > >>> is overridden a little bit later by > >>> UIRepeate#restoreDescendantComponentStates method which is triggered > by > >>> UIRepeat#setIndex which is called by UIRepeat#visitTree. > >>> > >>> Any ideas? > >>> > >>> Regards, > >>> Marcus > >> > --90e6ba6e8b34a58d7704bddb0a3e--