myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Punz <werner.p...@gmail.com>
Subject Re: Bug in _AjaxUtils - subBuf undefined
Date Mon, 12 Jul 2010 12:04:29 GMT
Hi, same problem as Markus B├╝ttner reported.

I am on it currently. A bug introduced during my performance fixing last 
week, sorry about that and thanks for reporting it. It is vital to get 
the bugs out before 2.0.1.



Werner


Am 12.07.10 14:01, schrieb Bruno Aranda:
> I think a bug was introduced in the revision 960856 last 6th of July,
> in the _AjaxUtils class. A variable is initialized inside a loop, but
> is accessed outside. If the loop contains no values, the variable will
> be left undefined. This is the code, lines 196-207:
>
> if (element.options[u].selected) {
>                              var subBuf = [];
>                              var elementOption = element.options[u];
>                              subBuf.push(encodeURIComponent(name));
>                              subBuf.push("=");
>                              if (elementOption.getAttribute("value") != null) {
>
> subBuf.push(encodeURIComponent(elementOption.value));
>                              } else {
>
> subBuf.push(encodeURIComponent(elementOption.text));
>                              }
>
>                          }  strBuf.push(subBuf.join(""));



Mime
View raw message