Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 30664 invoked from network); 20 Jun 2010 04:23:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jun 2010 04:23:13 -0000 Received: (qmail 69537 invoked by uid 500); 20 Jun 2010 04:23:13 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 69480 invoked by uid 500); 20 Jun 2010 04:23:11 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 69473 invoked by uid 99); 20 Jun 2010 04:23:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 04:23:10 +0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sabob1@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-px0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 04:23:02 +0000 Received: by pxi6 with SMTP id 6so1061488pxi.29 for ; Sat, 19 Jun 2010 21:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=kJGH3CBggdCt5S2vJxH8XkFQSr/iqC58ViJUFKj/pl8=; b=sN0J1GemeGKSUirLJVXVoxrkxye4MzqIRiTvTU1tUO52Y9oQoBwfbcLret6P1UheXk D1TlqRKCVFrk4KruwPL+7omIdPpiGf/X0H1qk+JT6t0FW4+5engWq32EezXNZWs/mTVX PI3ouqg+T8xK5oOm8Je4tW6IOSCIB1dw8UWcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=tumuEZvuYZQXRse0V0ZPYNiozG0vioS1VtkdVhzwRMCTyy/YkP8d0B1Zb92UviFJz3 FtajP0v6zATHZPr0iMyB6e2TTEbUwrNCwP+P+xt8OY9+Z8kXyX0rxvDINoATWfS5DfIX E7eOwPKRn2zBRyPbuD1aRjYTOOPEt5POwI/Y8= Received: by 10.140.255.8 with SMTP id c8mr2535656rvi.7.1277007761685; Sat, 19 Jun 2010 21:22:41 -0700 (PDT) Received: from [10.1.1.3] (124-170-77-121.dyn.iinet.net.au [124.170.77.121]) by mx.google.com with ESMTPS id d20sm131446990waa.15.2010.06.19.21.22.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Jun 2010 21:22:41 -0700 (PDT) Message-ID: <4C1D9790.2090205@gmail.com> Date: Sun, 20 Jun 2010 14:22:40 +1000 From: Bob Schellink User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: dev@click.apache.org Subject: Confusing page class mapping X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In EclipseIDE there was a bug[1] where the absolute classnames was used in click.xml even when the page packages was defined. The problem comes from XmlConfigService which automatically prefixes classnames with the package name to create the absolute class name. The Netbeans plugin has the same problem. Our docs isn't very clear on this issue either, some snippets uses absolute classnames and others use relative classnames. This all makes me think that XmlConfigService should be enhanced slightly to load page classes in the following order: 1. prefix the page classname with the package and attempt to load it 2. if #1 fails use the classname "as is" and attempt to load it 3. if both #1 and #2 fails throw a RuntimeException with a message that neither classes were found on the classpath. Thoughts? Bob [1]: https://issues.apache.org/jira/browse/CLKE-39