This is a quick post about how to log in programmaticallyagainst your WLS when working with ADF applications that are ADF Security enabled. The use case is simple; an ADF application with ADF Security Enabled with two pages. One of the pages is open to the world while other is only accessible to authenticated role. This is a 11.1.2.4 application but the same should work in other versions. Continue reading
Category Archives: ADF Tips
ADF Tips: How to implement a kind of responsive af:panelDashboard?
Oracle JDeveloper & ADF Team have made a great job with the latest release of Oracle ADF including the new out of the box skin and patterns – Alta UI. The concept of having a responsive ADF Application has become something that we can now actually see instead of dream. Whether you agree or not, for some people the look and feel is as important as the functional requirements in a web application. I agree. Continue reading
ADF Tips: How to correctly color a bar chart in 12.1.3?
As you might have seen in different tutorials and posts (including us), before, it was not clear how to avoid displaying a graph (or chart in 12.1.3) where all the bars were colored the same. For example, before 12.1.3 the strategy we used, and many of you as well, was to simply “swap bars with” as we showed in one of our previous posts; Continue reading
ADF Tutorials: Time Manager and Application Scoped Object Update
Let’s start explaining the use case:
An ADF Application is storing an Object in the application scope and it needs to be always up to date. The object may be updated by externals sources at any time so it needs to be constantly refreshed to avoid stale data. So, how do you keep up to date this object? Continue reading
ADF Tips: How to update a View Object using a File? UploadFile Declarative Component.
Few weeks ago someone asked about how to add new rows to a view object using a file. That person thought that ADF provided such component out of the box; a kind of uploadFile which would give that functionality. Unfortunately for him, that component does not exists but it doesn’t mean that one, the developer, could not create one using, for instance, declarative components. Continue reading
ADF Tips: OPSS User and Role API – Part 3; Create a user.
Hi again, this is the third post related to OPSS User and Role API which basically will show how to simply create a user in the weblogic server authenticator. If you haven’t seen the previous posts please see here Part 1 and Part 2.
ADF Tips: Cookies in ADF
Imagine this scenario; your ADF web application is wide open and there are no user management in the system. All operations are done anonymously and the requirement is that it should remain that way. The following use case is to illustrate the situation and might not even make sense in a real world but will suffice the purpose of this post.
ADF Tips: Timestamp when updating a row based on Business Components + Morale!
Last week I participated in a thread where an user asked the following question
“is there a way i can auto populate the updatedtimestamp with system date even though its not present in the UI?”.
Since the main question was about how to update a binding attribute without using the UI I refered the following method (from a JSFUtil): Continue reading
ADF Tips: OPSS User and Role API – Part 2; Retrieving all roles + all user roles
Last week, we wrote the first part of OPSS User and Role API which was basically, a short introduction and a short demo of how to use the API within an ADF Application by retrieving all users from the Weblogic Authenticator. This post will continue the demonstration by retrieving all roles and furthermore, all roles assigned to each user. Continue reading
ADF Tips: OPSS User and Roles API – Part 1: Introduction + Retrieving all users.
So, you have your ADF Application and most important, you are using ADF Security. One of your requirement is to manipulate users and roles from your security framwork within your app. Do you need to worry about what your authenticator provider is? Well, certainly if you are using DB Authenticator then you could write few ViewObjects and implement the requirements accessing the DB and that will do the job but… Continue reading