For refreshing iterators to its initial state i got this code from http://biemond.blogspot.com/2009/02/reset-clear-adf-page.html
its showing ADFUtils is not found.
what is this and fro where can i get this?
DCBindingContainer dcBindings = ADFUtils.getDCBindingContainer();
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("queryCategoryFindAllIterator"); // what is "queryCategoryFindAllIterator"?
what is "queryCategoryFindAllIterator"? is it should be the same for me or it will be different for me? if diffrent from where i can get this value?
This class comes with Fusion Order Demo application.
You can download the application and copy the JSFUtils and ADFUtils classes to your application
The queryCategoryFindAllIterator is the iterator Id in your page definition.
thanks for ur response.
i have downloaded FusionOrderDemo_R2_1_revised.zip from the link u provided. and unzipped in C:/ADF/mywork.
what to do next to get ADFUtils in my application?
and also u said queryCategoryFindAllIterator is the iterator Id in my page definition.
how can i check this id i mean the navigation?
and i have three iterators should i need to provide this methods(refresh) for all three iterators separately or for all iterators i will have some common name?
Once you have unzipped the application you can copy the AdfJutils.java (StoreFrontModule\StorefrontUI\src\oracle\fodemo\storefront\adf\util\ADFUtils.java)and JsfUtils.java (StoreFrontModule\StorefrontUI\src\oracle\fodemo\storefront\jsf\util\JSFUtils.java) into your project. Or even better create an new workspace and project within hte workspace and copy the two files into this new project. Then you build a adfLib from them and add the new adflib to your project. Then the two classes are reusable for your next project.
I would change the package strurcture to e.g. common\jsf\util\JSFUtils.java and common\adf\util\ADFUtils.java. If you do this you have to edit the package structure in the java files accordingly.
Kumar, please note that hte Adfutils and JsfUtils are version depended. You did not tell us which jdev version you are using. You should use the FOD sample for your version. The sample zip contains the right AdfUtils version for your jdev.
In my last post I outlined how to go on.
My Jdev version is Jdev 188.8.131.52.0.
i have taken ADFUtils.java and JSFUtils.java and moved these two .java files to my application : "C:\ADF\mywork\MyApplication\ViewController\src\view\backing"
view.backing under Controller project i have all my java files so i moved those two java files also to there.
And closed my appliaction and again reopened now under view.backing i got these new java files along with remaining java files. but in ADFUtils.java file im getting error :
import oracle.fodemo.storefront.jsf.util.JSFUtils; not found.
Because of error in ADFUtils. im getting unable to import view.backing.ADFUtils in my backing bean where im using this ADFUtils.
What can i do now for this?
im trying to make the lov to its initial state when it was at the time of page loading showing all the values.
but now when i came back from previous page its showing the latest values not all the values.
but the lov didnt showed me the all the values its showing latest values.
what to do?
have you set a ppr to the lov component?
Then you should go to the bindings of the page you show the lov and select the itrerator (WempNoVO1Iterator) and open the protery window. there you set the RangeSize to -1. This should get you all rows for hte lov component at once.
Actually my usecase is:
I have one page with 2 lovs.(1st lov will display all the values in it) 2nd lov i dependant on first lov.(2nd lov will display values depending on the fisrt lov initially showing all the values) after selecting values in lovs on clicking on find button im navigating to second page.
And have back button in the second page on clicking on back button im navigating back to first lov page.
But the lovs are showing the latest values which i got before clicking on find button but i want lovs should be like when we load the page for the first time.
how to make the lovs as it was there at the time of loading ht epage for the first time?
The second lov iterator is: