Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DAFD10BD5 for ; Thu, 26 Sep 2013 17:56:21 +0000 (UTC) Received: (qmail 53682 invoked by uid 500); 26 Sep 2013 17:56:12 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 53602 invoked by uid 500); 26 Sep 2013 17:56:10 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 53583 invoked by uid 99); 26 Sep 2013 17:56:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 17:56:08 +0000 Date: Thu, 26 Sep 2013 17:56:08 +0000 (UTC) From: =?utf-8?Q?Martin_Ko=C4=8D=C3=AD_=28JIRA=29?= To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MYFACES-3789) Change default refresh period for facelets from 2 to 0 sec (=always refresh) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3789?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Ko=C4=8D=C3=AD updated MYFACES-3789: --------------------------------- Status: Patch Available (was: Open) =20 > Change default refresh period for facelets from 2 to 0 sec (=3Dalways ref= resh) > -------------------------------------------------------------------------= --- > > Key: MYFACES-3789 > URL: https://issues.apache.org/jira/browse/MYFACES-3789 > Project: MyFaces Core > Issue Type: Wish > Reporter: Martin Ko=C4=8D=C3=AD > Priority: Trivial > Attachments: MYFACES-3789.patch > > > A typical developer works as follows > 1) edits a facelets view (template, composite component) > 2) CTRL +S > 3) refresh in browser > but: from 2) to 3) takes it sometimes less as 2 secs and the programmer = must repeat the 3) > We can override this behaviour mit context-param: > javax.faces.FACELETS_REFRESH_PERIOD=3D0 > but then is for development neccesary: > javax.faces.PROJECT_STAGE=3DProduction > javax.faces.FACELETS_REFRESH_PERIOD=3D0 > and for Production: > javax.faces.PROJECT_STAGE=3DProduction > javax.faces.FACELETS_REFRESH_PERIOD=3D-1 > that means a configuration of 2 params instead of one (ProjectStage) > with default refresh period =3D 0 makes the method FaceletCacheFactoryImp= l.getFaceletCache() the job and only javax.faces.PROJECT_STAGE=3DProduction= is necessary. > Does anybody know why is the default 2 seconds ? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira