developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 10 years ago
Closed 10 years ago
#1270 closed bug (invalid)
Fatal error jForms et choix amélioré <choice>
Reported by: | nesswaw | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | jelix:forms | Version: | 1.2.1 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Bonjour,
Dans un jForms:
<choice ref="type" required="true"> <label>Ce site est</label> <item value="0"><label>Désactivé</label></item> <item value="1"><label>En attente</label></item> <item value="2"> <label>Géré par</label> <menulist ref="name"> <label>Nom:</label> <item value="Pierre">Pierre</item> <item value="Paul">Paul</item> <item value="Paul">Paul</item> </menulist> </item> <item value="3"> <label>Géré ailleurs</label> <input ref="name"><label>Nom</label></input> </item> </choice>
Cela me retourne cette erreur:
Fatal error: Call to a member function isReadOnly() on a non-object in /lib/jelix/forms/jFormsControl.class.php on line 115
Dans mon jForms j'ai deux fois l'attribut ref="name", si je modifie la valeur du dernier ref, cela fonctionne, alors est-ce un bug ou on ne peux pas mettre plusieurs fois le même "ref"?
Merci
Change History (2)
comment:1 Changed 10 years ago by nesswaw
comment:2 Changed 10 years ago by laurentj
- Resolution set to invalid
- Status changed from new to closed
ref indique un identifiant. donc unique. http://jelix.org/articles/fr/manuel-1.2/jforms/xml-1.1#identifiant
PS: quand tu n'es pas sûr, pose d'abord ta question sur le forum plutôt que d'ouvrir un ticket ;-)
Note: See
TracTickets for help on using
tickets.
Je remarque que, dans tout les cas, on ne peut pas avoir un formulaire avec des champs qui ont le même nom, au niveau html...du coup c'est pas vraiment un bug..?