You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jinghui Yin <ji...@gmail.com> on 2008/07/28 21:32:54 UTC

[Trinidad] onload event

 Hi,

I'm working on a project using Trinidad.  I'm trying to implement
a mechanism to force the session timeout to happen from client side.  I
implemnted a javascript timer and installed it in onload() event of
<tr:document> component.  It's working.  However, I have to install this
timer to the onload() event for EVERY jspx file.  There are about 60 pages.
It'd be a maintenance nightmare.  Is there a better way to achieve this?
Like overloading the trinidad onload method, or something?

Thanks!
Jenny

RE: [Trinidad] onload event

Posted by F....@delagelanden.com.
Hi Jenny,

 

If you're using jspx files, you're probably using facelets? You can
create a template that includes the tr:document and put the onload in
there.

 

Regards,

 

Freek Segers

 

-----Original Message-----
From: Jinghui Yin [mailto:jinghuiyin@gmail.com] 
Sent: dinsdag 29 juli 2008 18:02
To: users@myfaces.apache.org
Subject: Re: [Trinidad]<tr:document> onload event

 

Just pinging the thread...  What I am looking for is a central place to
put my javascript timer, instead of having to put it in every page.

 

Thanks!

Jenny

 

On 7/28/08, Jinghui Yin <ji...@gmail.com> wrote: 

Hi,

 

I'm working on a project using Trinidad.  I'm trying to implement a
mechanism to force the session timeout to happen from client side.  I
implemnted a javascript timer and installed it in onload() event of
<tr:document> component.  It's working.  However, I have to install this
timer to the onload() event for EVERY jspx file.  There are about 60
pages.  It'd be a maintenance nightmare.  Is there a better way to
achieve this?  Like overloading the trinidad onload method, or
something?

 

Thanks!

Jenny

 



================================================
The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Re: [Trinidad] onload event

Posted by Jinghui Yin <ji...@gmail.com>.
Just pinging the thread...  What I am looking for is a central place to put
my javascript timer, instead of having to put it in every page.

Thanks!
Jenny


On 7/28/08, Jinghui Yin <ji...@gmail.com> wrote:
>
> Hi,
>
> I'm working on a project using Trinidad.  I'm trying to implement
> a mechanism to force the session timeout to happen from client side.  I
> implemnted a javascript timer and installed it in onload() event of
> <tr:document> component.  It's working.  However, I have to install this
> timer to the onload() event for EVERY jspx file.  There are about 60 pages.
> It'd be a maintenance nightmare.  Is there a better way to achieve this?
> Like overloading the trinidad onload method, or something?
>
> Thanks!
> Jenny
>