|
From: David H. <dh...@ob...> - 2005-03-16 10:54:43
|
Keith, =20 I=20like=20the=20convenience=20of=20the=20terser=20definition=20of=20actio= ns=20-=20it=20avoids=20the=20glut=20of=20action=20definitions=20that=20end= =20up=20in=20the=20application=20context,=20and=20having=20to=20skip=20fro= m=20the=20webflow=20definition=20to=20the=20app=20context=20to=20see=20wha= t's=20going=20on.=20I=20have=20wanted=20to=20be=20able=20to=20do=20exactly= =20this=20a=20number=20of=20times. =20 Is=20the=20''transition=20on=3D...'=20just=20a=20direct=20replacement=20fo= r=20'transition=20event=3D...'? =20 -Dave =20 ________________________________ From:=20s...@li...=20on=20behal= f=20of=20Keith=20Donald Sent:=20Wed=2016/03/2005=2000:32 To:=20s...@li... Subject:=20[Springframework-developer]=20spring=20web=20flow=20dtd=20addit= ions Hey=20guys... =20 Made=20some=20minor=20tweaks=20to=20the=20web-flow.dtd=20tonite,=20adding=20= several=20new=20capabilities: =20 Below=20is=20a=20purposefully=20elaborate=20"action=20state"=20definition=20= illustrating=20the=20new=20stuff: =20 <action-state=20id=3D"actionState1"> =20=20=20=20=20=20//=20execute=20"action1"=20when=20entered,=20where=20"ac= tion1"=20is=20the=20id=20of=20a=20selected/exported=20action=20impl=20in=20= the=20registry=20(typically=20a=20spring=20bean=20factory) =20=20=20=20=20=20<action=20id=3D"action1"/> =20 =20=20=20=20=20=20//=20execute=20an=20instance=20of=20the=20action=20impl=20= class=20when=20entered,=20impl=20instantiated=20is=20delegated=20to=20regi= stry,=20no=20attempt=20at=20autowiring =20=20=20=20=20=20<action=20class=3D"org.springframework.web.flow.config.X= mlFlowBuilderTests$TestAction"/> =20 =20=20=20=20=20=20//=20execute=20an=20instance=20of=20the=20action=20impl=20= class=20when=20entered,=20impl=20instantiated=20is=20delegated=20to=20regi= stry,=20byType=20autowire=20policy =20=20=20=20=20=20<action=20class=3D"org.springframework.web.flow.config.X= mlFlowBuilderTests$TestAction"=20autowire=3D"byType"/> =20 =20=20=20=20=20=20//=20execute=20an=20instance=20of=20the=20action=20impl=20= class=20when=20entered,=20instance=20is=20retrieved=20from=20registry=20by= =20type =20=20=20=20=20=20<action=20classref=3D"org.springframework.web.flow.confi= g.XmlFlowBuilderTests$TestAction"/> =20 =20=20=20=20=20=20//=20on=20event=20"event1"=20transition=20to=20"viewStat= e1" =20=20=20=20=20=20<transition=20on=3D"event1"=20to=3D"viewState1"/> =20 </action-state> =20 Aside:=20for=20those=20new=20to=20web-flow,=20an=20action=20state,=20when=20= entered,=20executes=20one=20or=20more=20"Action"=20implementations=20(kind= =20of=20like=20a=20Controller=20in=20terms=20of=20general=20responsibiliti= es=20of=20brokering=20between=20the=20web-tier=20and=20middle-tier.) =20 Look=20OK? =20 Keith =20 =20 ________________________________________________________________________ This=20e-mail=20has=20been=20scanned=20for=20all=20viruses=20by=20Star.=20= The service=20is=20powered=20by=20MessageLabs.=20For=20more=20information=20on= =20a=20proactive anti-virus=20service=20working=20around=20the=20clock,=20around=20the=20gl= obe,=20visit: http://www.star.net.uk ________________________________________________________________________ ________________________________________________________________________ This=20e-mail=20has=20been=20scanned=20for=20all=20viruses=20by=20Star.=20= The service=20is=20powered=20by=20MessageLabs.=20For=20more=20information=20on= =20a=20proactive anti-virus=20service=20working=20around=20the=20clock,=20around=20the=20gl= obe,=20visit: http://www.star.net.uk ________________________________________________________________________ |