Nemelo by tam byt misto converterMessage validatorMessage?
Jde o validaci, ne o konverzi.

Z.T.
-- 
Zdenek Tronicek
FIT CTU in Prague


Petr Prikryl napsal(a):
> Ahoj,
> potreboval bych definovat error message pokud se nematchne email
> pattern. Zkusil jsem toto:
>
> <h:inputText id="kontaktniEmail"
> value="#{RegistraceManagedBean.kontaktniEmail}" title="KontaktniEmail"
> required="true" requiredMessage="#{bundle.KontaktniEmailReq}"
> converterMessage="#{bundle.convertMail}">
>      <f:validateRegex pattern="....@.+\.[a-z]+" for="kontaktniEmail" />
> </h:inputText>
>
> Bohuzel dostanu takto:
> Regex pattern of '....@.+\.[a-z]+' not matched
>
>
> Pokud se snazim validovat napriklad cislo implicitne pomoci:
>                     <h:inputText id="addrPr_psc"
> value="#{RegistraceManagedBean.addrPr_psc}" title="Psc" required="true"
> requiredMessage="#{bundle.PscReq}"
> converterMessage="#{bundle.convertCislo}" />
>                     <h:message for="addrPr_psc"/>
>
> tak je to ok message z bundle.
>
> musim tedy tu converter message definovat jinak? Chtel bych to resit
> deklarativne jako PSC.
>
> Diky
> PP
>
> --
> Petr Prikryl
> -----------------------
> [email protected]
> [email protected]
> www.admin24.cz
>
>

Odpovedet emailem