Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 22963 invoked from network); 12 Aug 2005 07:27:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Aug 2005 07:27:58 -0000 Received: (qmail 27453 invoked by uid 500); 12 Aug 2005 07:27:58 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 27199 invoked by uid 500); 12 Aug 2005 07:27:56 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 27185 invoked by uid 99); 12 Aug 2005 07:27:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 00:27:56 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1A7F0ED for ; Fri, 12 Aug 2005 09:27:55 +0200 (CEST) Message-ID: <552789173.1123831675107.JavaMail.jira@ajax.apache.org> Date: Fri, 12 Aug 2005 09:27:55 +0200 (CEST) From: "Tamietto Claudio (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-277) using a button with immediate on a form with a dataTable component In-Reply-To: <1807765388.1118241378518.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-277?page=comments#action_12318594 ] Tamietto Claudio commented on MYFACES-277: ------------------------------------------ I have downloaded the night build (2005-11-08) and retested the application and all is functional . Are you sure that the patch was reverted ? i haven't added the navigation case suuggested and the behaviour is the same of teh RI > using a button with immediate on a form with a dataTable component > ------------------------------------------------------------------ > > Key: MYFACES-277 > URL: http://issues.apache.org/jira/browse/MYFACES-277 > Project: MyFaces > Type: Bug > Reporter: Tamietto Claudio > Assignee: Mathias Broekelmann > Fix For: Nightly Build > > i'm using a form that contain a dataTable component . There is also a button that modify the model of the table with > an array of only one element with the single fields initialized to "" (String fields) and has the attribute immediate set > to true. When the form is rendered after i have pressed the button with the immediate attribute set to true ,the value that i obtain is the value submitted and not the value of the model. > I have found the following workaround that i have put on a properties of the row of the table that is called on the rendering phase: > if (component.getSubmittedValue() != null && > arrayOfRecord[model.getRowIndex()].getCodice() != null && > !component.getSubmittedValue().equals(arrayOfRecord[model.getRowIndex()].getCodice())) { > component.setSubmittedValue(arrayOfRecord[model.getRowIndex()].getCodice()); > } > I have used the value of the model and not the component.getValue() because also this was not the same > of the value of te model. > I can try to create a simple case if it is necessary o the problem is not clear. > The problem seems the same of the issue 187 (that it is closed) but i i have tested the night builds and nothing > changed. However in the release notes of the night builds the issue is not reported as solved. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira