velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Krasnukhin <the.malk...@gmail.com>
Subject Re: Velocity html help
Date Wed, 24 Mar 2010 18:56:23 GMT
Not sure, haven't used Velocity for a long time but comparing strings with
"==" doesn't seems right. Have you tried equals instead?

On 25 March 2010 00:47, Anil h k <anilhk@gmail.com> wrote:

>
> Hi ,
>
> I am trying to read a multiple checkbox in velocity this is my code.
>
> #foreach( $additional_province in
> $opportunity.additional_provinces_821102568)
> {
>        #if ($opportunity.additional_provinces_821102568.checked == true)
>        {
>                #if ($opportunity.additional_provinces_821102568.value ==
> "Quebec")
>                {
>                        #set($value1 = "CSST");
>                }
>                #end
>                #if (additional_provinces_821102568.value == "Ontario")
>                {
>                        #set($value1 = $value1 + "WSIB");
>                }
>                #else
>                {
>                        #set($value1 = $value1 + "WSB");
>                }
>                #end
>        }
>        #end
> }
> #end
>
> can anyone let me know what is wrong in this.. i just cannot get this right
> .
>
> thanks !
> --
> View this message in context:
> http://old.nabble.com/Velocity-html-help-tp28019574p28019574.html
> Sent from the Velocity - User mailing list archive at Nabble.com.
>



-- 
Regards,
Alexander

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message