1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
public String getEdition() {
final MonType monObjet = (MonType) getCurrentRowObject();
StringBuffer action = new StringBuffer();
action.append("javascript:void(");
action.append("editer(");
action.append("'").append(monObjet.getParam1())append("'");
action.append(", '").append(monObjet.getParam2())append("'");
action.append(", '").append(monObjet.getParam3())append("'");
//etc ...
// fin editer, fin du void
action.append("))");
return "<a href=\"" + action.toString() + "\">" + monObjet.getNom() + "</a>";
} |
Partager