C
Coutemeier
I have the following backbean:
public class MyBean implements Serializable {
private int[] data = new int[5];
public int[] getData() {
return data;
}
public int getData(int index) {
return data[index]
}
public void setData(int[] data) {
this.data = data;
}
public void setData(int index, int value) {
this.data[index] = value;
}
....
}
And in the jsf page:
<h:form>
(...)
<h:selectOneMenuRadio value="#{myBean.data[0]}">
(...)
<a4j:support event="onchange" reRender="mypanel">
</h:selectOneMenuRadio>
</h:form>
After doing the a4j, JSF is not setting the value of myBean.data[0].
Instead, it is saying me:
sourceId=datos:j_id43[severity=(ERROR 2), summary=(datos:j_id43: An
error occurr
ed when processing your submitted information.), detail=(datos:j_id43:
An error
occurred when processing your submitted information.)]
Any idea?
public class MyBean implements Serializable {
private int[] data = new int[5];
public int[] getData() {
return data;
}
public int getData(int index) {
return data[index]
}
public void setData(int[] data) {
this.data = data;
}
public void setData(int index, int value) {
this.data[index] = value;
}
....
}
And in the jsf page:
<h:form>
(...)
<h:selectOneMenuRadio value="#{myBean.data[0]}">
(...)
<a4j:support event="onchange" reRender="mypanel">
</h:selectOneMenuRadio>
</h:form>
After doing the a4j, JSF is not setting the value of myBean.data[0].
Instead, it is saying me:
sourceId=datos:j_id43[severity=(ERROR 2), summary=(datos:j_id43: An
error occurr
ed when processing your submitted information.), detail=(datos:j_id43:
An error
occurred when processing your submitted information.)]
Any idea?