posted 16 years ago
Hi,
This mught be a very basic question. Don't know.
In my first page, I have a list of item to display to the user as below:
>
1. Of which fetches a list of items from the database to show a drop down list. And my config.xml is as below for the scope
2. Second item is a list from my config.xml as below:
3. Third item is just a inout box which is used to get the user inout and I have a validator to check for some specific formats.
As such I don't have problem in getting the values of what the user chooses and displying in the next page as well as I am updating a table in the database using hibernate.
Due to some special requirement, I am having some problem now.
Again let me repeat what I am displaying.
1. 1st item is a list (drop down)from a database as abc, def, hij and klm
2. 2nd item is a list (drop down) from my face-config.xml as extended and none
3. 3rd item is a input box.
4. I am using proper getter and setter methods to capture the values and sisplay in the next page as well as updating the database with respective values.
Now I want to check whether the item in the second value is (if the user chooses none from the drop down list) none and if it is so, I want to make the first and second value as none too.
I tried setting the values in the getter setter methods but it is throwing some exception as "null pointer exception" during database update.
For example as below:
How do I do it? Please let me know.