RE: contrib:Timeout

2007-07-18 Thread Henry Chen
Just post it on jira.

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 10:44 AM
To: Tapestry users
Subject: Re: contrib:Timeout

It looks like a bug.
Can you please create a jira issue for it ?

Thanks

Henry Chen wrote:
> Yes, you are right. Is this a bug? Can somebody fix it? 
> FireBug reported the following error:
>
>
> TimeoutConfirm is not defined
> tapestry.TimeoutTimerConfirm = window.setTimeout("TimeoutConfirm()",
> 8)...
>
>
>
>
> -Original Message-
> From: Hugo Palma [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 18, 2007 5:52 AM
> To: Tapestry users
> Subject: Re: contrib:Timeout
>
> Ok, i've actually tested the component and have confirmed that it doesn't
> work for me either.
> After some fiddling there seems to be two problems with the component:
>
> - The XTitle implementation is adding this javascript code:
>
> requestObject.onreadystatechange = function() {if
> (requestObject.readyState== 4) {
>if (requestObject.status == 200) {
>   var data = extractData(requestObject);
>   TimeoutSessionRenewed(data);
> }
> }
> }
>
> What this does is renew the warning counter every time u even move ur
mouse
> over the web page. To try this, refresh ur page where the timeout
component
> is and go for a coffee or something. Just be sure to not touch ur mouse.
See
> if anything happens this way.
>
>
> - Second problem. The Timeout component add TimeoutConfirm() to the window
> timeout event and not tapestry.TimeoutConfirm(). This throws a javascript
> error when the timeout occurs and the window tries to call the non
> existent TimeoutConfirm()
> function.
>
>
> I only tried in Firefox so IE might have a different behaviour.
>
>
> On 7/17/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>   
>>  Are you sure ur application is creating a session ?
>> Add this to ur page class:
>>
>> @InjectObject("infrastructure:request")
>> public abstract WebRequest getRequest();
>>
>> public boolean isInSession() {
>> return getRequest().getSession(false) != null;
>> }
>>
>> and print out the value of the inSession property. Does it confirm that u
>> r in a session ?
>>
>> Henry Chen wrote:
>>
>> For some reason, when I post from Nable the code parts were lost. I'm
>> reposting from outlook this time.
>>
>> Thank you for helping.
>>
>> Sorry I didn't realize that the code is missing from my original post.
>> Here it is:
>>
>> > 
> disableAutoProlong="true"/>
>   
>> There is no js error. I read the generated js code and it looks like
>> warningTime should be in millisecond. So I tried the following which
>> 
> didn't
>   
>> work either.
>>
>> > disableAutoProlong="true"/>
>>
>>
>> -Original Message-
>> From: Henry Chen [mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
>> Sent: Tuesday, July 17, 2007 10:27 AM
>> To: users@tapestry.apache.org
>> Subject: Re: contrib:Timeout
>>
>>
>> Thank you for helping.
>>
>> Sorry I didn't realize that the code is missing from my original post.
>> Here it is:
>>
>>
>>
>> There is no js error. I read the generated js code and it looks like
>> warningTime should be in millisecond. So I tried the following which
>> 
> didn't
>   
>> work either.
>>
>>
>>
>>
>>
>>
>> HugoPalma wrote:
>>
>>
>>  Did the session actually expire after the 10 minutes wait ?
>> What parameters did u provide to the TimeoutComponent and what are their
>> values ?
>> Did u check for javascript errors on the page ?
>>
>> Henry Chen wrote:
>>
>>  Nobody had the similar experience? Can anybody help? Thank you very much
>> in
>> advance.
>>
>>
>> Henry Chen wrote:
>>
>>I'm using the latest Tap4.1.2.
>>
>> Did anybody successfully use contrib:Timeout?
>> I tried to use it in the my border component as below.
>>
>>
>>
>> I set the session time in web.xml to 10 mins and waited but nothing
>> happened. I found some "timeout" related js code are added. Why didn't
>> it
>> work? Please help. Thank you.
>>
>>
>>
>>
>>
>>
>>
>> 
>
>
> -
> 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]



Re: contrib:Timeout

2007-07-18 Thread Hugo Palma

It looks like a bug.
Can you please create a jira issue for it ?

Thanks

Henry Chen wrote:
Yes, you are right. Is this a bug? Can somebody fix it? 
FireBug reported the following error:



TimeoutConfirm is not defined
tapestry.TimeoutTimerConfirm = window.setTimeout("TimeoutConfirm()",
8)...




-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 5:52 AM

To: Tapestry users
Subject: Re: contrib:Timeout

Ok, i've actually tested the component and have confirmed that it doesn't
work for me either.
After some fiddling there seems to be two problems with the component:

- The XTitle implementation is adding this javascript code:

requestObject.onreadystatechange = function() {if
(requestObject.readyState== 4) {
   if (requestObject.status == 200) {
  var data = extractData(requestObject);
  TimeoutSessionRenewed(data);
}
}
}

What this does is renew the warning counter every time u even move ur mouse
over the web page. To try this, refresh ur page where the timeout component
is and go for a coffee or something. Just be sure to not touch ur mouse. See
if anything happens this way.


- Second problem. The Timeout component add TimeoutConfirm() to the window
timeout event and not tapestry.TimeoutConfirm(). This throws a javascript
error when the timeout occurs and the window tries to call the non
existent TimeoutConfirm()
function.


I only tried in Firefox so IE might have a different behaviour.


On 7/17/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
  

 Are you sure ur application is creating a session ?
Add this to ur page class:

@InjectObject("infrastructure:request")
public abstract WebRequest getRequest();

public boolean isInSession() {
return getRequest().getSession(false) != null;
}

and print out the value of the inSession property. Does it confirm that u
r in a session ?

Henry Chen wrote:

For some reason, when I post from Nable the code parts were lost. I'm
reposting from outlook this time.

Thank you for helping.

Sorry I didn't realize that the code is missing from my original post.
Here it is:



disableAutoProlong="true"/>
  

There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which


didn't
  

work either.




-Original Message-
From: Henry Chen [mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
Sent: Tuesday, July 17, 2007 10:27 AM
To: users@tapestry.apache.org
Subject: Re: contrib:Timeout


Thank you for helping.

Sorry I didn't realize that the code is missing from my original post.
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which


didn't
  

work either.






HugoPalma wrote:


 Did the session actually expire after the 10 minutes wait ?
What parameters did u provide to the TimeoutComponent and what are their
values ?
Did u check for javascript errors on the page ?

Henry Chen wrote:

 Nobody had the similar experience? Can anybody help? Thank you very much
in
advance.


Henry Chen wrote:

   I'm using the latest Tap4.1.2.

Did anybody successfully use contrib:Timeout?
I tried to use it in the my border component as below.



I set the session time in web.xml to 10 mins and waited but nothing
happened. I found some "timeout" related js code are added. Why didn't
it
work? Please help. Thank you.











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


  


RE: contrib:Timeout

2007-07-18 Thread Henry Chen
Yes, you are right. Is this a bug? Can somebody fix it? 
FireBug reported the following error:


TimeoutConfirm is not defined
tapestry.TimeoutTimerConfirm = window.setTimeout("TimeoutConfirm()",
8)...




-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 5:52 AM
To: Tapestry users
Subject: Re: contrib:Timeout

Ok, i've actually tested the component and have confirmed that it doesn't
work for me either.
After some fiddling there seems to be two problems with the component:

- The XTitle implementation is adding this javascript code:

requestObject.onreadystatechange = function() {if
(requestObject.readyState== 4) {
   if (requestObject.status == 200) {
  var data = extractData(requestObject);
  TimeoutSessionRenewed(data);
}
}
}

What this does is renew the warning counter every time u even move ur mouse
over the web page. To try this, refresh ur page where the timeout component
is and go for a coffee or something. Just be sure to not touch ur mouse. See
if anything happens this way.


- Second problem. The Timeout component add TimeoutConfirm() to the window
timeout event and not tapestry.TimeoutConfirm(). This throws a javascript
error when the timeout occurs and the window tries to call the non
existent TimeoutConfirm()
function.


I only tried in Firefox so IE might have a different behaviour.


On 7/17/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>
>  Are you sure ur application is creating a session ?
> Add this to ur page class:
>
> @InjectObject("infrastructure:request")
> public abstract WebRequest getRequest();
>
> public boolean isInSession() {
> return getRequest().getSession(false) != null;
> }
>
> and print out the value of the inSession property. Does it confirm that u
> r in a session ?
>
> Henry Chen wrote:
>
> For some reason, when I post from Nable the code parts were lost. I'm
> reposting from outlook this time.
>
> Thank you for helping.
>
> Sorry I didn't realize that the code is missing from my original post.
> Here it is:
>
> 
>
> There is no js error. I read the generated js code and it looks like
> warningTime should be in millisecond. So I tried the following which
didn't
> work either.
>
>  disableAutoProlong="true"/>
>
>
> -Original Message-
> From: Henry Chen [mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
> Sent: Tuesday, July 17, 2007 10:27 AM
> To: users@tapestry.apache.org
> Subject: Re: contrib:Timeout
>
>
> Thank you for helping.
>
> Sorry I didn't realize that the code is missing from my original post.
> Here it is:
>
>
>
> There is no js error. I read the generated js code and it looks like
> warningTime should be in millisecond. So I tried the following which
didn't
> work either.
>
>
>
>
>
>
> HugoPalma wrote:
>
>
>  Did the session actually expire after the 10 minutes wait ?
> What parameters did u provide to the TimeoutComponent and what are their
> values ?
> Did u check for javascript errors on the page ?
>
> Henry Chen wrote:
>
>  Nobody had the similar experience? Can anybody help? Thank you very much
> in
> advance.
>
>
> Henry Chen wrote:
>
>I'm using the latest Tap4.1.2.
>
> Did anybody successfully use contrib:Timeout?
> I tried to use it in the my border component as below.
>
>
>
> I set the session time in web.xml to 10 mins and waited but nothing
> happened. I found some "timeout" related js code are added. Why didn't
> it
> work? Please help. Thank you.
>
>
>
>
>
>
>


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



Re: contrib:Timeout

2007-07-18 Thread Hugo Palma

Ok, the first one is actually the desired behaviour.
Check this for more details
http://mail-archives.apache.org/mod_mbox/tapestry-users/200504.mbox/[EMAIL 
PROTECTED]

On 7/18/07, Hugo Palma <[EMAIL PROTECTED]> wrote:


Ok, i've actually tested the component and have confirmed that it doesn't
work for me either.
After some fiddling there seems to be two problems with the component:

- The XTitle implementation is adding this javascript code:

requestObject.onreadystatechange = function() {if (
requestObject.readyState == 4) {
   if (requestObject.status == 200) {
  var data = extractData(requestObject);
  TimeoutSessionRenewed(data);
}
}
}

What this does is renew the warning counter every time u even move ur
mouse over the web page. To try this, refresh ur page where the timeout
component is and go for a coffee or something. Just be sure to not touch ur
mouse. See if anything happens this way.


- Second problem. The Timeout component add TimeoutConfirm() to the window
timeout event and not tapestry.TimeoutConfirm(). This throws a javascript
error when the timeout occurs and the window tries to call the non existent 
TimeoutConfirm()
function.


I only tried in Firefox so IE might have a different behaviour.


On 7/17/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>
>  Are you sure ur application is creating a session ?
> Add this to ur page class:
>
> @InjectObject("infrastructure:request")
> public abstract WebRequest getRequest();
>
> public boolean isInSession() {
> return getRequest().getSession(false) != null;
> }
>
> and print out the value of the inSession property. Does it confirm that
> u r in a session ?
>
> Henry Chen wrote:
>
> For some reason, when I post from Nable the code parts were lost. I'm
> reposting from outlook this time.
>
> Thank you for helping.
>
> Sorry I didn't realize that the code is missing from my original post.
>
> Here it is:
>
> 
>
> There is no js error. I read the generated js code and it looks like
> warningTime should be in millisecond. So I tried the following which didn't
> work either.
>
>  disableAutoProlong="true"/>
>
>
> -Original Message-
> From: Henry Chen [
> mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
> Sent: Tuesday, July 17, 2007 10:27 AM
> To: users@tapestry.apache.org
>
> Subject: Re: contrib:Timeout
>
>
> Thank you for helping.
>
> Sorry I didn't realize that the code is missing from my original post.
> Here it is:
>
>
>
> There is no js error. I read the generated js code and it looks like
> warningTime should be in millisecond. So I tried the following which didn't
> work either.
>
>
>
>
>
>
> HugoPalma wrote:
>
>
>  Did the session actually expire after the 10 minutes wait ?
> What parameters did u provide to the TimeoutComponent and what are their
> values ?
> Did u check for javascript errors on the page ?
>
> Henry Chen wrote:
>
>  Nobody had the similar experience? Can anybody help? Thank you very much
> in
> advance.
>
>
> Henry Chen wrote:
>
>I'm using the latest Tap4.1.2.
>
> Did anybody successfully use contrib:Timeout?
> I tried to use it in the my border component as below.
>
>
>
> I set the session time in web.xml to 10 mins and waited but nothing
>
> happened. I found some "timeout" related js code are added. Why didn't
> it
> work? Please help. Thank you.
>
>
>
>
>
>
>



Re: contrib:Timeout

2007-07-18 Thread Hugo Palma

Ok, i've actually tested the component and have confirmed that it doesn't
work for me either.
After some fiddling there seems to be two problems with the component:

- The XTitle implementation is adding this javascript code:

requestObject.onreadystatechange = function() {if
(requestObject.readyState== 4) {
  if (requestObject.status == 200) {
 var data = extractData(requestObject);
 TimeoutSessionRenewed(data);
}
}
}

What this does is renew the warning counter every time u even move ur mouse
over the web page. To try this, refresh ur page where the timeout component
is and go for a coffee or something. Just be sure to not touch ur mouse. See
if anything happens this way.


- Second problem. The Timeout component add TimeoutConfirm() to the window
timeout event and not tapestry.TimeoutConfirm(). This throws a javascript
error when the timeout occurs and the window tries to call the non
existent TimeoutConfirm()
function.


I only tried in Firefox so IE might have a different behaviour.


On 7/17/07, Hugo Palma <[EMAIL PROTECTED]> wrote:


 Are you sure ur application is creating a session ?
Add this to ur page class:

@InjectObject("infrastructure:request")
public abstract WebRequest getRequest();

public boolean isInSession() {
return getRequest().getSession(false) != null;
}

and print out the value of the inSession property. Does it confirm that u
r in a session ?

Henry Chen wrote:

For some reason, when I post from Nable the code parts were lost. I'm
reposting from outlook this time.

Thank you for helping.

Sorry I didn't realize that the code is missing from my original post.
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.




-Original Message-
From: Henry Chen [mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
Sent: Tuesday, July 17, 2007 10:27 AM
To: users@tapestry.apache.org
Subject: Re: contrib:Timeout


Thank you for helping.

Sorry I didn't realize that the code is missing from my original post.
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.






HugoPalma wrote:


 Did the session actually expire after the 10 minutes wait ?
What parameters did u provide to the TimeoutComponent and what are their
values ?
Did u check for javascript errors on the page ?

Henry Chen wrote:

 Nobody had the similar experience? Can anybody help? Thank you very much
in
advance.


Henry Chen wrote:

   I'm using the latest Tap4.1.2.

Did anybody successfully use contrib:Timeout?
I tried to use it in the my border component as below.



I set the session time in web.xml to 10 mins and waited but nothing
happened. I found some "timeout" related js code are added. Why didn't
it
work? Please help. Thank you.









RE: contrib:Timeout

2007-07-17 Thread Henry Chen
Yes. I'm sure it has session. It is not a trivial application, we used
session everywhere. And I used your way to confirm it too. The value is
true.

Here is the js part from generated html. 

tapestry.TimeoutTimerConfirm=function(){};
tapestry.TimeoutProlongSessionTime=function(){};
tapestry.TimeoutExpirationTime=function(){};


tapestry.TimeoutConfirm=function()
{
tapestry.TimeoutClearConfirmTimer();

var exp = new Date();
exp.setTime(exp.getTime() + 66);
var hrs = exp.getHours();
var min = exp.getMinutes();
if (min < 10)
mins = "0" + min;
else
mins = min;

var confirmMessage = "The connection was inactive for more than {0}
minutes. Your session will expire at {1}.\n Please click OK to continue your
work or CANCEL to close the session.";
confirmMessage = confirmMessage.replace("{0}", Math.round(0/6));
confirmMessage = confirmMessage.replace("{1}", hrs + ":" + mins);

var val = confirm(confirmMessage);
if (!val) {

return;
}
   
var current = new Date();
if (current.getTime() > exp.getTime()) {
alert("Your session has expired. Please log in again.");

}
else {
tapestry.TimeoutProlongSession();
}
}

tapestry.TimeoutProlongSession=function()
{
tapestry.TimeoutUpdateProlongSessionTime();
TimeoutRenewSession();
}

TimeoutSessionRenewed=function()
{
tapestry.TimeoutClearConfirmTimer();
tapestry.TimeoutInitConfirmTimer();
}

tapestry.TimeoutClearConfirmTimer=function()
{
window.clearTimeout(tapestry.TimeoutTimerConfirm);
}

tapestry.TimeoutInitConfirmTimer=function()
{

tapestry.TimeoutTimerConfirm = window.setTimeout("TimeoutConfirm()",
0);


tapestry.TimeoutExpirationTime = new Date();
 
tapestry.TimeoutExpirationTime.setTime(tapestry.TimeoutExpirationTime.getTim
e() + 0 + 66);

tapestry.TimeoutUpdateProlongSessionTime();
}

tapestry.TimeoutUpdateProlongSessionTime=function()
{
tapestry.TimeoutProlongSessionTime = new Date();
 
tapestry.TimeoutProlongSessionTime.setTime(tapestry.TimeoutProlongSessionTim
e.getTime() + -24);
}



tapestry.TimeoutInitConfirmTimer();
function TimeoutRenewSession() 
{
var requestObject = getRequest();
if (!requestObject) {

return;
}

var url =
"/dboard/xtile.svc?component=%24Border.%24Timeout.%24XTile&page=Boards";
var arguments = TimeoutRenewSession.arguments;
var argumentCount = arguments.length;
for (i = 0; i < argumentCount; i++) {
url = url + "&sp=" + encodeURI(arguments[i]);
}


url = url + "&rand=" + Math.random();


requestObject.onreadystatechange = function() {
if (requestObject.readyState == 4) {
if (requestObject.status == 200) {
var data =
extractData(requestObject);
TimeoutSessionRenewed(data);
}

}
}

requestObject.open("GET", url, true);
requestObject.send(null);
}


-----Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 11:29 AM
To: Tapestry users
Subject: Re: contrib:Timeout

Are you sure ur application is creating a session ?
Add this to ur page class:

@InjectObject("infrastructure:request")
public abstract WebRequest getRequest();

public boolean isInSession() {
return getRequest().getSession(false) != null;
}

and print out the value of the inSession property. Does it confirm that 
u r in a session ?

Henry Chen wrote:
> For some reason, when I post from Nable the code parts were lost. I'm
> reposting from outlook this time.
>
> Thank you for helping.
>
> Sorry I didn't realize that the code is missing from my original post. 
> Here it is:
>
> 
>
> There is no js error. I read the generated js code and it looks like
> warningTime should be in millisecond. So I tried the following which
didn't
> work either.
>
>  disableAutoProlong="true"/>
>
>
> -Original Message-
> From: Henry Chen [mailto:[EMAIL P

Re: contrib:Timeout

2007-07-17 Thread Hugo Palma

Are you sure ur application is creating a session ?
Add this to ur page class:

@InjectObject("infrastructure:request")
   public abstract WebRequest getRequest();

   public boolean isInSession() {
   return getRequest().getSession(false) != null;
   }

and print out the value of the inSession property. Does it confirm that 
u r in a session ?


Henry Chen wrote:

For some reason, when I post from Nable the code parts were lost. I'm
reposting from outlook this time.

Thank you for helping.

Sorry I didn't realize that the code is missing from my original post. 
Here it is:




There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.




-Original Message-
From: Henry Chen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 10:27 AM

To: users@tapestry.apache.org
Subject: Re: contrib:Timeout


Thank you for helping.

Sorry I didn't realize that the code is missing from my original post. 
Here it is:




There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.






HugoPalma wrote:
  

Did the session actually expire after the 10 minutes wait ?
What parameters did u provide to the TimeoutComponent and what are their 
values ?

Did u check for javascript errors on the page ?

Henry Chen wrote:


Nobody had the similar experience? Can anybody help? Thank you very much
in
advance.


Henry Chen wrote:
  
  

I'm using the latest Tap4.1.2.

Did anybody successfully use contrib:Timeout?
I tried to use it in the my border component as below.



I set the session time in web.xml to 10 mins and waited but nothing
happened. I found some "timeout" related js code are added. Why didn't
it
work? Please help. Thank you.






  
  



  


RE: contrib:Timeout

2007-07-17 Thread Henry Chen
For some reason, when I post from Nable the code parts were lost. I'm
reposting from outlook this time.

Thank you for helping.

Sorry I didn't realize that the code is missing from my original post. 
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.




-Original Message-
From: Henry Chen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 10:27 AM
To: users@tapestry.apache.org
Subject: Re: contrib:Timeout


Thank you for helping.

Sorry I didn't realize that the code is missing from my original post. 
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.






HugoPalma wrote:
> 
> Did the session actually expire after the 10 minutes wait ?
> What parameters did u provide to the TimeoutComponent and what are their 
> values ?
> Did u check for javascript errors on the page ?
> 
> Henry Chen wrote:
>> Nobody had the similar experience? Can anybody help? Thank you very much
>> in
>> advance.
>>
>>
>> Henry Chen wrote:
>>   
>>> I'm using the latest Tap4.1.2.
>>>
>>> Did anybody successfully use contrib:Timeout?
>>> I tried to use it in the my border component as below.
>>>
>>>
>>>
>>> I set the session time in web.xml to 10 mins and waited but nothing
>>> happened. I found some "timeout" related js code are added. Why didn't
>>> it
>>> work? Please help. Thank you.
>>>
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 

-- 
View this message in context:
http://www.nabble.com/contrib%3ATimeout-tf4080146.html#a11651693
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: contrib:Timeout

2007-07-17 Thread Henry Chen

Thank you for helping.

Sorry I didn't realize that the code is missing from my original post. 
Here it is:



There is no js error. I read the generated js code and it looks like
warningTime should be in millisecond. So I tried the following which didn't
work either.






HugoPalma wrote:
> 
> Did the session actually expire after the 10 minutes wait ?
> What parameters did u provide to the TimeoutComponent and what are their 
> values ?
> Did u check for javascript errors on the page ?
> 
> Henry Chen wrote:
>> Nobody had the similar experience? Can anybody help? Thank you very much
>> in
>> advance.
>>
>>
>> Henry Chen wrote:
>>   
>>> I'm using the latest Tap4.1.2.
>>>
>>> Did anybody successfully use contrib:Timeout?
>>> I tried to use it in the my border component as below.
>>>
>>>
>>>
>>> I set the session time in web.xml to 10 mins and waited but nothing
>>> happened. I found some "timeout" related js code are added. Why didn't
>>> it
>>> work? Please help. Thank you.
>>>
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/contrib%3ATimeout-tf4080146.html#a11651693
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: contrib:Timeout

2007-07-17 Thread Hugo Palma

Did the session actually expire after the 10 minutes wait ?
What parameters did u provide to the TimeoutComponent and what are their 
values ?

Did u check for javascript errors on the page ?

Henry Chen wrote:

Nobody had the similar experience? Can anybody help? Thank you very much in
advance.


Henry Chen wrote:
  

I'm using the latest Tap4.1.2.

Did anybody successfully use contrib:Timeout?
I tried to use it in the my border component as below.



I set the session time in web.xml to 10 mins and waited but nothing
happened. I found some "timeout" related js code are added. Why didn't it
work? Please help. Thank you.







  


Re: contrib:Timeout

2007-07-17 Thread Henry Chen

Nobody had the similar experience? Can anybody help? Thank you very much in
advance.


Henry Chen wrote:
> 
> I'm using the latest Tap4.1.2.
> 
> Did anybody successfully use contrib:Timeout?
> I tried to use it in the my border component as below.
> 
> 
> 
> I set the session time in web.xml to 10 mins and waited but nothing
> happened. I found some "timeout" related js code are added. Why didn't it
> work? Please help. Thank you.
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/contrib%3ATimeout-tf4080146.html#a11650713
Sent from the Tapestry - User mailing list archive at Nabble.com.


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