From: <[EMAIL PROTECTED]> > Hi > > While doing so I discovered that I had a Typo: > value="[EMAIL PROTECTED]> << Note the wrong ending. Changing > that to ->" and it works :) >
Good deal. I looked again at the symbol replacement and it's working. > Sorry for shooting to early. The behaviour was still weird though. > Ya, I suppose that is strange from a component but makes perfect sense for a variable binding expression. I guess we should log a clue here if a Iterator can't be created. > Hermod > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 08, 2006 3:42 PM > To: Struts Users Mailing List > Subject: RE: [shale] Clayforeach tag > > > >From: > > > > Hi > > > > I tested it and I am getting a weird result: My main page gets rendered > several > > times and the block for the clayForEach is not rendered. > > > > The set up is a working Clay template with the following block in it: > > .... > >> >value="[EMAIL PROTECTED]"> > > > > Story Title > > Story body - reduced for simplicity > > > > > > > > > >... > > Debugging this, I have added an extra catch in the ClayAmalgam.clayForEach > > method, catching the case where vi is null at the end. Here I print out the > type > > of valueList (which should equal the returnvalue of otherTopNews i.e List). > > It > > states that it is of type String!! > > > > I have tried to figure out where it changes from a List to a String, but I > > am > at > > a loss. > > I believe that the problem is in the "value" attribute. The clayForEach > method > is not handling the symbol replacement. If you hard code the managed bean > name > in the value, it should work. > > #{mybean.otherTopNews} > Please write this one up as a bugzilla item. > > > > > Hermod > > Gary > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR Group > cannot accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >