if (gotParams)
{
for (int i = 0; i < parameters.length; i++)
{
Parameter param = parameters[i];
String paramKey = param.getKey();
// If the ClientAction sets source or event, don't allow a parameter
// to override it. If it's sent in, it's an attribute and the client
// should set the value on the clientAction, not in a parameter.
if (gotEvent && paramKey.equalsIgnoreCase("event"))
continue;
if (gotSource && paramKey.equalsIgnoreCase("source"))
continue;
// append a comma to separate the fields
if (!firstParameter)
buffer.append(',');
else
firstParameter = false;
// Really, we shouldn't need the quotes here at all, unless
// "paramKey" is invalid.
buffer.append("'");
buffer.append(paramKey);
buffer.append("':'");
String value = param.getValue(context);
// BUG 3557710 - FORM ENCODER AND POSTBACK HANDLING
String encodedValue =
XhtmlLafUtils.getFormEncodedParameter(formEncoder, formName,
paramKey, value);
if (encodedValue != null)