Bonjour,

J'essaye de faire un tag perso dans le lequel j'utilise un tag spring.

Le voici :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
<%@ tag language="java" pageEncoding="UTF-8" %>
 
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
 
<%@ attribute name="id" required="true" %>
<%@ attribute name="path" required="true" %>
<%@ attribute name="cssClass" required="false" %>
 
<form:select id="${id}" path="${path}" cssClass="${cssClass}">
	<jsp:doBody />
</form:select>
 
<script type="text/javascript">
	Spring.addDecoration(new Spring.ElementDecoration({
		elementId : "${id}",
		widgetType: "dijit.form.FilteringSelect"
	}));
</script>
Je voudrais l'utiliser de cette façon :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
<myTag:select id="pathology" path="pathology">
	<form:options items="${pathologies}" itemValue="idPathology" itemLabel="name" />
</myTag:select>
Je ne comprend pas trop comment fonctionne le jsp:doBody, mais je voudrais pouvoir le remplacer par le form:options (le body quoi).

Merci,