Menu

#12 Dynamic actions

open
Core (22)
1
2006-04-26
2006-04-26
No

Dynamic actions should be rendered using a List. Roma
will treats each entry in the List as actionNames.

This allow to handle actions dynamically.

DynamicActionListener interface will be called at every
action execution.

public interface DynamicActionListener
{
public void execute(String iActionName);
}

Something like this:
ViewClass(dynamicActions="actions")

or by

<class>
<feature dynamicActions="actions" />
</class>

Example:

ViewClass(dynamicActions="actions")
class Test implements DynamicActionListener {
...
private List<String> actions;
...

public void execute(String iActionName)
{
if( iActionName.equals("print") )
executePrint();
}
}

Discussion


Log in to post a comment.