Results 1 to 2 of 2

Thread: Tag copy constructors

  1. #1
    Join Date
    Aug 2006
    Posts
    221

    Default Tag copy constructors

    My life would get considerably easier if spring tags had copy constructors, namely

    RequestContextAwareTag
    HtmlEscapingAwareTag
    AbstractFormTag
    AbstractDataBoundFormElementTag
    AbstractHtmlElementTag
    AbstractHtmlInputElementTag

    This is because my tag needs to process groups of tag creating objects and I need to be able to create tags on the fly. Because they're data bound tags too, I need to copy objects. The ones I've seen so far are pageContext and requestContext.

    The problem is that requestContext is private.

    1) I wish spring would make more things protected and less things private as it would make my job of re-using chunks of the framework easier.

    2) If we can add copy constructors to the above classes, I could then extend AbstractHtmlInputElementTag and all my problems would be resolved.

    If someone will go for this, I'll cheerfully write the code!

    Thanks.

  2. #2
    Join Date
    Aug 2006
    Posts
    221

    Default

    I am attempting to change RequestContextAwareTag to move out the initialization of the requestContext into a protected method so I can call in it a sublcass, but I'm having difficulties with the build.

    When I do build alljars, I'm getting

    Code:
       [jarjar] Building jar: D:\spring\spring-framework-2.5.4\dist\spring.jar
      [bndwrap] spring.jar                 2144 resources            0 bytes
    
      [bndwrap] Warnings
      [bndwrap] Superfluous export-package instructions: [org, org.aopalliance, org.
    springframework, org.springframework.cache, org.springframework.ejb, org.springf
    ramework.instrument, org.springframework.jca]
         [move] Moving 1 file to D:\spring\spring-framework-2.5.4\dist
    
    fullsources:
          [jar] Building jar: D:\spring\spring-framework-2.5.4\dist\spring-sources.j
    ar
    
    modulejars:
    
    BUILD FAILED
    D:\spring\spring-framework-2.5.4\build.xml:498: D:\spring\spring-framework-2.5.4
    \jarcontent\spring-aop not found.
    
    Total time: 7 minutes 50 seconds
    
    
    D:\spring\spring-framework-2.5.4>
    Ideas?

    thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •