Re: [Actionframework-users] Automatic Menu
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <Pet...@pi...> - 2002-06-18 18:34:00
|
> I want to build a menu of available actions automatically. If we > organize the components and actions within them then I think I can > use a list of components/actions as my menu (a combobox in the header > of items to jump to). Obviously not all actions should be listed (I > guess firstly only gets and not posts, maybe I will use a standard > interface for all components that will allow me to check for valid > actions for the menu or something). > > Anyway the starting point is to make available to the context all > components and actions. Does anyone know how to do that? There is no API for getting info from ActionConfig (I plan this for future releases, when ActionConfig is "stable" enough). Currently you need to parse the XML by yourself - getting components and their actions is quite easy - you can take the code from ActionRuntime.init(). -Petr PS: I have problems with ssh, so I'm sorry that cvs is not set up yet. -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |