Uploaded image for project: 'Click'
  1. Click
  2. CLK-789

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0-RC1
    • core
    • 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/

      Attachments

        Activity

          People

            takezoe Naoki Takezoe
            andcoz Andrea Cozzolino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: