anyone an idea where and how to add the count var
i still have these errors:
ERROR [btpool0-3] velocity.logVelocityMessage(143) | Left side of
addition operation is not a valid type. Currently only integers
(1,2,3...) and Integer type is supported. cssHorizontalMenu.vm [line 2,
column 28]
ERROR [btpool0-3] velocity.logVelocityMessage(143) | RHS of #set
statement is null. Context will not be modified. cssHorizontalMenu.vm
[line 2, column 1]
ERROR [btpool0-3] velocity.logVelocityMessage(143) | Left side of
addition operation is not a valid type. Currently only integers
(1,2,3...) and Integer type is supported. cssHorizontalMenu.vm [line 2,
column 28]
ERROR [btpool0-3] velocity.logVelocityMessage(143) | RHS of #set
statement is null. Context will not be modified. cssHorizontalMenu.vm
[line 2, column 1]
ERROR [btpool0-3] velocity.logVelocityMessage(143) | Left side of
addition operation is not a valid type. Currently only integers
(1,2,3...) and Integer type is supported. cssHorizontalMenu.vm [line 2,
column 28]
the errors are on these lines:
#set ($count = $count + 1)
some how somewhere the count is not initialized
thanks
tibi
tibi wrote:
> ahh i rembered removing this :S
> ok now its a bit better only the count value is a problem.
> i tried adding something like this:
> <c:set var="count" scope="request">1</c:set>
> but then it seems te be a string:
>
> Left side of addition operation is not a valid type. Currently only
> integers (1,2,3...) and Integer type is supported. cssHorizontalMenu.vm
> [line 2, column 28]
>
>
> thanks,
>
> tibi
>
>
>
> Matt Raible wrote:
>
>> Does your menu still seem to work properly or is it failing? You
>> probably need a "meta.menu" tag in your JSP or you need to adjust the
>> logic in decorators/default.jsp to set a default when one's not set:
>>
>> <c:set var="currentMenu"
>> scope="request"><decorator:getProperty property="meta.menu"/></c:set>
>> <c:if test="${currentMenu == 'AdminMenu'}">
>> <div id="sub">
>> <menu:useMenuDisplayer name="Velocity"
>> config="cssVerticalMenu.vm" permissions="rolesAdapter">
>> <menu:displayMenu name="AdminMenu"/>
>> </menu:useMenuDisplayer>
>> </div>
>> </c:if>
>>
>> Matt
>>
>> On Mon, Aug 24, 2009 at 8:45 AM, tibi <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> i get these error messages:
>>
>> ERROR [btpool0-4] velocity.logVelocityMessage(143) | Left side
>> ($count)
>> of addition operation has null value. Operation not possible.
>> cssHorizontalMenu.vm [line 2, column 28]
>> ERROR [btpool0-4] velocity.logVelocityMessage(143) | RHS of #set
>> statement is null. Context will not be modified. cssHorizontalMenu.vm
>> [line 2, column 1]
>> ERROR [btpool0-4] velocity.logVelocityMessage(143) | Right side
>> ($currentMenu) of '==' operation has null value. If a reference,
>> it may
>> not be in the context. Operation not possible. cssHorizontalMenu.vm
>> [line 32, column 59]
>>
>> did i delete somewhere something importand?
>>
>> thanks,
>>
>> tibi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> <mailto:[email protected]>
>> For additional commands, e-mail: [email protected]
>> <mailto:[email protected]>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]