You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sven Homburg <ho...@googlemail.com> on 2008/10/30 08:45:18 UTC
Re: [Tapestry 5.0.15] - Hidding client-side validation
have a look in the "Form" component description (parameter
"clientSideValidation")
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
2008/10/30 Antonio Fernández - STAR Málaga <antonio.fernandez@star-group.net
>
> Hi All & Good Morning :-)
>
> Is there a way for hidding the JavaScript Validation Messages on the
> Client-Side ?
>
> Greetings
> Passi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Antonio Fernández - STAR Málaga <an...@star-group.net>.
Finally i´ve found a solution.
I have overwritten only the definition of the following object :
Tapestry.FieldEventManager = Class.create({
......
.....
});
By removing all the content from removeDecorations and
showValidationMessage functions i have
exactly the validation´s behaviour i want ( client-side without layout
effects" )
Greetings & Thanks a lot,
Passi
Antonio Fernández - STAR Málaga escribió:
>
> Hi again ,
>
>
> Many thanks Howard, i will continue working on this way, starting with
> the analize of the Tapestry JavaScript build-in functions for
> indentifying the
> ones that needs to be overwritten.
>
>
> Greetings4All
> Passi
>
>
>
> Howard Lewis Ship escribió:
>> This can be done by "monkey patching" the Tapestry JavaScript. You
>> can have a JS library that overwrites the definitions of some of the
>> built-in Tapestry functions related to validation. In this way, you
>> can prevent the pop up bubbles, or change how the validation messages
>> are presented to the user.
>>
>> On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
>> <an...@star-group.net> wrote:
>>
>>> Hi again !
>>>
>>> Many thanks for you fast asnwer , i tryed your option , but this is
>>> not the
>>> behaviour i want.
>>>
>>> Now the submit action happens when one or more TextFields are empty,
>>> and with clientValidation=true the submit is not completed.
>>>
>>> I want the behaviour of clientValidation=true, but simply hidding the
>>> Validation Messages.
>>>
>>>
>>>
>>>
>>> Greetings & Nice Day
>>>
>>>
>>> Sven Homburg escribió:
>>>
>>> have a look in the "Form" component description (parameter
>>> "clientSideValidation")
>>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>>>
>>>
>>> 2008/10/30 Antonio Fernández - STAR Málaga
>>> <antonio.fernandez@star-group.net
>>>
>>>
>>>
>>>
>>> Hi All & Good Morning :-)
>>>
>>> Is there a way for hidding the JavaScript Validation Messages on the
>>> Client-Side ?
>>>
>>> Greetings
>>> Passi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Antonio Fernández - STAR Málaga <an...@star-group.net>.
Hi again ,
Many thanks Howard, i will continue working on this way, starting with
the analize of the Tapestry JavaScript build-in functions for
indentifying the
ones that needs to be overwritten.
Greetings4All
Passi
Howard Lewis Ship escribió:
> This can be done by "monkey patching" the Tapestry JavaScript. You
> can have a JS library that overwrites the definitions of some of the
> built-in Tapestry functions related to validation. In this way, you
> can prevent the pop up bubbles, or change how the validation messages
> are presented to the user.
>
> On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
> <an...@star-group.net> wrote:
>
>> Hi again !
>>
>> Many thanks for you fast asnwer , i tryed your option , but this is not the
>> behaviour i want.
>>
>> Now the submit action happens when one or more TextFields are empty,
>> and with clientValidation=true the submit is not completed.
>>
>> I want the behaviour of clientValidation=true, but simply hidding the
>> Validation Messages.
>>
>>
>>
>>
>> Greetings & Nice Day
>>
>>
>> Sven Homburg escribió:
>>
>> have a look in the "Form" component description (parameter
>> "clientSideValidation")
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>>
>> 2008/10/30 Antonio Fernández - STAR Málaga <antonio.fernandez@star-group.net
>>
>>
>>
>>
>> Hi All & Good Morning :-)
>>
>> Is there a way for hidding the JavaScript Validation Messages on the
>> Client-Side ?
>>
>> Greetings
>> Passi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Borut Bolčina <bo...@gmail.com>.
Hi,
before diving in (i have more red issues in my jira), does someone have an
example of how to patch the bubbles not to show and a red text beneath the
input box appears in case of an error?
Thanks,
Borut
2008/11/3 Howard Lewis Ship <hl...@gmail.com>
> Exactly: we have great L&F out of the box, and easy way (monkey
> patching the JavaScript) to handle the UI however you want.
>
> You say that like its a bad thing.
>
> On Sun, Nov 2, 2008 at 12:24 PM, kranga <kr...@k2d2.org> wrote:
> > The issue here is that you chose to implement a very specific paradigm
> (pop
> > ups) to display error messages which almost always will be the wrong
> > paradigm because every website and design expression will require
> something
> > different. So everyone is going to try to override the basic settings
> >
> > ----- Original Message ----- From: "Howard Lewis Ship" <hlship@gmail.com
> >
> > To: "Tapestry users" <us...@tapestry.apache.org>
> > Sent: Saturday, November 01, 2008 6:47 PM
> > Subject: Re: [Tapestry 5.0.15] - Hidding client-side validation
> >
> >
> > This can be done by "monkey patching" the Tapestry JavaScript. You
> > can have a JS library that overwrites the definitions of some of the
> > built-in Tapestry functions related to validation. In this way, you
> > can prevent the pop up bubbles, or change how the validation messages
> > are presented to the user.
> >
> > On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
> > <an...@star-group.net> wrote:
> >>
> >> Hi again !
> >>
> >> Many thanks for you fast asnwer , i tryed your option , but this is not
> >> the
> >> behaviour i want.
> >>
> >> Now the submit action happens when one or more TextFields are empty,
> >> and with clientValidation=true the submit is not completed.
> >>
> >> I want the behaviour of clientValidation=true, but simply hidding the
> >> Validation Messages.
> >>
> >>
> >>
> >>
> >> Greetings & Nice Day
> >>
> >>
> >> Sven Homburg escribió:
> >>
> >> have a look in the "Form" component description (parameter
> >> "clientSideValidation")
> >>
> >>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
> >>
> >> 2008/10/30 Antonio Fernández - STAR Málaga
> >> <antonio.fernandez@star-group.net
> >>
> >>
> >>
> >>
> >> Hi All & Good Morning :-)
> >>
> >> Is there a way for hidding the JavaScript Validation Messages on the
> >> Client-Side ?
> >>
> >> Greetings
> >> Passi
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator Apache Tapestry and Apache HiveMind
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Howard Lewis Ship <hl...@gmail.com>.
Exactly: we have great L&F out of the box, and easy way (monkey
patching the JavaScript) to handle the UI however you want.
You say that like its a bad thing.
On Sun, Nov 2, 2008 at 12:24 PM, kranga <kr...@k2d2.org> wrote:
> The issue here is that you chose to implement a very specific paradigm (pop
> ups) to display error messages which almost always will be the wrong
> paradigm because every website and design expression will require something
> different. So everyone is going to try to override the basic settings
>
> ----- Original Message ----- From: "Howard Lewis Ship" <hl...@gmail.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Saturday, November 01, 2008 6:47 PM
> Subject: Re: [Tapestry 5.0.15] - Hidding client-side validation
>
>
> This can be done by "monkey patching" the Tapestry JavaScript. You
> can have a JS library that overwrites the definitions of some of the
> built-in Tapestry functions related to validation. In this way, you
> can prevent the pop up bubbles, or change how the validation messages
> are presented to the user.
>
> On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
> <an...@star-group.net> wrote:
>>
>> Hi again !
>>
>> Many thanks for you fast asnwer , i tryed your option , but this is not
>> the
>> behaviour i want.
>>
>> Now the submit action happens when one or more TextFields are empty,
>> and with clientValidation=true the submit is not completed.
>>
>> I want the behaviour of clientValidation=true, but simply hidding the
>> Validation Messages.
>>
>>
>>
>>
>> Greetings & Nice Day
>>
>>
>> Sven Homburg escribió:
>>
>> have a look in the "Form" component description (parameter
>> "clientSideValidation")
>>
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>>
>> 2008/10/30 Antonio Fernández - STAR Málaga
>> <antonio.fernandez@star-group.net
>>
>>
>>
>>
>> Hi All & Good Morning :-)
>>
>> Is there a way for hidding the JavaScript Validation Messages on the
>> Client-Side ?
>>
>> Greetings
>> Passi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by kranga <kr...@k2d2.org>.
The issue here is that you chose to implement a very specific paradigm (pop
ups) to display error messages which almost always will be the wrong
paradigm because every website and design expression will require something
different. So everyone is going to try to override the basic settings
----- Original Message -----
From: "Howard Lewis Ship" <hl...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Saturday, November 01, 2008 6:47 PM
Subject: Re: [Tapestry 5.0.15] - Hidding client-side validation
This can be done by "monkey patching" the Tapestry JavaScript. You
can have a JS library that overwrites the definitions of some of the
built-in Tapestry functions related to validation. In this way, you
can prevent the pop up bubbles, or change how the validation messages
are presented to the user.
On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
<an...@star-group.net> wrote:
>
> Hi again !
>
> Many thanks for you fast asnwer , i tryed your option , but this is not
> the
> behaviour i want.
>
> Now the submit action happens when one or more TextFields are empty,
> and with clientValidation=true the submit is not completed.
>
> I want the behaviour of clientValidation=true, but simply hidding the
> Validation Messages.
>
>
>
>
> Greetings & Nice Day
>
>
> Sven Homburg escribió:
>
> have a look in the "Form" component description (parameter
> "clientSideValidation")
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>
> 2008/10/30 Antonio Fernández - STAR Málaga
> <antonio.fernandez@star-group.net
>
>
>
>
> Hi All & Good Morning :-)
>
> Is there a way for hidding the JavaScript Validation Messages on the
> Client-Side ?
>
> Greetings
> Passi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Howard Lewis Ship <hl...@gmail.com>.
This can be done by "monkey patching" the Tapestry JavaScript. You
can have a JS library that overwrites the definitions of some of the
built-in Tapestry functions related to validation. In this way, you
can prevent the pop up bubbles, or change how the validation messages
are presented to the user.
On Thu, Oct 30, 2008 at 1:36 AM, Antonio Fernández - STAR Málaga
<an...@star-group.net> wrote:
>
> Hi again !
>
> Many thanks for you fast asnwer , i tryed your option , but this is not the
> behaviour i want.
>
> Now the submit action happens when one or more TextFields are empty,
> and with clientValidation=true the submit is not completed.
>
> I want the behaviour of clientValidation=true, but simply hidding the
> Validation Messages.
>
>
>
>
> Greetings & Nice Day
>
>
> Sven Homburg escribió:
>
> have a look in the "Form" component description (parameter
> "clientSideValidation")
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>
> 2008/10/30 Antonio Fernández - STAR Málaga <antonio.fernandez@star-group.net
>
>
>
>
> Hi All & Good Morning :-)
>
> Is there a way for hidding the JavaScript Validation Messages on the
> Client-Side ?
>
> Greetings
> Passi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Tapestry 5.0.15] - Hidding client-side validation
Posted by Antonio Fernández - STAR Málaga <an...@star-group.net>.
Hi again !
Many thanks for you fast asnwer , i tryed your option , but this is not
the behaviour i want.
Now the submit action happens when one or more TextFields are empty,
and with clientValidation=true the submit is not completed.
I want the behaviour of clientValidation=true, but simply hidding the
Validation Messages.
Greetings & Nice Day
Sven Homburg escribió:
> have a look in the "Form" component description (parameter
> "clientSideValidation")
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>
> 2008/10/30 Antonio Fernández - STAR Málaga <antonio.fernandez@star-group.net
>
>
>
>> Hi All & Good Morning :-)
>>
>> Is there a way for hidding the JavaScript Validation Messages on the
>> Client-Side ?
>>
>> Greetings
>> Passi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
>
>