You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jorge Vásquez <jv...@3eyegroup.com> on 2006/09/04 19:24:18 UTC
HtmlRadioButton problem...
Hi everyone,
I am getting a strange behavior in the htmlRadioRendering process. The
exception that I am getting is:
java.lang.IndexOutOfBoundsException: index 5 >= 5
at
org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(HtmlRadi
oRenderer.java:108)
After going over the HtmlRadioRenderer code I have found that the cause of
the error is due to the fact that the index of the HtmlRadioButton element
that is being rendered is greater than the size of the HtmlSelectOneRadio
list of elements that is referenced by the HtmlRadio element. I am
generating the Html Object model in java code and in the model that I
generate the indexes are always smaller than the size of the SelectOneRadio
list of elements. To make things worse this error only appears occasionally
after regenerating the Html object model, but I haven´t been able to
decipher the pattern that originates the error since it is very random. I
have the feeling that somehow the HtmlRadioRenderer occasionally does some
cache on the HtmlSelectOneRadio, and the size returned isn´t the size of the
current selectOneRadio list but of the previous one
Unfortunately for me I cannot have a definite decision since my debugging
tool (Exadel Studio) isn´t allowing me to debug the HtmlRadioRenderer at
runtime during execution in tomcat.
Can anybody help me with this?
Regards,
Jorge Vásquez
RE: HtmlRadioButton problem...
Posted by Jorge Vásquez <jv...@3eyegroup.com>.
Hi,
Has someone had similar problems with
HtmlSelectOneRadio/HtmlRadio/HtmlRadioRenderer? Is this a bug?
Cheers,
JV
_____
De: Jorge Vásquez [mailto:jv@3eyegroup.com]
Enviado el: lunes, 04 de septiembre de 2006 12:24
Para: 'MyFaces Discussion'
Asunto: HtmlRadioButton problem...
Hi everyone,
I am getting a strange behavior in the htmlRadioRendering process. The
exception that I am getting is:
java.lang.IndexOutOfBoundsException: index 5 >= 5
at
org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(HtmlRadi
oRenderer.java:108)
After going over the HtmlRadioRenderer code I have found that the cause of
the error is due to the fact that the index of the HtmlRadioButton element
that is being rendered is greater than the size of the HtmlSelectOneRadio
list of elements that is referenced by the HtmlRadio element. I am
generating the Html Object model in java code and in the model that I
generate the indexes are always smaller than the size of the SelectOneRadio
list of elements. To make things worse this error only appears occasionally
after regenerating the Html object model, but I haven´t been able to
decipher the pattern that originates the error since it is very random. I
have the feeling that somehow the HtmlRadioRenderer occasionally does some
cache on the HtmlSelectOneRadio, and the size returned isn´t the size of the
current selectOneRadio list but of the previous one
Unfortunately for me I cannot have a definite decision since my debugging
tool (Exadel Studio) isn´t allowing me to debug the HtmlRadioRenderer at
runtime during execution in tomcat.
Can anybody help me with this?
Regards,
Jorge Vásquez