Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAC8C621A for ; Wed, 1 Jun 2011 16:24:41 +0000 (UTC) Received: (qmail 86297 invoked by uid 500); 1 Jun 2011 16:24:41 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 86266 invoked by uid 500); 1 Jun 2011 16:24:41 -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 86259 invoked by uid 99); 1 Jun 2011 16:24:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 16:24:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of parthiv.pradhan@gmail.com designates 209.85.212.53 as permitted sender) Received: from [209.85.212.53] (HELO mail-vw0-f53.google.com) (209.85.212.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 16:24:33 +0000 Received: by vws13 with SMTP id 13so5264264vws.12 for ; Wed, 01 Jun 2011 09:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=V9XKoK1BB4w4WNpZlzGM1cOd3l7VjBFZL/JTjazfgns=; b=vuxDZgj3WcjqPfrHlnDelsg4QnC3NtkhDLJAVJgD5B/3iI/bQm+nNGEzwKNWfgPGMH nNdesvEwvuO++SNhuyJXAxFerl83OKeU2ykVYya9tWcNfbQPy53U3LJOvs/Fan9P0u67 mUlA/Xx9hNR1i7z65nywz6Pzq/JdikJDvKgJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ShenDrEjDrSKSyJE0FtrLKWzYpBV0JrpP11UlKFKn382KGIhs1c0lQDhrc5vfmBpd0 4o5Usg0h1L3BHhfSuzRItVrq5O68igJ+8gTyXtnqpyuLgaoHBqcfHym7b3WykNvCDP50 Bzt1hU/SVdNpPKnH9YW0Orl6UheZnFfZbqtqo= MIME-Version: 1.0 Received: by 10.52.179.193 with SMTP id di1mr3223617vdc.147.1306945452392; Wed, 01 Jun 2011 09:24:12 -0700 (PDT) Received: by 10.220.194.11 with HTTP; Wed, 1 Jun 2011 09:24:12 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Jun 2011 21:54:12 +0530 Message-ID: Subject: Re: Blank check validator in Trinidad 1.2 From: parthiv pradhan To: MyFaces Development Content-Type: multipart/alternative; boundary=bcaec51969576e419804a4a8f370 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51969576e419804a4a8f370 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thanks Cedric for the reply. if I set the required and simple attribute to true and try to show a custom message using tr:message then instead of the message appearing on the page itself..the message appears on a popup. have been breaking my head over this but no luck yet. thanks Parthiv On Sun, May 29, 2011 at 1:36 AM, C=E9dric Durmont wrot= e: > Hi Prathiv, > The easiest way to customize the position of your message is to add > simple=3D"true" to your tr:inputText, then add a tr:message component, > linked to the inputText. See the Trinidad component guide for more > details. > I can't find the selector keys for skinning the messages, but they do > exist : for instance, af|panelFormLayout:message-cell when the > inputText is in a panelFormLayout. Check the generated source of your > page. > > Hope this helps, > Regards, > Cedric Durmont > > 2011/5/28 parthiv pradhan : > > Hi All, > > > > If a tr:inputbox has required=3D"true" then the error message by defaul= t > > appears at the bottom of the text box. > > i) Can the postion of this in-built error message be changed? > > ii) Can the appearance of this error message be changed by using a cust= om > > stylesheet? > > > > I cannot write a custom blank check validator because it would never be > > called in case the text box is blank, instead the inbuilt blank check > would > > be called. > > > > thanks > > Parthiv > --bcaec51969576e419804a4a8f370 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
=A0
thanks Cedric for the reply.
if I set the required and simple attribute to true and try to show a c= ustom message using tr:message then instead of the message appearing on the= page itself..the message appears on a popup.
=A0
have been breaking my head over this but no luck yet.
thanks
Parthiv

On Sun, May 29, 2011 at 1:36 AM, C=E9dric Durmon= t <cdurmont@gmai= l.com> wrote:
Hi Prathiv,
The easiest way t= o customize the position of your message is to add
simple=3D"true&q= uot; to your tr:inputText, then add a tr:message component,
linked to the inputText. See the Trinidad component guide for more
detai= ls.
I can't find the selector keys for skinning the messages, but th= ey do
exist : for instance, af|panelFormLayout:message-cell when the
inputText is in a panelFormLayout. Check the generated source of your
pa= ge.

Hope this helps,
Regards,
Cedric Durmont

2011/5/28 = parthiv pradhan <parthiv.pr= adhan@gmail.com>:
> Hi All,
>
> If a tr:inputbox has require= d=3D"true" then the error message by default
> appears at t= he bottom of the text box.
> i) Can the postion of this in-built erro= r message be changed?
> ii) Can the appearance of this error message be changed by using a cus= tom
> stylesheet?
>
> I cannot write a custom blank check= validator because it would never be
> called in case the text box is= blank, instead the inbuilt blank check would
> be called.
>
> thanks
> Parthiv

--bcaec51969576e419804a4a8f370--