Results 1 to 5 of 5

Thread: How to return to a MVC SimpleFormController on a WebFlow end-state

  1. #1
    Join Date
    Nov 2005
    Posts
    3

    Default How to return to a MVC SimpleFormController on a WebFlow end-state

    Hello everybody,

    first - many thanks for the really excellent job on MVC and WebFlow (and of course the other Spring parts ... )

    I do have a serious problem with MVC/WebFlow integration. I was searching around a while, but I didn't find a solution. Here goes the brief problem description.

    I do have a SimpleFormController, which prepares a FormBackingObject with some lists for the associated view (tiles, jsp, jstl)

    Code:
      <bean name="/hotel.htm" class="HotelController">
        <property name="hotelService" ref="hotelService"/>
        <property name="authenticationService" ref="authenticationService"/>
      </bean>
    From that view, I do start several flows - it's a kind of an navigational index page.

    After finishing the flows, I want to return to the index.page, but with the given view-attribute of the end-state, only the JSP gets rendered, missing the FormBackingObject!

    Code:
      <start-state idref="displayList"/>
    
      <view-state id="displayList" view="style">
        <entry-actions>
          <action bean="styleListAction" method="prepareList"/>
        </entry-actions>
        <transition on="ok" to="finish"/>
      </view-state>
    
      <end-state id="finish" view="hotel"/>
    any help is really appreciated!

    Thx in advance & kind regards from sunny Vienna

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    You want to prefix it with a externalRedirect prefix which issues a redirect instead of directly rendering a view. YOu might want to read chapter 2.6.1 and 2.6.5 of the reference guide.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2005
    Posts
    3

    Default Many Thx

    and a nice sunday anyway
    K

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Thanks Hope your problem is solved.

    [offtopic]
    UKCaveDiver. Do they have diveable caves in the UK?
    [/offtopic]
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Nov 2005
    Posts
    3

    Default Problem completely solved

    [offtopic]
    UKCaveDiver ... stands for UngerKlaus (=me) ... unfortunately not UnitedKingdom ...

    yes they have diveable caves there, but dark, cold and murky -
    haven't been there yet, but saw some video footage!

    I do enjoy slowenia, florida and especially mexico much more!
    [offtopic]

Posting Permissions

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