I'm developing an application with JSF using Mojarra 1.2_12.
Recently I noticed a bug with my check boxes. When there is component in the form that performs FacesContext.getCurrentInstance().renderResponse() within its ValueChangeListener method (immediate=true,onchange=submit), each check box is cleared. Other components such as text area keep their value before the submit.
The code for writing "checked" to the html is modified from:
if ("true".equals(currentValue)) {
to
if (((UISelectBoolean) component).isSelected()) {
There should be some reason behind the new code but in the case of submit/renderResponse it introduces a bug. I have added the old code as a custom renderer and have overridden the one that comes with 1.2_12, my code is ok now.
Is there anyone who has any idea what is the purpose of the change and what should be the correct usage?
[Message sent by forum member 'wise_guybg' (wise_guybg)]