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.

Opened 7 years ago

Closed 7 years ago

#1514 closed bug (fixed)

Widget hidden_html not found

Reported by: nicolas Owned by: nicolas
Priority: normal Milestone: Jelix 1.5.3
Component: jelix:plugins:jforms Version: 1.5.2
Severity: normal Keywords: jforms, hidden_html, widget
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version: 5.3

Description

Bonjour,

Dans jforms lorsque l'on met un input de type hidden dans un group:

<?xml version="1.0" encoding="utf-8"?>
<form xmlns="http://jelix.org/ns/forms/1.1">
<group ref="un_groupe">
	<label>identité</label>
	<input ref="un_nom">
    		<label>Votre nom</label>
  	</input>
	<input ref="un_prenom">
    		<label>Votre prenom</label>
  	</input>
	<hidden ref="un_hidden" />
</group>
	
</form>

nous avons l'erreur :

Widget hidden_html not found
Code: 0
File: /home/nicolas/workspace/lib/jelix/forms/Builder/HtmlBuilder.php 232
0	jelix\forms\Builder\HtmlBuilder->getWidget()	lib:jelix/plugins/formwidget/group_html/group_html.formwidget.php	40
1	group_htmlFormWidget->outputMetaContent()	lib:jelix/plugins/formbuilder/html/html.formbuilder.php	43
2	htmlFormBuilder->outputMetaContent()	temp:compiled/templates/modules/testform/main_html_t_15.php	8
3	template_meta_9ff850f742f5220c60137583a541c23a()	lib:jelix/tpl/jTpl.class.php	204
4	jTpl->meta()	lib:jelix/core/response/jResponseHtml.class.php	183
5	jResponseHtml->output()	lib:jelix/core/jCoordinator.class.php	216
6	jCoordinator->process()	app:www/index.php

alors qu'en jelix 1.4 cela fonctionait.

Attachments (1)

jforms.diff (742 bytes) - added by nicolas 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by nicolas

comment:1 Changed 7 years ago by nicolas

  • Owner set to nicolas
  • Status changed from new to reviewing

J'ai remarqué que la méthode outputControl ignorer les submit, reset et hidden. J'ai donc juste ajouté dans la méthode outputMetaContent ce qu'il manquait pour les ignorer aussi.

comment:2 Changed 7 years ago by laurentj

  • Milestone set to Jelix 1.5.3

comment:3 Changed 7 years ago by laurentj

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.