You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Thomas Chang <th...@yahoo.de> on 2007/02/07 12:34:20 UTC

How to set timer to a page?

Hi all,

what I want to do is:
I click the commandLink in page1.xHtml and it change to page2.xHtml. This page2.xHtml will just stay for several seconds for example and will do logout. 

How can I do that?

Thanks

Thomas


 		
---------------------------------
Yahoo! Messenger -  kostenlos* mit Familie und Freunden von PC zu PC telefonieren. 

Re: How to set timer to a page?

Posted by Jay Balunas <ba...@gmail.com>.
Thomas,

The way I've done this is a strait JavaScript approach where the page starts
a timer when loaded, and when the time executes it preforms the logout.

That way is not very JSF centric and can be difficult to maintain because
you are kind of hijacking the life cycle.

What I believe is a better way would be to use either Trinidad, or
ajax4Jsf.  They both have a "poller" component that will callback into the
JSF application lifecycle.  From there you can do whatever is needed.

I had trouble integrating Trinidad with tomahawk so I went the ajax4jsf
route.

-Jay

On 2/7/07, Thomas Chang <th...@yahoo.de> wrote:
>
> Hi all,
>
> what I want to do is:
> I click the commandLink in page1.xHtml and it change to page2.xHtml. This
> page2.xHtml will just stay for several seconds for example and will do
> logout.
>
> How can I do that?
>
> Thanks
>
> Thomas
>
> ------------------------------
> Yahoo! Messenger - kostenlos* mit Familie und Freunden von PC zu PC
> telefonieren
> <http://de.rd.yahoo.com/evt=39058/*http://de.messenger.yahoo.com>.
>
>

Re: A question about log4j

Posted by Mike Kienenberger <mk...@gmail.com>.
I think how you add a file external from your war file to your
container classpath depends on your container.  You'll have to check
your container documentation.

On 2/7/07, Thomas Chang <th...@yahoo.de> wrote:
> Hi all,
>
> I am not sure if my question is put in a right place. Hope there is someone
> who can give me some info.
>
> I have a file called "mylog.log4j.properties" - not "log4j.properties".
> Normally I should put this file under WEB-INF and it will be packaged in to
> the WAR. But I want to put this logfile outside of the WAR so it will be
> easy to change its contents without open the WAR.
>
> But I don't know where should I put this logfile so my web-application will
> write the logs into it. I've heard I have to configue the classpath, or I
> have to configure the web.xml. But how?
>
>
>
>  ________________________________
> Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr
> bietet das neue Yahoo! Mail .
>
>

Re: A question about log4j

Posted by Don Hill <ju...@gmail.com>.
Thomas,

If you just want to change logging levels then I have attached a jsp that
will allow this, I think there is a property that you can pass in like -
Dlog4j.config=/path/to/file or something like that.

Don

On 2/7/07, Thomas Chang <th...@yahoo.de> wrote:
>
> Hi all,
>
> I am not sure if my question is put in a right place. Hope there is
> someone who can give me some info.
>
> I have a file called "mylog.log4j.properties" - not "log4j.properties".
> Normally I should put this file under WEB-INF and it will be packaged in to
> the WAR. But I want to put this logfile outside of the WAR so it will be
> easy to change its contents without open the WAR.
>
> But I don't know where should I put this logfile so my web-application
> will write the logs into it. I've heard I have to configue the classpath, or
> I have to configure the web.xml. But how?
>
> ------------------------------
> Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel
> mehr bietet das neue Yahoo! Mail
> <http://de.rd.yahoo.com/evt=40589/*http://de.docs.yahoo.com/ymail/landing.html+%0A>
> .
>
>

A question about log4j

Posted by Thomas Chang <th...@yahoo.de>.
Hi all,
   
  I am not sure if my question is put in a right place. Hope there is someone who can give me some info.

I have a file called "mylog.log4j.properties" - not "log4j.properties". Normally I should put this file under WEB-INF and it will be packaged in to the WAR. But I want to put this logfile outside of the WAR so it will be easy to change its contents without open the WAR.

But I don't know where should I put this logfile so my web-application will write the logs into it. I've heard I have to configue the classpath, or I have to configure the web.xml. But how?



 		
---------------------------------
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das  neue Yahoo! Mail .