Ticket #300 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

jFormsHtmlBuilderBase::outputHeader() ne permet pas l'affichage des erreurs personnalisées via jForms::setErrorOn()

Reported by: bballizlife Assigned to:
Priority: normal Milestone: Jelix 1.0beta3.1
Component: jelix:forms Version: 1.0 beta3
Severity: normal Keywords: jforms, errors
Cc: Php version:
Review: Hosting Provider:
Documentation needed: Blocking:

Description

Dans l'utilisation de jForms, si on veut réalisation une vérification personnelle de la validité d'un champ et si ce test ne passe pas, on peut utiliser la méthode setErrorOn() pour afficher un message d'erreur adapté à ce test.

Or dans jFormsHtmlBuilderBase::outputHeader(), en aucun cas l'affichage des erreurs ne prend en compte ces erreurs personnalisées.

Attachments

patch-jformbuilderbase.diff (0.7 kB) - added by bballizlife on 10/11/07 12:37:42.

Change History

10/11/07 12:37:42 changed by bballizlife

  • attachment patch-jformbuilderbase.diff added.

10/11/07 12:38:49 changed by bballizlife

Voici un patch assez sommaire mais qui fonctionne. On pourrait ajouter la possibilité d'ajouter un sélecteur je pense, afin de pouvoir utiliser une chaine localisée dans un fichier properties.

10/16/07 23:14:09 changed by laurentj

  • status changed from new to closed.
  • resolution set to fixed.

À priori, quand tu fais un un setErrorOn, tu peux aussi faire un jLocale::get en même temps :-)

Patch inclus dans le trunk et la branche 1.0beta3.x. Merci pour le patch.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed