// Get the encoded names for our event parameters
URLEncoder encoder = context.getURLEncoder();
String eventKey = encoder.encodeParameter(UIConstants.EVENT_PARAM);
String sourceKey = encoder.encodeParameter(UIConstants.SOURCE_PARAM);
Parameter eventParam = ActionUtils.buildParameter(context, node,
_eventBinding, _event,
eventKey);
int numParams = 1;
// If the parent element doesn't have a name or ID, there'll be no source
Parameter sourceParam = null;
if ((_sourceBinding != null) || (_source != null))
{
sourceParam = ActionUtils.buildParameter(context, node,
_sourceBinding, _source,
sourceKey);