[Actionframework-users] using invoke
Status: Inactive
Brought to you by:
ptoman
From: Craig L. <cr...@be...> - 2002-08-09 15:03:12
|
well, i just finally figured what i would do was create an application component that had some methods that could be called to do any url->context/session management before using the output-variable elements inside the template element. only to discover that the invoke elements MUST be declared (and presumably called) AFTER the output-variable elements. i was going to try this: <template name=3D"/displayObject.vm"> <invoke component=3D"session" method=3D"storeSession(Context context, Object $typeID)"/> <output-variable name=3D"objectList" component=3D"objectManager" value=3D"getDefaultList($typeID)"/> </template> i have yet to figure out how to pass the actual name of the parameter to the storeSession() method, but i get an error indicating that the dtd defines template contents as "(output-variable*,invoke*)", the "," forcing the order, instead of a "|". is there a technical reason for this, or just a preferred way of doing it. i don't see any reason to FORCE the invoke elements after the output-variable elements, if you put it before, then one just has to assume that variables defined in the output-variable elements won't be available yet. if its after, then they will. or am i missing something? cheers, --=20 CraigL->Thx(); Be Developer ID: 5852 |