Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 44827 invoked from network); 5 Feb 2010 14:22:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 14:22:49 -0000 Received: (qmail 70826 invoked by uid 500); 5 Feb 2010 14:22:49 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 70798 invoked by uid 500); 5 Feb 2010 14:22:49 -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 70790 invoked by uid 99); 5 Feb 2010 14:22:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 14:22:49 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 14:22:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE1E729A0025 for ; Fri, 5 Feb 2010 06:22:27 -0800 (PST) Message-ID: <798712808.68581265379747908.JavaMail.jira@brutus.apache.org> Date: Fri, 5 Feb 2010 14:22:27 +0000 (UTC) From: "Bob Schellink (JIRA)" To: dev@click.apache.org Subject: [jira] Updated: (CLK-622) Spring support is incomplete: Page mapping and auto mapping works not as expected In-Reply-To: <1626075968.65711265366007999.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Schellink updated CLK-622: ------------------------------ Fix Version/s: (was: 2.1.0 RC1) (was: 2.1.0) I'm not sure this can be classified as a bug. Where is this "feature" documented? > Spring support is incomplete: Page mapping and auto mapping works not as expected > --------------------------------------------------------------------------------- > > Key: CLK-622 > URL: https://issues.apache.org/jira/browse/CLK-622 > Project: Click > Issue Type: Bug > Reporter: Andrey Rybin > > Example: > webroot: > /my-page.htm or /MyPage.htm, etc > click.xml > > spring.xml > > This should work, generally speaking. > Because Click actually has all parts it needs: htm and code. > But, It doesn't work! > XmlConfigService knows nothing about Spring, so it want some.path.MyPage.class! > If we put this fake "public class MyPage extends Page {}" in "some.path" package - it will work as expected. > Click will map MyPage.htm to some.pathMyPage.class , then it will load myPage or some.pathMyPage bean and "other.package.CoolPage" class will be used! > Actually I can write Spring bean in scripting language and not to have classes at all! > My suggestion: SpringClickServlet should try not only class name received from ConfigService, but also htm-to-correct bean-name (myPage) and webpath-to-correct bean-name (for page /foo_a/bar/my-page.htm it can be fooA_bar_MyPage -- note _ vs . because . can't be used in bean id). > PS: because . can't be used in Spring bean (any XML tag?) id, > may be you should change class-to-bean name conversion in SpringClickServlet too. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.