Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 34118 invoked from network); 13 Apr 2007 08:34:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 08:34:43 -0000 Received: (qmail 29618 invoked by uid 500); 13 Apr 2007 08:34:45 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 29582 invoked by uid 500); 13 Apr 2007 08:34:45 -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 29571 invoked by uid 99); 13 Apr 2007 08:34:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 01:34:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [80.64.16.18] (HELO new-ns.tagnet.ru) (80.64.16.18) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 01:34:38 -0700 Received: from [217.114.240.129] (helo=[10.1.16.195]) by new-ns.tagnet.ru with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HcHEW-0007eT-PD for users@myfaces.apache.org; Fri, 13 Apr 2007 14:34:16 +0600 Message-ID: <461F407E.3090406@tagnet.ru> Date: Fri, 13 Apr 2007 14:34:06 +0600 From: Boris Kovalenko User-Agent: Thunderbird 1.5.0.10 (X11/20070326) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: Stranges with validation References: <461F37AC.60306@tagnet.ru> <9a64d7d10704130125v77c86d7byc0a3bd3be7644381@mail.gmail.com> In-Reply-To: <9a64d7d10704130125v77c86d7byc0a3bd3be7644381@mail.gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hello! I have problems with field userPassword. It should be required only for new users. Changing this field to did not help. Any ideas? > Hi, > > my be a facelets problem, > > please try to replace the tx:in with > > > > > > > > > > > If this works it IS a tx-faclets problem. > > Regards, > Volker > 2007/4/13, Boris Kovalenko : >> Hello! >> >> In this page I get validation error (userPassword is required) even >> if #{maSearchForm.account.new} is true. What am I doing wrong again? >> >> > xmlns:f="http://java.sun.com/jsf/core" >> xmlns:ui="http://java.sun.com/jsf/facelets" >> xmlns:tc="http://myfaces.apache.org/tobago/component" >> xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension"> >> >> >> >> > rows="fixed;20px;fixed;1*"/> >> >> >> >> >> >> > value="#{maSearchForm.account.uid}" required="true" focus="true" >> readonly="#{not maSearchForm.account.new}"/> >> > readonly="true" required="true"/> >> > value="#{maSearchForm.account.userPassword}" >> required="#{maSearchForm.account.new}"/> >> >> >> >> > value="#{maSearchForm.account.accountStatus}"/> >> > value="#{maSearchForm.account.cn}" required="true"/> >> > value="#{maSearchForm.account.sn}" required="true"/> >> > value="#{maSearchForm.account.givenName}"/> >> > value="#{maSearchForm.account.initials}"/> >> > value="#{maSearchForm.account.o}" required="true" readonly="true"/> >> > value="#{maSearchForm.account.ou}"/> >> > value="#{maSearchForm.account.title}"/> >> > value="#{maSearchForm.account.employeeNumber}"> >> >> >> >> > value="#{maSearchForm.account.physicalDeliveryOfficeName}"/> >> > value="#{maSearchForm.account.telephoneNumber}"/> >> > value="#{maSearchForm.account.mail}" required="true" readonly="true"/> >> > value="#{maSearchForm.account.mailHost}"/> >> > value="#{maSearchForm.account.mailMessageStore}" required="true"/> >> > value="#{maSearchForm.account.mailQuotaSize}" required="true"> >> >> >> >> >> >> >> >> >> > action="#{maSearchForm.delete}" immediate="true"/> >> >> > action="#{maSearchForm.save}"/> >> > action="searchAccounts@mainMenu" immediate="true"/> >> >> >> >> >> >> >> With respect, >> Boris >> >>