java.lang.IllegalArgumentException
Java
1
Posts
1
Posters
0
Views
1
Watching
-
i have added a delete button on the table that i have created to allow user to delete values straight from the table and the database will then be updated. however when i try to run the program an error incurred. Error: java.lang.IllegalArgumentException: unrecognized virtual form name: addIncidentStatus my code as follows:
public String Del_btn_action() {
form1.discardSubmittedValues("addIncidentStatus"); try { RowKey rk = tableRowGroup1.getRowKey(); if (rk != null) { incidentStatusDataProvider.removeRow(rk); incidentStatusDataProvider.commitChanges(); incidentStatusDataProvider.refresh();} } catch (Exception ex) { log("ErrorDescription", ex); error(ex.getMessage()); } return null; }
By the way the "addIncidentStatus" is a function in the sessionbean. May i know what went wrong?