From: Brad C. <yo...@br...> - 2005-07-11 19:38:11
|
The only way that little bit of code could blow stack is if you clicked the Page, which doesn't seem like a very valid thing to do and doesn't sound very likely. Brad C --- Lucas Gonçalves <luc...@po...> wrote: > L have a problem with javascript very strange! > My page have a button > <input type="button" name="evento" value="F7-Novo" > onclick="setBotaoAcao(getBotaoArray('INCLUIR')); > redirect('/ecp/aplicacao.do?evento=x');"> > and when click on it, return a exception java.lang.stackoverflow! > When l was analyzing l found the problem in DomNode Class in this method > > public Object getScriptObject() { > if (scriptObject_ == null) { > scriptObject_ = ((SimpleScriptable) > getPage().getScriptObject()).makeScriptableFor(this); > } > return scriptObject_; > } > This method was called by ClickableElement class in public Page Click(){..} > It´s strange because this method ever throw a exception(when scriptObject is > null on the first time, stop and analize it); > What this method do? > L can´t understand how everybody can use javascript onclick event, if this > method is wrong! > HELP ME, l´m pulling out my hair!! > > > Lucas Gonçalves - PowerLogic |