Re: OGNL Methode called several times

2007-11-06 Thread Aaron Kaminsky

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 [EMAIL PROTECTED] wrote:

May be it's due to different phases inside rendering cycle?

On 20/09/2007, andyhot [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Best regards,
Renat Zubairov

-
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]





--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL Methode called several times

2007-09-21 Thread Gusti Benawi

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 [EMAIL PROTECTED] wrote:

May be it's due to different phases inside rendering cycle?

On 20/09/2007, andyhot [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Best regards,
Renat Zubairov

-
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]



OGNL Methode called several times

2007-09-20 Thread Gusti Benawi

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL Methode called several times

2007-09-20 Thread andyhot

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL Methode called several times

2007-09-20 Thread Andreas Andreou
No, it's ognl related - perhaps measuring performance or something like
that...

Jesse knows ;)

On 9/20/07, Renat Zubairov [EMAIL PROTECTED] wrote:

 May be it's due to different phases inside rendering cycle?

 On 20/09/2007, andyhot [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  --
  Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
  Tapestry / Tacos developer
  Open Source / JEE Consulting
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Best regards,
 Renat Zubairov

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting