Announcement Announcement Module
Collapse
No announcement yet.
Inject Application.application.parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inject Application.application.parameters

    Hello,

    I need to inject "Application.application.parameters" into a object.

    Is that possible?
    If yes, how can I define it in my application-context.xml?

    Thanks a lot

  • #2
    not yet

    currently these Application properties are supported by Spring Actionscript:
    * - application.frameRate
    * - application.historyManagementEnabled
    * - application.pageTitle
    * - application.resetHistory
    * - application.scriptRecursionLimit
    * - application.scriptTimeLimit
    * - application.url
    * - application.url.protocol
    * - application.url.host
    * - application.url.port
    * - application.usePreloader
    * - application.viewSourceURL
    (These properties can be used as regular property placeholders in an application context or a properties file. e.g. ${application.url})

    This was taken from the source in the trunk.

    Still, this is bad news for you, since apparently the parameters aren't supported yet.

    You can always add a feature request in Jira and hgave folks vote for it, that way it'll be implemented earlier.

    cheers,

    Roland

    Comment


    • #3
      Do you need to inject the whole parameters object, or do you also want to inject properties of the parameters object?

      Comment


      • #4
        Just to give my .2 cents. I'm pretty sure both ways would be valuable.

        So this:

        Code:
        <property value="${application.parameters}">
        as well as this:

        Code:
        <property value="${application.parameters[paramName]}">
        I could think of scenarios where both of them would come in handy...
        Last edited by 666shooter; Mar 19th, 2009, 03:41 AM.

        Comment


        • #5
          both would be quite cool

          Comment

          Working...
          X