|
From: Bazyl, S. <sb...@rs...> - 2005-03-29 19:12:54
|
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
>=20
> 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:
>=20
> 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!");
> }
> }
>=20
> Having a state transition to itself is dangerous business since you
could
> end up in an infinite loop!
>=20
> Could you explain a bit more what you're trying to do? Why do you want
to
> keep restarting the subflow in a loop?
>=20
> 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
>=20
>=20
> > 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
> >
> >
>=20
>=20
>=20
> -------------------------------------------------------
> 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
|