Skip to content

mnimer/palladium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palladium 
A Spring MVC View Helper enabling you to use ColdFusion as the View Layer in Spring MVC. 

For the latest information on Palladium follow my blog: http://www.mikenimer.com

Requirements
1. Spring MVC
2. ColdFusion Enterprise

How to Install
1. Run the ColdFusion installer and choose the j2ee "war" option. 
2. Unzip the war and add it to your project (you will rebuild the project as a war for production deployment)
3. Open the WEB-INF/web.xml file and a Spring MVC DispatcherServlet
4. Create the Spring XML config file for this servlet. See the Spring MVC documentation for the complete instructions.
5. Add the Palladium ColdFusion View Helper.


How to Configure The View Helper
1. Add this bean to your Spring xml configuration. (adjust the properties as needed)


<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="viewClass" value="com.mikenimer.palladium.spring.mvc.views.ColdFusionView" />
    <property name="prefix" value="/<project>-inf/views/" />
    <property name="suffix" value=".cfm" />
    <property name="attributesMap">
        <map>
            <!-- properties to make java CF friendly -->
            <entry key="convertKeys" value="true"/>
            <entry key="lowerCaseKeys" value="true"/>
            <entry key="convertCollections" value="true"/>
            <entry key="convertNulls" value="true"/>
            <entry key="beans">
                <map>
                     <entry key="propertyHelper">
                        <bean class="com.mikenimer.palladium.utils.PropertyHelper"/>
                    </entry>
                    <entry key="collectionHelper">
                        <bean class="com.mikenimer.palladium.utils.CollectionHelper"/>
                    </entry>
                </map>
            </entry>
        </map>
    </property>
</bean>

About

ColdFusion View Helper for Spring MVC, plus some.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages