Bonjour,
J'ai pas mal cherché et testé différentes solutions mais j'obtiens toujours une erreur (pas toujours la même ça dépend du test).
Je ne veux pas utiliser la librairie layout.
Voila mon code actuel :
Form :
La liste strValeursProfil est bien initialisée comme il faut avant l'affichage.Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 private ArrayList<String> strValeursProfil = new ArrayList<String>(); public ArrayList<String> getStrValeursProfil() { return strValeursProfil; } public void setStrValeursProfil(ArrayList<String> strValeursProfil) { this.strValeursProfil = strValeursProfil; } public String getStrVal(int index) { (this.strValeursProfil.get(index)); } public void setStrVal(int index, String strVal) { this.strValeursProfil.set(index,strVal) ; }
JSP:
Avec ça il me dit à l'affichage que je n'ai pas de getter :Code:
1
2
3
4
5 <logic:iterate id="strValeursProfil" name="formName" property="strValeursProfil" indexId="i"> <td> <html:text name="strValeursProfil" property="strVal" indexed="true"/> </td> </logic:iterate>
Pourquoi n'utilise-t-il pas le getter avec index ?Citation:
No getter method for property: "strValeursProfil" of bean: "formName"
Merci d'avance