Hi Tobias,
Something is definitely wrong here. Can you share some more code with us?
-Filip
Tobias Wehrum skrev:
Hello,
in my template, I'm using a grid similar to this simplified model:
<t:grid source="gridObjects" row="currentGridObject" model="gridModel">
<t:parameter name="someCell">
${someFunctionGeneratingSomething}
</t:parameter> </t:grid>
When i comment out the parameter block, it is significantly faster
compared to when getSomeFunctionGeneratingSomething() is called. (When
it costs 2 seconds to show 4 gridObjects without someCell, it will cost
4 seconds with it.)
At first I thought the database calls in
getSomeFunctionGeneratingSomething() are consuming the time, but then I
replaced it with a simple "return 0;" - and still it consumes almost 4
seconds, the difference was minimal.
I "solved" the problem by constructing a class dedicated to presentate
my gridObjects (simply wrapping them, so that all properties are copied
and a property does what getSomeFunctionGeneratingSomething would be
doing). That works, but it would be quite a bother to construct this for
all classes I want to output; it would nearly double my work with them,
not to mention the maintainability.
Why is this so time intensive? Is there any better way to solve this?
Thanks,
Tobias
---------------------------------------------------------------------
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]