_NONE);
if (prop != _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 ButtonRenderer 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)
{
if (action.renderAsEvent(context, node) &&
(getDestinationAttr(context, node) == null))
{
// We must ignore actionScript if there is a destination or else the
// destination will never execute because the onclick will run first.
actionScript = action.getScript(context, node, Boolean.FALSE);
}
}
else
{
// If we don't have a ClientAction, check to see if we've got