This content has been marked as final. Show 21 replies
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.
Edited by: Mohammad Jabr on Nov 28, 2012 10:16 AM
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.
My Jdev version is Jdev 18.104.22.168.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?
Can u please tell me what should be my next step?
Edited by: Kumar on Nov 28, 2012 5:43 PM
yes i changed and ran the application its running successfully without any errors.
i used below code in initMethod() :
DCBindingContainer dcBindings = ADFUtils.getDCBindingContainer();
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("WempNoVO1Iterator");
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?
Edited by: Kumar on Nov 28, 2012 6:12 PM
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: