|
From: Erwin V. <erw...@er...> - 2005-03-29 20:29:34
|
Good idea. Done.
Erwin Vervaet
erw...@er...
----- Original Message -----=20
From: "Bazyl, Steven" <sb...@rs...>
To: <spr...@li...>
Sent: Tuesday, March 29, 2005 10:09 PM
Subject: RE: [Springframework-developer] Web Flow - Sub Flows
Can the check/warning be moved to TransitionableState.add( Transition )
so that it only warns when building the flow rather than on each
execution?
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...] On
Behalf
> Of Erwin Vervaet
> Sent: Tuesday, March 29, 2005 11:53 AM
> To: spr...@li...
> Subject: Re: [Springframework-developer] Web Flow - Sub Flows
>
> This is a valid use case (I even used it myself - duh :). I removed
the
> check and replaced it with a logging warning to notify the developer
that
> there is a loop in the flow and that he should double-check that that
is
> what he wants!
>
> Thanks for the feedback!
>
> Erwin Vervaet
> erw...@er...
> ----- Original Message -----
> From: "Bazyl, Steven" <sb...@rs...>
> To: <spr...@li...>
> Sent: Tuesday, March 29, 2005 9:12 PM
> Subject: RE: [Springframework-developer] Web Flow - Sub Flows
>
>
> When doing some work with the earlier versions of webflow I did have a
> case where I had a state transition to itself and would like to either
> maintain the functionality or know if there is a recommended
> alternative. The particular case was with a typical
> query->results->detail flow where the query could yield several pages
of
> data and used DisplayTag to render the results. In order to allow
users
> to advance pages, I just created a 'page' action from the results view
> state that transitioned back to itself, letting display tag render the
> next page.
>
> > -----Original Message-----
> > From: spr...@li...
> > [mailto:spr...@li...] On
> Behalf
> > Of Erwin Vervaet
> > Sent: Tuesday, March 29, 2005 10:27 AM
> > To: spr...@li...
> > Subject: Re: [Springframework-developer] Web Flow - Sub Flows
> >
> > The code that is in the sandbox right now explictly prevents a state
> from
> > transitioning to itself. The test is in the
> FlowSession.setCurrentState()
> > method:
> >
> > if (this.currentState !=3D null) {
> > if (this.currentState.equals(newState)) {
> > throw new IllegalArgumentException("The current state is
already
> set
> > to '" + newState + "' -- this should not happen!");
> > }
> > }
> >
> > Having a state transition to itself is dangerous business since you
> could
> > end up in an infinite loop!
> >
> > Could you explain a bit more what you're trying to do? Why do you
want
> to
> > keep restarting the subflow in a loop?
> >
> > Erwin Vervaet
> > erw...@er...
> > ----- Original Message -----
> > From: "Will Butler" <wil...@ra...>
> > To: <spr...@li...>
> > Sent: Tuesday, March 29, 2005 7:37 PM
> > Subject: [Springframework-developer] Web Flow - Sub Flows
> >
> >
> > > All,
> > >
> > > I have a web flow that has a subflow state. This subflow has an
end
> > > state that causes the parent flow to execute the subflow again.
> However,
> > > I am getting an error that states that I cannot make the state
> > > transition because I am already in the state. Is it not possible
for
> a
> > > state to transition back to itself?
> > >
> > > Thanks,
> > >
> > > Will
> > >
> > >
> > > -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products from real
> users.
> > > Discover which products truly live up to the hype. Start reading
> now.
> > > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> > > _______________________________________________
> > > Springframework-developer mailing list
> > > Spr...@li...
> > >
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
> > >
> > >
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real
> users.
> > Discover which products truly live up to the hype. Start reading
now.
> > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> >
https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|