Hello
I work on a page with a grid and a form. (more or less simple)
I created for that a datastorage and dataprocessor.
Bind, sync and load data in the grid and form works fine. No problem. The only problem is if I try to save the data in the database.
The html request is there but nothing happens on the server side. The CommonConnector servlet returns only the whole data back to the client. Same as the load request.
I debugged the code on server side and found maybe a problem in the parse_request methode:
The methode search a request parameter “action”. But my request has only the parameter !nativeeditor_status=update and all fields plus the id.
The variable action= null on the server side.
What can I do? I have no Idea…
!nativeeditor_status = updated
CommonConnector.java
@Override
protected void parse_request() {
String action = http_request.getParameter(“action”);
String id = http_request.getParameter(“id”);
Boolean is_get_action = false;
if (action!=null){
String[] nameValuePairs = http_request.getQueryString().split("&");
for(String nameValuePair: nameValuePairs) {
if(nameValuePair.startsWith("action=")){
is_get_action = true;
break;
}
}
}
if (is_get_action){
if (action.equals("get") && id != null){
this.request.set_filter(config.id.name, id);
} else if (((action.equals("update") || action.equals("delete")) && id != null) || action.equals("insert")){
editing = true;
is_simple_protocol_used = true;
} else {
super.parse_request();
}
} else
super.parse_request();
}