// Option op = new Option("muc#roomconfig_maxusers","50"); // FormField ff = new FormField(); // ff.setLabel("muc#roomconfig_maxusers"); // ff.addValue("50"); // submitForm.addField(ff); // submitForm.setAnswer("muc#roomconfig_maxusers", 50); submitForm.setAnswer( "muc#roomconfig_passwordprotectedroom", true);
=============================================================
submitForm.setAnswer("muc#roomconfig_maxusers", 50);
submitForm.setAnswer("muc#roomconfig_maxusers", "50");
how can i set the the label "muc#roomconfig_maxusers" of a value "50"?
the type is list-single
values:0 -10 -20-30-40-50
i get a error like "java.lang.IllegalArgumentException: This field is not of type int." or
"java.lang.IllegalArgumentException: This field is not of type String."