velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@4quarters.com>
Subject Re: POLL: null context attribute values
Date Thu, 15 Jan 2004 23:52:26 GMT

On Jan 15, 2004, at 6:46 PM, lloyd wrote:

> Geir Magnusson Jr wrote:
>>> would this mean that
>>>
>>>   #foreach( $lev1 in $topLevelItems )
>>>     #if( $lev1 )  ## should return false if $lev1 is null?
>>>       #set( $lowerLevelItems = $lev1.lowerLevelItems )
>>>       #foreach( $lev2 in $lowerLevelItems )
>>>         #if( $lev2 )
>>>           ## etc
>>>         #end
>>>       #end
>>>     #end
>>>   #end
>>>
>>>
>>> ... would work as intuitively expected if $lev1 and $lev2 
>>> occasionally contain nulls?
>> The only aspect that is what we are talking about is if $lev1 can be 
>> assigned null in the #foreach() and I think it can't now because the 
>> VelocityContext prohibits setting of null
>> We'd remove that.
>
> are you saying that the above should work now, or that making the 
> above work isn't even under consideration?  :-)

It would work in the Brave New World, because we'd allow $lev1 to be 
set w/ a NULL (as well as $lev2), which they can't be now.

geir

>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message