// -----------
if(requestType == POST_REQUEST && parameters.wasGiven(ACTION)) {
int action = parameters.getInt(ACTION);
if(action == 1) {
if(guiContext.hasBeenEdited(fields)) {
guiContext.commitFields(fields);
//System.out.println("Saving PipeComponentData, ID: " + componentData.getId());
pers.update(componentData);
}
} else
guiContext.revertFields(fields);