Hi Eric, No it is not intended that if a value is null then the stack is searched upwards. This is a known bug at the moment: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-382
However if the value was not found because an object did not implement the method/property then the stack should be searched. When you use ./name then the stack will never be searched upwards, so as you have discovered by now, you can use it to get around the WW-382 bug. Best regards, Dick Zetterberg [EMAIL PROTECTED] ----- Original Message ----- From: "Eric Mckenna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 9:52 PM Subject: [OS-webwork] Values being pulled from outside iterator tag > Is it intended that values not found on the current object of the iterator > are then searched up the stack to find the value? > > <webwork:push value="model"> > > <webwork:iterator list="children"> > <webwork:property value="name"/> > <webwork:property value="./name"/> > </webwork:iterator> > > </webwork:push> > > name is an attribute on the model and on the objects contained within the > children list(model.getChildren()) > For simplicity sake, the children list is of size 1, and the name attribute > is NULL, model.name is set to "Model". > > Inside the iterator, <webwork:property value="name"/>, yields, "Model" and > <webwork:property value="./name"/>, yields "" (empty string). > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
