Spring Framework and Magnolia CMS: Creating Complex Java-based [PDF]

Dec 8, 2010 - You'll find detailed instructions on how to perform these tasks in the Magnolia CMS documentation, or in t

8 downloads 28 Views 422KB Size

Recommend Stories


Magnolia - Tupelo Quarterly [PDF]
umbral con Heber, y el sol resbalaba entre las nubes y los pájaros sombríos, turbio, revuelto, como un ojo de buitre, como el sol .... miedo. Sabía que el Gran Ratón no había muerto y que era mentira que el Espíritu de la. Casa nunca había existido,

BioNomina - Magnolia press [PDF]
[PDF]BioNomina - Magnolia presswww.mapress.com/bionomina/content/2010/f/bn00001p055.pdfby NJ KLUGE - ‎2010 - ‎Cited by 16 - ‎Related articles

Spring Framework Reference Documentation
How wonderful it is that nobody need wait a single moment before starting to improve the world. Anne

Spring Framework Reference Documentation
No amount of guilt can solve the past, and no amount of anxiety can change the future. Anonymous

Spring Framework Reference Documentation
Make yourself a priority once in a while. It's not selfish. It's necessary. Anonymous

Spring Framework Reference Documentation
If your life's work can be accomplished in your lifetime, you're not thinking big enough. Wes Jacks

Spring Framework Reference Documentation
If you are irritated by every rub, how will your mirror be polished? Rumi

Spring Security Framework
If you are irritated by every rub, how will your mirror be polished? Rumi

Spring Framework Reference Documentation
Courage doesn't always roar. Sometimes courage is the quiet voice at the end of the day saying, "I will

Spring Framework Reference Documentation
Almost everything will work again if you unplug it for a few minutes, including you. Anne Lamott

Idea Transcript


Java Microsoft & .NET Mobile Android Open Source Cloud encoding="UTF-8--> example Example Module info.magnolia.module.example.ExampleModule 1.0.0

This specifies the name of the module (Example Module), its version number and the package it belongs to. By convention, Magnolia modules are packaged in the info.magnolia.module.moduleName namespace. This ExampleModule class is responsible for starting Spring, initializing the application context and setting up the dispatcher servlet. It's generally recommended that this primary class extend the BlossomModuleSupport class; doing this ensures that the module is started and stopped correctly by Magnolia. Here's what the code looks like: package info.magnolia.module.example; import info.magnolia.module.ModuleLifecycle; import info.magnolia.module.ModuleLifecycleContext; import info.magnolia.module.blossom.module.BlossomModuleSupport; /** * Module class that starts and stops Spring when called by Magnolia. */ public class ExampleModule extends BlossomModuleSupport implements ModuleLifecycle { public void start(ModuleLifecycleContext moduleLifecycleContext) { initRootWebApplicationContext("classpath:/applicationContext.xml"); initBlossomDispatcherServlet("blossom", "classpath:/blossom-servlet.xml"); } public void stop(ModuleLifecycleContext moduleLifecycleContext) { destroyDispatcherServlets(); closeRootWebApplicationContext(); } }

Save this file as src/main/java/info/magnolia/module/example/ExampleModule.java. At this point, all the basic pieces are in place, and we can move on to actually creating templates with Spring.

Originally published on https://www.developer.com. Page 1 of 3

1 2 3 6 Comments (click to add your comment) By dedo June 30 2014 16:23 PDT I am stop in de part "New Template Definition in Magnolia", can you write this part to create template script for magnolia which supports cms taglibs please.... Reply to this comment

By dedo June 30 2014 16:22 PDT

I am stop in de part "New Template Definition in Magnolia", can you write this part to create template script for magnolia which supports cms taglibs please.... Reply to this comment

By Murali April 08 2014 02:58 PDT

Hi, This is good tutorial on the Magnolia Blossom. I have an aplication developed in Magnolia 4.5, can we migrate that to Magnolia Blossom? or Can we introduce the magnola Blossom module to this existing application? Please provide your thoughts. Regrads, Murali Reply to this comment

By Guillermo January 16 2014 12:54 PST

Great tutorial, but the deployment part differs in magnolia 5.2 could you give me a litle help in publishing this demo in 5.2? thaks! Reply to this comment

By Madhumathi October 17 2013 02:42 PDT

Please can hlep me out to create template script for Magnolia cms 4.5 which supports cms-taglibs. which uri we can use for rendering? http://www.developer.com/java/web/deploying-and-testing-magnolia-module-code.html Reply to this comment

By Shalini December 18 2012 21:34 PST

Hi... I am trying to integrate Magnolia in my existing Spring based application. And, I am unable to load external CSS stylesheets in templates I have created. Though, inline CSS is working fine. So, can you help me in this regard? Reply to this comment

Comment and Contribute Your name/nickname

Your email Subject

(Maximum characters: 1200). You have 1200 characters left.

Submit Your Comment

Enterprise Development Update Don't miss an article. Subscribe to our newsletter below. Enter Email Address

SIGN UP

Most Popular Developer Stories Today This Week All-Time 1 Using JDBC with MySQL, Getting Started 2 An Introduction to Java Annotations 3 MIDP Programming with J2ME 4 An Introduction to JSP Standard Template Library (JSTL) 5 Debugging a Java Program with Eclipse 1 Using JDBC with MySQL, Getting Started 2 An Introduction to Java Annotations 3 An Introduction to JSP Standard Template Library (JSTL) 4 MIDP Programming with J2ME 5 Debugging a Java Program with Eclipse 1 Using JDBC with MySQL, Getting Started 2 An Introduction to Java Annotations 3 An Introduction to JSP Standard Template Library (JSTL) 4 MIDP Programming with J2ME 5 Debugging a Java Program with Eclipse

Most Commented On This Week This Month All-Time 1 10 Experimental PHP Projects Pushing the Envelope 2 Day 1: Learning the Basics of PL/SQL 3 C# Tip: Placing Your C# Application in the System Tray 4 Logical Versus Physical Database Modeling 5 Is Ubuntu Contributing as Much as It Should to Free Software Projects? 1 Day 1: Learning the Basics of PL/SQL 2 The 5 Developer Certifications You'll Wish You Had in 2015 3 10 Experimental PHP Projects Pushing the Envelope 4 An Introduction to Struts 5 Inside Facebook's Open Source Infrastructure 1 Creating Use Case Diagrams 2 Day 1: Learning the Basics of PL/SQL 3 C# Tip: Placing Your C# Application in the System Tray 4 Using ASP.NET To Send Email 5 Using JDBC with MySQL, Getting Started

Top White Papers and Webcasts

0%

Sitemap | Contact Us

Property of QuinStreet Enterprise. Terms of Service | Licensing & Reprints | About Us | Privacy Policy | Advertise Copyright 2018 QuinStreet Inc. All Rights Reserved.

Thanks for your registration, follow us on our social networks to keep up-to-date

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.