Bonjour à tous,
j'ai fait un tableau avec les display tag, voici ce tableau :
Et dans ce tableau pour chaque ligne il y a une checkbox, la première colonne.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <dsp:table class="reachTab" name="${contact}" requestURI="/contact.do?method=entreContact" pagesize="10" decorator="tag.ReachDecorator"> <dsp:column property="contactASupprimerLink" /> <dsp:column property="categorie.libelle" titleKey="contact.categorie"/> <dsp:column property="nom" titleKey="contact.nom" paramId="id" paramProperty="idContact"/> <dsp:column property="prenom" titleKey="contact.prenom"/> <dsp:column property="fixe" titleKey="contact.telephone" /> <dsp:column property="mobile" titleKey="contact.mobile" /> <dsp:column property="email" titleKey="contact.email" autolink="true"/> </dsp:table>
Et cette checkbox est géré à l'aide de la classe decorator qui permet de me générer ce que je veux.
Voici ce que j'ai dans la classe Decorator :
Mon problème est le suivant : lorsque j'accéde à ma jsp qui affiche ce tableau, j'ai une erreur de ce type :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 public String getContactASupprimerLink(){ AppelValue appelValue= (AppelValue) getCurrentRowObject(); ContactValue cv = appelValue.getContactAssocie(); String retour = ""; if (cv != null) { retour = "<INPUT type=\"checkbox\" onclick=\"marquerContact(this);\" name=\"cbcontact\" value=\""+cv.getIdContact()+"\"/>"; } return retour; }
Je ne vois pas d'où vient le pb.Error lookingup property "contactASupprimerLink" not object type "tag.ReachDecorator"
Merci pour votre aide
Partager