You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Aaron Kaminsky <aa...@adaptiveplanning.com> on 2007/11/07 02:11:54 UTC

Re: OGNL Methode called several times

Hi all,

I am using the released 4.1.3 jar and I am seeing the same behavior.  
Does anyone know if this is supposed to be fixed, or if there is a way 
to turn it off or work around it?

Thanks,
Aaron Kaminsky

Gusti Benawi wrote:
> Thanks for the info.
>
> Could you tell me if there is anything I can do to temporary fix this 
> until it is removed in a newer release?
>
> Thanks in advanced,
>
> Gusti Benawi
>
> Andreas Andreou wrote:
>> No, it's ognl related - perhaps measuring performance or something like
>> that...
>>
>> Jesse knows ;)
>>
>> On 9/20/07, Renat Zubairov <re...@gmail.com> wrote:
>>> May be it's due to different phases inside rendering cycle?
>>>
>>> On 20/09/2007, andyhot <an...@di.uoa.gr> wrote:
>>>> Indeed, the first invocation of an ognl expression is currently
>>> happening
>>>> 3 times.
>>>>
>>>> I remember this is done on purpose, but i dont remember why. We'll
>>>> eventually remove this.
>>>>
>>>> Gusti Benawi wrote:
>>>>> Hello,
>>>>>
>>>>> If i define a method, which is not abstract and call this via ognl,
>>> then
>>>>> somehow the whole site will be loaded several times (3-4 times). Is
>>> this
>>>>> a known issue? how to fix this?
>>>>>
>>>>> below is my simple test
>>>>>
>>>>>
>>>>> .html
>>>>> <span jwcid="Browse"/>
>>>>>
>>>>>
>>>>> .page
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <!DOCTYPE page-specification PUBLIC
>>>>>     "-//Apache Software Foundation//Tapestry Specification 4.1//EN"
>>>>>     "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd">
>>>>>
>>>>> <page-specification 
>>>>> class="org.tub.scampi.website.blog.ShowBlogEntries
>>> ">
>>>>>    <component id="Browse" type="Insert">
>>>>>     <binding name="value" value="amountOfPages"/>
>>>>>   </component>
>>>>> </page-specification>
>>>>>
>>>>>
>>>>> .java
>>>>> public int getAmountOfPages() {
>>>>>   System.out.println("called");
>>>>>   return 0;
>>>>> }
>>>>>
>>>>>
>>>>> As result, i get the String "called" 4 times in the console.
>>>>> I am using tapestry-framework-4.1.3-SNAPSHOT.jar (from August i
>>> think).
>>>>> Thanks in advanced,
>>>>>
>>>>> Gusti
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>> -- 
>>>> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
>>>> Tapestry / Tacos developer
>>>> Open Source / JEE Consulting
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>> -- 
>>> Best regards,
>>> Renat Zubairov
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
See how easy it can be to move beyond spreadsheets for budgeting, 
forecasting and reporting! Try Adaptive Planning now: Trial Enterprise 
Edition | Use Free Express Edition

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org