long value,
String sizeKey,
int size
)
{
MarlinBean submitButton = new MarlinBean(UIConstants.SUBMIT_BUTTON_NAME);
submitButton.setID(buttonID);
submitButton.setAttributeValue(UIConstants.FORM_NAME_ATTR, formName);
submitButton.setAttributeValue(UIConstants.UNVALIDATED_ATTR, Boolean.valueOf(!validate));
submitButton.setAttributeValue(UIConstants.TEXT_ATTR, buttonText);
submitButton.setAttributeValue(UIConstants.ACCESS_KEY_ATTR,
buttonAccessKey);
String nameAttri = XhtmlUtils.getEncodedNameAttribute (
//Array should be in the order of parameter name and value pair
new String[]{sourceKey,
source,
eventKey,
UIConstants.GOTO_EVENT,
valueKey,
Long.toString(value),
sizeKey,
Integer.toString(size)});
submitButton.setAttributeValue(UIConstants.NAME_ATTR, nameAttri);
return submitButton;
}