Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. java.lang.IllegalArgumentException

java.lang.IllegalArgumentException

Scheduled Pinned Locked Moved Java
javadatabasehelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pancakeleh
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups