SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 75 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

If a catalog entry for
the Catalog ID is already defined, retrieve the values for the catalog entry
and set the values in the host HTML page table DOM elements. Set the
validation message to ???Catalog ID is not Valid???, and disable the submit
button.
String catalogId = textBox1.getText();
if(catalogHashMap.containsKey(catalogId))
{
ArrayList
arraylist=(ArrayList)catalogHashMap.get(catalogId);
label7.setText(???Catalog Id is not Valid???);
textBox2.setText((String)arraylist.get(1));
button.setEnabled(false);
}
If the Catalog ID is not already defined in the HashMap, set the
validation message indicating that the Catalog ID is valid, set the table
field values to empty string and enable the Submit button.
label7.setText(???Catalog Id is Valid???);
textBox2.setText(??????);
button.setEnabled(true);
To create a new catalog entry specify values for the different rows of the
catalog form and click on the Submit button. When the Submit button
is clicked the onClick() method of the ClickListener gets
invoked. In the onClick() method, retrieve the values in the different
TextBoxes, create an ArrayList for a catalog entry and add a catalog
entry to the HashMap.
String catalogId = textBox1.getText();
ArrayList arrayList= new ArrayList();
arrayList.add(0, catalogId);
arrayList.add(1, textBox2.getText());
catalogHashMap.put(catalogId,arrayList);
The modified CatalogForm.java class is listed below.


Pages:
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6