Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

May i know the element to import global transitions xml?

 
sundaresan ganapathy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if you want to import bean definitions, so you can refer to them in your web flow, that's the tag you use.
 
sundaresan ganapathy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea about this???
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you're looking for is Flow Inheritance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic