As a work around, move the property expression into the Java class as a simple accessor:
${optionMaps.get(key).selected} becomes: ${optionMapKeySelected} and public boolean isOptionMapKeySelected() { return optionMaps.get(key).isSelected(); } On Mon, Mar 7, 2011 at 11:36 PM, Jens Reufsteck <jens.reufst...@staufenbiel.de> wrote: > 5.1.0.5 > > Thanks > Jens > > -- > Jens Reufsteck > Marketing & Online Director > > Staufenbiel Institut GmbH >> -----Original Message----- >> From: Howard Lewis Ship [mailto:hls...@gmail.com] >> Sent: Monday, March 07, 2011 7:02 PM >> To: Tapestry users >> Subject: Re: Property Expression: Unable to add method xy navigate >> >> What version of Tapestry are you using? This sounds familiar ... I >> suspect its a fixed bug. >> >> On Mon, Mar 7, 2011 at 2:21 AM, Jens Reufsteck >> <jens.reufst...@staufenbiel.de> wrote: >> > Hi, >> > >> > I'm using a property expression optionMaps.get(key).selected, which works >> > fine as component parameter, but doesn't work in a loop. >> > >> > I'm getting the following exception message: >> > >> > Exception assembling root component of page CareerClub: Could not >> > convert 'optionMaps.get(key).selected' into a component parameter >> > binding: Unable to add method jj.tapext.querycatalog.Select >> > navigate(stb.admin2.pages.CareerClub) to class >> > $PropertyConduit_12e8fc67735: [source error] no such class: root >> > >> > In my template I’m using the following construction: >> > >> > <t:loop source="optionMaps" value="key"> >> > ${key}, >> > ${optionMaps.get(key).selected}<br/> >> > </t:loop> >> > >> > The same expression works fine in this construction: >> > >> > <t:flexibleParameter source="optionMaps.get('vera').options" >> > selected="optionMaps.get('vera').selected" >> > label="prop:optionMaps.get('vera').name"/> >> > >> > optionMaps is an implementation of Map, and in my AppModule I provide a >> > typecoercion to Iterable: >> > >> > public Iterable coerce(Map input) { >> > return input.keySet(); >> > } >> > >> > optionMaps.get(key) returns instances of jj.tapext.querycatalog.Select. >> > >> > Any hint where to look at is much appreciated. >> > >> > Jens >> > >> > -- >> > Jens Reufsteck >> > Marketing & Online Director >> > >> > Staufenbiel Institut GmbH >> > Events & Recruiting Solutions >> > >> > Wildunger Straße 6, 60487 Frankfurt am Main >> > www.staufenbiel.de www.mba-master.de www.absolventenkongress.de >> > >> > Tel.: +49 (0)69 25537-140 >> > Fax: +49 (0)69 25537-2140 >> > >> > Geschäftsführer: Judith Oppitz, Birgit Giesen, Graham Storey, Martin >> > Halliday >> > Amtsgericht Köln HRB 9301 >> > >> > Internet communications are not secure and therefore Staufenbiel Institut >> > GmbH does not accept legal responsibility >> > for the contents of this message. Any views or opinions presented are >> > solely >> > those of the author and do not >> > necessarily represent those of Staufenbiel Institut GmbH unless otherwise >> > specifically stated. >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> >> >> >> -- >> Howard M. Lewis Ship >> >> Creator of Apache Tapestry >> >> The source for Tapestry training, mentoring and support. Contact me to >> learn how I can get you up and productive in Tapestry fast! >> >> (971) 678-5210 >> http://howardlewisship.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org