Results 1 to 4 of 4

Thread: Webflow + Spring MVC

  1. #1
    Join Date
    Aug 2004
    Posts
    29

    Default Webflow + Spring MVC

    Hi I have a general question regarding how to integrate webflow into an
    existing app that uses Spring MVC.

    Let me describe a simple example:

    Say the application lets you add products. And that I already have a
    Spring MVC controller that does that ( AddProductController )

    Now I am extending the application and I have found that I come accross
    more complex flows and decide to use webflow. As an example lets
    assume that one of these flows is called ComplexFlow and that as part of
    this flow the user will be given the option of adding a new product.

    What I was wondering is if there is a way to leverage the code I already
    have in my AddProductController? And have people developed any
    usefull patterns that may help?

    Thanks,
    Hani

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    In this case I would probably advise to provide an alternative SWF based "AddProduct" or re-implement the existing one. The reason is that that way you will have full SWF power at your hands to do the AddProduct as a subflow of ComplexFlow.

    The reason why I advice this is that it would probably be more difficult to seamlessly integrate ComplexFlow and the original AddProduct controller. Calling "AddProduct" from the flow is simple, but jumping back into ComplexFlow on completion of the "AddProduct" is going to be tricky, probably more difficult than just reimplementing AddProduct using SWF.

    Erwin

  3. #3
    Join Date
    Sep 2004
    Posts
    133

    Default

    What will happen , if

    l am in the middle of flowA's x state, then suddenly make a jump to flowB , will flowA end imediately ? what if l press back button if l want to jump back ....hihi ....just a quick question . l did not do my homework for this quick question ..hihi..

    l have thought about using SpringMVC with SWF b4 , but my first question was : what if l wanna jump back and forward between SpringMVC with SWF ? .....huh ...my head said that : don't try , don't try .... it will cause l lot of unknown problems ...huh ....hihihi

    Or may be spring term give some examples to show how to use them both ...

    moon

  4. #4
    Join Date
    Aug 2004
    Posts
    29

    Default

    Thanks klr8 for the info.
    That is what I was thinking. It will mean a little code duplication,
    but since all that my controllers tend to do is call a 1 or 2 business methods
    it is not a big deal (they dont have much logic in them. My form validation
    is done in javascript (and the business objects also validate any inputs it receives).

    Hani

Similar Threads

  1. Replies: 4
    Last Post: Nov 21st, 2009, 04:43 AM
  2. Announcement: Spring IDE WebFlow Support Preview Release 2
    By Christian Dupuis in forum Announcements
    Replies: 2
    Last Post: Sep 15th, 2006, 11:50 AM
  3. ¿cómo configuro el Spring IDE Webflow con el eclipse 3.1?
    By iosev in forum SpringSource Tool Suite
    Replies: 9
    Last Post: Nov 28th, 2005, 08:10 AM
  4. Announcement: Spring IDE WebFlow Support Preview Release 1
    By Christian Dupuis in forum Announcements
    Replies: 0
    Last Post: May 20th, 2005, 08:15 PM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •