ok made a view changes and now only have this one:
ERROR [btpool0-3] velocity.logVelocityMessage(143) | VM #displayCssMenu:
error : too few arguments to macro. Wanted 1 got 0

which i don;t realy get.

i did the following:
at the start of the file add this:
#set ($count = 0)
#set ($renderedChildren = 0)

near line 58 changed the if to
      #if ( $hasViewableChildren  && ( $count ==
$menu.parent.components.size() ))



tibi wrote:
> 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 <t...@dds.nl
>>> <mailto:t...@dds.nl>> 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: users-unsubscr...@appfuse.dev.java.net
>>>     <mailto:users-unsubscr...@appfuse.dev.java.net>
>>>     For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>     <mailto:users-h...@appfuse.dev.java.net>
>>>
>>>
>>>     
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>>   
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to