Pages

Saturday, November 30, 2013

Show web Pages imported from ADF libraries

Context i'm going to speaking is stated as in subject you can see that option in jazn-data.xml.

when it will useful you may ask.

Consider the Scenario your main application is fully bounded with help of ADFSecurity. your child application not having security,

if you are try to consume Taskflow from your child application to the main application. ADFSecurity wont allow unauthorized Taskflow invocation.
 

we should make entry in jazn.xml to make it authorized. However you can't able to see your Child Application Taskflow even after imported.


At that time check the option you can able to see that child application taskflow.

To confirm the above statement. here i gave the snapshots. 


Step 1: Secured Application(ADFSecuredApp).



Step 2: non - Secured Application(Genereal App).




Step 3: Make non-secured(GenerealApp) it as ADFLibrary. why mean i need the "general" task flow in secured application(ADFSecured App)



Step 4: you can see secured index page in ADFSecured Application

 
 

Step 5: Now in this ADFc-Config of Secured(ADFSecured Application) trying to invoke the non-Secured(Genereal Application). now if you run this page that taskflow never invoke.why because means not giving access to that bounded taskflow.
 

Step 6: Registering the Taskflow as Secured you can choose the Taskflow from drop down. but it is not avialable. even though you imported the non-secured(Genereal application). 


Step 7: Now By checking the box you can able to see the imported Taskflow.



Step 8: Now Make it as authorized.




Step 9: After that Running the ADFSecured Application.



Step 10: you can see your index page.




Step 11: finally i can able to invoke the Genereal Application Taskflow in ADFSecured Application.




Download here

Integrating the Taskflow in One Application.

Nowdays, Each and Every Application has own Taskflow flying on their own. Integrating the Taskflows is Main work.

Consider like this say as eg. 
First Application  -  folds of some Task Flow
Second Application -  folds of some Task Flow
Main Application   -  Consume/Integrate the Taskflow in Existing Application.


Major thing no need to duplicate all those things.In the Sense we can Re-use it.

Step 1: Try to deploy your ViewController of First Application.



Step 2: deploy it as ADFLibraryJar


 Step 3: Note it down the location after the jar deployed successfully.



Step 4: Use File Connection to invoke that ADFLibraryJar


Step 4: Test your Connection.


Note : upto this step to do the same for the Second Application also.

Step 5: Try to Add it to your main application.


 Step 6: finally I consumed two taskflow in my main application as a region.



Step 7: Main Page of your main application render the two consumed Taskflow of existing application.




Just i'm giving a picture about this topic. how to do. Based on their requirment you flex it.

Download here 

Adding Value change listener for run time input components

I got a requirement like adding listener at run time.
I found two ways.

way 1:
1. In this approach "setValueChangeListener" we can do.
2. By with the help of MethodBinding to invoke the listener in the  same class it self
3. MethodBinding and el class has been deprecated in this approach.

way 2:
1. In this approach "addValueChangeListener" we can do.
2. You need a additional class to perform this.
3. ProcessValueChange you can grab the value.

Step 1: Two methods are implemented




Step 2: final rendering of page.



 Download here

Tuesday, November 12, 2013

My Contribution towards OTN Forum

How I was started into OTN Forum?


When I was new to Oracle ADF, Whenever I got stuck up. Just I do Google. Most often, the results would be OTN forum posts. So, BTW, I started. Once I got to read their issues for a moment. At the end of the post answer can be found.


Very Often my issues have not posted by any one ever!!! Just I do login into OTN forum there I start to post my question.
While I was a Newbie, Most of the folks guided me to achieve the output. I had to thank them all.


Recently, I have got this Title.
                                         



One of the Top Participants in ADF UI Patterns & Best Pratices


 


Subramanian Meyyappan

ADF Security - JpsAnonymousRole Problem In Jdeveloper R1 Release

When I'm new to using
 Jdeveloper 11.1.1.6.0 and 
 Jdeveloper 11.1.1.7.0 

while i'm configuring ADF-Security to my Fusion web application.

[02:18:37 AM] Deploying Application...
<CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: {0}.

oracle.security.jps.JpsException: java.lang.IllegalArgumentException: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl

I got above error in those two Jdeveloper specific version only.   
I worked with Jdeveloper 11.1.1.4.0,11.1.1.5.0,11.1.2.4.0 Nothing like error reproduced. Apart from development. I wasted most of the time for investigation about this error. 

Don't ignore error which you had.Above error is not a show stopper.it will allow you to run the application. but you can get expected output.

To Avoid that,

<app-role>

<name>anonymous-role</name>

<class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class>

<display-name>anonymous-role</display-name>

</app-role>

Just remove this part of xml code from your jazn-data.xml.

Now your application will not re-produce any error log as of previously. it will works as you expect.