Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 96646 invoked from network); 27 Jan 2006 08:29:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jan 2006 08:29:02 -0000 Received: (qmail 91961 invoked by uid 500); 27 Jan 2006 08:28:58 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 91852 invoked by uid 500); 27 Jan 2006 08:28:57 -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 91782 invoked by uid 99); 27 Jan 2006 08:28:57 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 00:28:55 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4C4E6CB for ; Fri, 27 Jan 2006 09:28:34 +0100 (CET) Message-ID: <569951633.1138350514310.JavaMail.jira@ajax.apache.org> Date: Fri, 27 Jan 2006 09:28:34 +0100 (CET) From: "Tomas Havelka (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (MYFACES-1067) Calendar component script events restriction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Calendar component script events restriction -------------------------------------------- Key: MYFACES-1067 URL: http://issues.apache.org/jira/browse/MYFACES-1067 Project: MyFaces Type: Improvement Components: Tomahawk Versions: 1.1.1 Reporter: Tomas Havelka Hi, I am component writer and I am using those MyFaces components too. I found another restriction of using Calendar component (and any others maybe too). This component javascript sets the document.onclick event and overrides all others associated before. I need to associate with this event my own method for my component purposes but unfortunately my script appears in page before that for Calendar component so associated event of mine is overriden. It would be nice to handle these "global" events for example by wrapping with this code (this exmaple is for discussed Calendar component): // old popcalendar.js script code document.onclick = function jscalendarHidecal2 () { if (!jscalendarBShow) jscalendarHideCalendar(); jscalendarBShow = false; } // new popcalendar.js code with retain document.onclick event function jscalendarHidecal2 () { if (!jscalendarBShow) jscalendarHideCalendar(); jscalendarBShow = false; } if (document.onclick != null) { var oldOnclick = document.onclick; document.onclick = function(e) { oldOnclick(e); jscalendarHidecal2(); } } else { document.onclick = jscalendarHidecal2; } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira