Click
  1. Click
  2. CLK-789

SpringClickServlet injection fails if "Page" class name starts with two or more upper case letters

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0-RC1
    • Component/s: core
    • Labels:
    • Environment:
      Apache Tomcat 6.0.32 or 7.0.16. JRE 1.6.0_29 on Linux.
      Spring Framework 3.0.5.

      Description

      I am using SpringClickServlet to integrate Click with Spring.

      Spring injection in "Page" classes works only if the class name starts with exactly one upper case letter.

      If I have a class "ABTestPage" (that extends org.apache.click.Page and that is a @Component) when I try to use it, any @Resource is "null". If I rename the class to "AbTestPage", any @Resource is correctly injected.

      The following simple project demonstrates the problem: https://bitbucket.org/andcoz/clickspringuppercasebug/

        Activity

          People

          • Assignee:
            Naoki Takezoe
            Reporter:
            Andrea Cozzolino
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development