*
The moose likes Spring and the fly likes  May i know the element to import global transitions xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark " May i know the element to import global transitions xml?" Watch " May i know the element to import global transitions xml?" New topic
Author

May i know the element to import global transitions xml?

sundaresan ganapathy
Greenhorn

Joined: Oct 08, 2008
Posts: 23
Hi,

I am using spring-webflow-2.0, I want to import globaltransitions.xml in to myflow.xml. can i use <bean-import resource="globaltransitions.xml"/> to achieve this? Because i dont see any other element for import...please help


Thanks,
Sundar
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Yes, if you want to import bean definitions, so you can refer to them in your web flow, that's the tag you use.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
sundaresan ganapathy
Greenhorn

Joined: Oct 08, 2008
Posts: 23
you are true <bean-import resource=""/> tag is only meant for bean definitions But i want import global transitions as a separate xml so that i can import this global transition xml from all the flow xmls


globaltransitions.xml looks as follows, so how can i import this from flow xml ? <bean-import is not a right choice for this...

><?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"
>

<global-transitions>
<transition on="login" to="login" />
<transition on="error" to="error" />

</global-transitions>

</flow>
sundaresan ganapathy
Greenhorn

Joined: Oct 08, 2008
Posts: 23
Any idea about this???
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

What you're looking for is Flow Inheritance.
 
Consider Paul's rocket mass heater.
 
subject: May i know the element to import global transitions xml?
 
Similar Threads
Servlet + JDOM
list children of element (jdom)
interface
Question about importing XML Schema in WSDL
Generating XML from java