Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with ADF auto submit.

vijaiAug 23 2011 — edited Aug 25 2011
Hi,
I am new to ADF application development and I face an issue while working with the auto submit attribute.Please help me if I am doing anything wrong. The scenario is as follows....

I have a adf table where columns values needs to be entered by the user thorough LOV, inputtext box and checkboxes. For the sake off validation to occur while typing manually in the lov fields we have included auto submit in LOV field. We have set auto submit to true to other fields also to set the values as in while we change it since it was refreshing the values to it previous state/empty when the LOV field get loaded.

Now the problem is that when I change value in a text field and without shifting the focus (the auto submit is not triggered yet), I click the check box (now auto submit is triggered for the input text box) to deselect/select. What happens is that the checkbox gets refreshed back to it previous state (since the change event for the input box is in progress when I clicked the checkbox).

What I do have in my code when I debug is the getter setter methods in the viewRowImpl class for that table view object is called 5-6 times before it renders the page. I tried to figure it out by understanding the phases in the life cycle but I couldnt get it right......

I like to add that i didnt implement any value change listener thinking it will increase complexity. Correct me if I am wrong.....

So pls help me with these .

1. how to make the checkbox persist even if I change it before the change event autoSubmit process is in progress for other fields.
2. Why is the getter methods called 5-6 time before it get the page rendered ?.
3. Is it a mistake I did implement the valueChangeListener to set the values.
4. Finally is there any alternate way to implement the above scenario more efficiently.

thank you.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2011
Added on Aug 23 2011
5 comments
3,773 views