_ON_CLICK_NONE);
if (prop != _ON_CLICK_NONE)
return prop;
Object onClick = super.getOnClick(context, node);
ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
node);
String actionScript = null;
// TODO: This is a temporary way of setting blocking. Once the
// AutoSubmitUtils makes it into the main branch, dump this and pass a
// parameter to getSubmitScript(), which will tell it to look for and turn
// on blocking. Similar code in LinkRenderer also has to change.
if (action instanceof FireAction)
{
UIComponent component;
component = node.getUIComponent();
if ((component != null)
&& Boolean.TRUE.equals(component.getAttributes().get("blocking")))
((FireAction) action).setBlocking(true);
}
if (action != null)
actionScript = action.getScript(context, node, Boolean.FALSE);
Object chainedScript = BaseDesktopUtils.getChainedJS(onClick,
actionScript,
true);