[Struts] logic iterate / bean write
Bonjour,
J'utilise les taglibs pour créer des checkbox dynamiquement. Le problème c'est que des fois la collection sur laquelle j'itèrere peut ne rien contenir et j'ai le message suivant :
Code:
You must specify the value attribute or nested tag content
Voici ma jsp :
Code:
1 2 3 4 5 6
| <logic:iterate id="value" name="formModifProjet" property="formBox">
<tr><td></td><td><html:multibox property="checked">
<bean:write ignore="true" name="value" property="value" />
</html:multibox>
<bean:write ignore="true" name="value" property="label" /></td></tr>
</logic:iterate> |
Je pensais résoudre le problème en mettant ignore dans bean:write mais ça ne fait rien :/
Code:
ignore : If this attribute is set to true, and the bean specified by the name and scope attributes does not exist, simply return without writing anything. If this attribute is set to false, a runtime exception to be thrown, consistent with the other tags in this tag library.
Merci de votre aide.