Yes I already tried that. Also in debugging mode I can see that the AbstractEventMixin.onInternalEvent() method returns a List with the JSONObjects. Then the javascript code is called, but the response argument is "undefined"
I have no clue what causes this problem. I had this working in a previous tapestry version. J. > Date: Mon, 15 Dec 2008 14:58:47 +0100 > From: hombu...@googlemail.com > To: users@tapestry.apache.org > Subject: Re: [ANN] t5components 0.5.18 is now available for Tapestry 5.0.18 > > your code looks correct, > > try to empty your browser cache > > 2008/12/15 Joe123 --- <jpe...@hotmail.com> > > > > > Hi, > > > > I use the @OnEvent mixin to create dependent selects: > > > > I use it like below. But the problem is that the onCompleteOperatorChange > > javascript function > > response object is "undefined" > > Any ideas how this is possible. The javascript function is called, but the > > response is "undefined" > > @OnEvent(component = "operator", value = "change") > > public JSONArray onChangeOperatorEvent(String value) { > > JSONArray jsonArray = new JSONArray(); > > > > for (Plaza plaza : getDestinationSelectValues(value)) { > > JSONObject jsonObject = new JSONObject(); > > jsonObject.put("value", plaza.getId()); > > jsonObject.put("label", plaza.getDescription()); > > > > jsonArray.put(jsonObject); > > } > > > > return jsonArray; > > } > > > > Finally, the onCompleteOperatorChange javascript function has to parse the > > return JSON and update the select input options: > > > > function onCompleteOperatorChange(response) { > > selectElement = $("entryPlaza"); > > responseJSON = response.evalJSON(); > > > > while (selectElement .options.length > 0) { > > selectElement .options[0] = null; > > } > > > > for (index = 0; index < responseJSON .length; index++) { > > selectElement.options[index] = new Option(responseJSON > > [index].label, responseJSON [index].value); > > } > > > > Tapestry.ElementEffect.highlight($("entryPlaza")); > > } > > any help is welcome. > > J > > > > > > > Date: Mon, 15 Dec 2008 13:32:30 +0100 > > > From: hombu...@googlemail.com > > > To: users@tapestry.apache.org > > > Subject: [ANN] t5components 0.5.18 is now available for Tapestry 5.0.18 > > > > > > Hi there, > > > > > > t5components 0.5.18 is now available for Tapestry 5.0.18 > > > with some fixes > > > > > > project page http://tapestry5-components.googlecode.com > > > > > > *Impotant Information* > > > > > > This release of t5components will be the last. > > > This project has been discontinued, all development effort has been > > > moved to chenillekit.org > > > > > > -- > > > with regards > > > Sven Homburg > > > http://www.chenillekit.org > > > http://tapestry5-components.googlecode.com > > > > _________________________________________________________________ > > News, entertainment and everything you care about at Live.com. Get it now! > > http://www.live.com/getstarted.aspx > > > > > -- > with regards > Sven Homburg > http://www.chenillekit.org > http://tapestry5-components.googlecode.com _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE