Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 6107 invoked from network); 13 Dec 2010 23:06:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 23:06:23 -0000 Received: (qmail 10443 invoked by uid 500); 13 Dec 2010 23:06:22 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 10384 invoked by uid 500); 13 Dec 2010 23:06:22 -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 10377 invoked by uid 99); 13 Dec 2010 23:06:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 23:06:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 23:06:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBDN62de006625 for ; Mon, 13 Dec 2010 23:06:02 GMT Message-ID: <10023995.101541292281562219.JavaMail.jira@thor> Date: Mon, 13 Dec 2010 18:06:02 -0500 (EST) From: "Jing Wu (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (TRINIDAD-1979) Issue with client side DateRestrictionValidator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Issue with client side DateRestrictionValidator ------------------------------------------------ Key: TRINIDAD-1979 URL: https://issues.apache.org/jira/browse/TRINIDAD-1979 Project: MyFaces Trinidad Issue Type: Bug Environment: environment independent Reporter: Jing Wu Priority: Minor Client side date restriction validator (TrDateRestrictionValidator) has an issue getting the hint. The hint is produced by function TrDateRestrictionValidator.prototype.getHints(), which (1) remove the disabled weekday values from the full weekday list (2) remove the disabled month values from the full month list (3) generate the final hint message (1) and (2) is achieved by calling TrCollections.removeValuesFromArray(Object, Object), but TrCollections.removeValuesFromArray(Object, Object) assumes that both arguments are of type Array, while the disabled weekday values and disabled month values are maps, so (1) and (2) are not performed correctly, thus the final hint message is wrong. We need to add a method in TrCollections to remove values in a map from the array and calls that method in TrDateRestrictionValidator.prototype.getHints(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.