-2

In wicket 1.4.9 setModelValue("") was accepting string as a parameter, but in 1.5 it need String Array, I have code as shown below, anybody knows how to modify setModelValue("") to 6.x or 7.x.

if (!onlineVerfStatus) {
    TextField captcha = class.getValue("captcha");    

    captchaDisplayTxt.setModelObject(generateCaptcha());

    captcha.clearInput();
    captcha.setModelValue("");



    return;
} 
HDJEMAI
  • 9,436
  • 46
  • 67
  • 93

1 Answers1

0

captcha.setModelValue(new String[] {""});

martin-g
  • 17,243
  • 2
  • 23
  • 35