on 11-09-2005 12:03 PM
Hello !
I've inserted a chekbox in a jsp page and, in my process, I want to control if this checkbox is checked or not.
In my process, I wrote :
boolean A2 = ((Checkbox) getComponentByName("A2")).isChecked();
where "A2" is id of my checkbox
...but this line generate an null error.
Could you help me please ?
Thank you.
Hi,
boolean A2 = ((Checkbox) getComponentByName("A2")).isChecked();
In the above code A2 should be the value of "key" field of the checkbox not the id.
Thanks,
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.