Announcement Announcement Module
Collapse
No announcement yet.
Taglib - injection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Taglib - injection

    Do anyone know how I can inject dependencies into my taglib?

    <tag>
    <name>FunnyTextTag</name>
    <tagclass> ... </tagclass>
    <bodycontent>JSP</bodycontent>
    <info>Make some text with some denpendency</info>
    </tag>

    What should I use as tagclass?

    <bean name="FunnyTextTag" class="package.FunnyTextTag" scope="session">
    <property name="someproperty">
    <value>This is the dependency!</value>
    </property>
    </bean>

    Would this be possible with Spring? Without annotations and AOP...

  • #2
    This does not seem to be that easy. We will use an alternative approach, and look up our dependecies from the tag class...

    Comment

    Working...
    X