myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "::SammyRulez::" <sammyru...@gmail.com>
Subject Re: How to force validation
Date Wed, 30 May 2007 07:35:35 GMT
what about customize the bundle of messages?

2007/5/30, Rudi Steiner <rudi.steiner@googlemail.com>:
> Hi,
>
> I have the problem, that I can't show the messages generated by the
> build in validation mechanism of myFaces because in all languages the
> name of an inputfield shown in the message is the id of the
> inputfield, and this id is not dynamic. So I can't change it for
> different languages.
>
> The idea is to write a validationmethod like validateRequired() and
> depending on the component for which this method is called, generate
> the message on the fly in the right language. The problem is, that a
> validationmethod is just called, if there is a input in the filed, so
> I have to use the required-attribute. But this is exactly, what I want
> to avoid :)
>
> My question: can I force myFaces to call a validationmethod, also if
> the inputfield is empty?
>
> Thanks a lot,
> Rudi
>


-- 
::SammyRulez::
http://www.kyub.com/blog/
-----------------------------------------------------------------
La programmazione รจ per un terzo interpretazione e per due terzi ispirazione.
 E per un terzo mistificazione

Mime
View raw message