« Return to Thread: Global Application Name

Re: Global Application Name

by Bryan S :: Rate this Message:

Reply to Author | View in Thread

Thanks very much for your help! My final solution was an adaptation of what Richard did.

In my Coldspring.xml I have this...
    <bean id="ApplicationConfig" class="ModelGlue.Bean.CommonBeans.SimpleConfig ">
    <property name="config">
        <map>
            <entry key="shortDisplayName"><value>AppManager</value></entry>       
            <entry key="longDisplayName"><value>Application Manager</value></entry>
        </map>
    </property>
    </bean>

In my controller I have this
    <cffunction name="onQueueComplete" access="public" returnType="void" output="false">
        <cfargument name="event" type="any">
        <cfset arguments.event.setValue("applicationConfig",getApplicationConfig().getConfig()) />                
    </cffunction>

So that I can reference them in my view like this
<cfset appTitle = viewState.getValue("applicationConfig").longDisplayName />




 « Return to Thread: Global Application Name

LightInTheBox - Buy quality products at wholesale price