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 Sun, 18 Jan 2004 22:04:01 GMT

On Jan 18, 2004, at 4:08 PM, Claude Brisson wrote:

> +1 also
>
> Note that if I understand correctly, the change will not concern only 
> method
> calls but all RHSs of the set directive.
> So there is no real need (other than avoiding a warning) for a "null"
> keyword, koz if $null if not in the context, you can write :
>
> #set($foo = $null)
>
> to nullify $foo  (i.e. remove it from the context).

Yes.

>
> CloD
>
> ----- Original Message -----
> From: "Barbara Baughman" <baughman@utdallas.edu>
> To: "Velocity Users List" <velocity-user@jakarta.apache.org>
> Sent: Friday, January 16, 2004 9:44 PM
> Subject: RE: POLL: null context attribute values
>
>
>> +1.
>>
>> I've got my own workarounds for the null behavior, but I'd much rather
>> have it work right.  I have been bit by the unusual null behavior.
>>
>> Barbara Baughman
>> X2157
>>
>> On Fri, 16 Jan 2004, Tim Colson wrote:
>>
>>> Peter summarized:
>>>> "a", "b", null, "c" and iterate over it like:
>>>> #foreach ($value in $mylist) $value #end
>>>> will CURRENTLY print: a b b c
>>>> and will THEN print : a b $value c
>>>> The latter one feels correct for almost everyone.
>>>> +1 for the switch and for setting it to the new behavior
>>>> sooner than later.
>>>
>>> +1
>>>
>>> -Timo
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: 
>>> velocity-user-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> 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