html:select avec clé composée
Bonjour ,
Pour afficher une liste affichant un code et un libellé, j'utilise ce code:
Code:
1 2 3 4 5 6 7
| <html:select property="codX" styleClass="combo-list">
<logic:iterate name="listX" id="x">
<html:option value="${x.codX}">
<bean:write name="x" property="codX"/>-<bean:write name="x" property="libX"/>
</html:option>
</logic:iterate>
</html:select> |
Le problème se pose lorsque la clé de l'entite est composée, dans ce cas là, on m'affiche: Property 'xx' not found on type entities.X alors qu'elle existe réellement (je fais du copier-copier du nom).
Merci