else {
updateContainerID = AjaxUpdateContainer.currentUpdateContainerID();
}
if (updateContainerID == null) {
throw new WODynamicElementCreationException("You must either set the 'updateContainerID' binding or the link must be contained inside of an AjaxUpdateContainer.");
}
response.appendContentString(" onclick = \"");
response.appendContentString(updateContainerID);
if ("edit".equalsIgnoreCase(action)) {
response.appendContentString("Edit");
}
else if ("cancel".equalsIgnoreCase(action)) {
response.appendContentString("Cancel");
}
else if ("save".equalsIgnoreCase(action)) {
response.appendContentString("Save");
}
else if ("update".equalsIgnoreCase(action)) {
response.appendContentString("Update");
}
else {
throw new WODynamicElementCreationException("Unknown AjaxInPlace action '" + action + "'. Must be one of 'edit', 'cancel', 'save', or 'Update'.");
}
response.appendContentString("()\"");
}
}