Stream

 
About a week ago I posted a question on the forum (https://community.oracle.com/message/13927459#13927459), but so far there is no reply. I will not repeat the entire question here, but will try to shorten and rephrase it…

I am hoping someone here may help (or have some information regarding the future plans within ADF) on how the REST services created in ADF can be documented easily in one of the modelling languages such as Swagger or RAML?

When creating public services, or exposing them outside to the greater organization, we are looking for a way to make it easy to generate the Swagger documentation without having to type it out manually.

At this point we are considering reverting back to SOAP services where we can easily get the WSDL file as it seems no REST documentation opting exist in ADF. The middleware can then transform the SOAP service into REST if required, but I do not like this workaround much?


Any pointers?
Hi, I was wondering if someone can point me in a direction to understand if it is possible to “easily” auto generate a swagger document when the
1
Add a comment...
 
Must Watch this
3
Add a comment...
 
#ADF #UI- dvt:bubbleChart component overview, Show data in 3 dimensions
Hello All In ADF we have many dvt components and dvt:bubbleChart is one of them. This chart uses three measures for X-axis, Y-axis and size of bubble and looks good on UI A good interface makes it easy for users to use applic...
2
Add a comment...
 
OracleADF Security Authentication Test Client API
1
1
Gareth Paglinawan's profile photo
 
can they also test the security roles and permission?
Add a comment...
 
Guys. Can someone help me on the below issue.

Apply sorting to POJO based af:table programmatically , Using custom sort listener in ADF is not working.

1. I need all the columns of the table are sortable, So I made sortable="true" to all the columns.
2. One of the column is displaying date and time but still the column is string in the table (There is a text box to filter the date not date picker)
3. When I sort date column ASC/DEC it makes call to the service and the service returns sorted data.
4. After the data is retrieved from the service, the table is doing its own sorting by taking this column as string(actually)
5. Finally the table display the data that is sorted by the table itself not the list sorted by the service.

So the sorting flow happens in this way
(a) User clicks on Sort in the Table --> (b) Call goes to service to get the sorted data --> (c) Table gets the data from service and does the sort again --> (d)display the data sorted in step(c)

I want to avoid the step (c) so that the table display the that got in step(b)
1
Rohit Chaturvedi's profile photoAnandharaj Panneerselvam (ஆனந்த்)'s profile photo
4 comments
 
private static SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss aaa z");
//List to store sort criteria
private List<SortCriterion> sortedTableList = new ArrayList<SortCriterion>();


/**Custom Sort Listener for POJO based af:table
* @param sortEvent
*/
public void tableSortListener(SortEvent sortEvent) {

//Get active sortCriteria on table
List<SortCriterion> activeSortCriteria = sortEvent.getSortCriteria();

SortCriterion sc = activeSortCriteria.get(0);

boolean order = sc.isAscending();

System.out.println("Property : "+sc.getProperty());
System.out.println("Ascending : "+sc.isAscending());

// Remove active criteria from table
this.removeSortCriteria(sc);
//Sort List that populates table using Comparator interface
applySortAsPerColumn(sc.getProperty(), order);

// Add the current criteria to the list
this.sortedTableList.add(0, sc);

// String sortCol = sc.getProperty().toString();
//
// // Create the desired search criteria here
// SortCriterion sc2 = new SortCriterion(sortCol, order);
// sortedTableList.add(sc2);

// Apply sort criteria to table
RichTable richTable = (RichTable) sortEvent.getComponent();
richTable.setSortCriteria(sortedTableList);

//refresh table
AdfFacesContext.getCurrentInstance().addPartialTarget(richTable);
}


/*Removes sort criteria/
private boolean removeSortCriteria(SortCriterion sortCriterion) {
//Checks that if any sortCirteria is present in list , if yes then remove it
if (sortedTableList != null && sortedTableList.size() > 0) {
for (SortCriterion sc : sortedTableList) {
if (sc.getProperty().equals(sc.getProperty())) {
sortedTableList.remove(sc);
return true;
}
}
}
return false;
}

private void applySortAsPerColumn(String criteria, boolean order) {
//Get List that populates table
List<PersonBean> list = getPersonList();
//Check which column's sorting is triggered from UI
//and then sort list on basis of that attribute
//Sorting of collection makes use of Comparator interface, Read about it
if ("name".equalsIgnoreCase(criteria)) {

Collections.sort(list, new ProgTableBean.PersName());
} else if ("mobNo".equalsIgnoreCase(criteria)) {

Collections.sort(list, new ProgTableBean.MobNo());
} else if ("salary".equalsIgnoreCase(criteria)) {
Collections.sort(list, new ProgTableBean.Salary());
}
else if ("doj".equalsIgnoreCase(criteria)) {

if(order)
{
Collections.sort(list, new ProgTableBean.DOJ());
}
else {
Collections.sort(list, Collections.reverseOrder(new ProgTableBean.DOJ()));
}
System.out.println("Sorted list entries: ");
for(PersonBean e:list){
System.out.println(e.getDoj());
}
}
}

public static class DOJ implements Comparator<PersonBean> {
private int flag = 1;

@Override
public int compare(PersonBean o1, PersonBean o2){
//return flag * o1.getDoj().compareTo(o2.getDoj());

Date date1 = null;
Date date2 = null;

if(o1.getDoj()!= null && !o1.getDoj().equalsIgnoreCase("")) {
try {
date1 = sdf.parse(o1.getDoj());
}
catch (ParseException e) {
e.printStackTrace();
}
}

if(o2.getDoj()!= null && !o2.getDoj().equalsIgnoreCase("")) {
try {
date2 = sdf.parse(o2.getDoj());
}
catch (ParseException e) {
e.printStackTrace();
}
}

return flag * new NullComparator().compare(date1, date2);

// return flag * new NullComparator().compare(o1.getDoj(), o2.getDoj());
}
}
Add a comment...
 
In ADF 12.2.1.1, released a couple of weeks ago, we had many new features as you can see in my previous post ADF 12.2.1.1 has been released: Bug fixes and lots of new features. One of them is the DVT component Tag Cloud (af:t...
1
1
Add a comment...
 
Get selected Tag value from dvt:tagCloud component using custom selection listener in #ADF 12.2.1.1 #UI  
Hello All Previously I have posted about using new DVT component TagCloud to design better UI (Showing TagCloud from ViewObject data) and this post is about getting selected tag value of TagCloud component To enable se...
1
Add a comment...
 
Show chart for every row of ViewObject using af:iterator in #ADF Faces #UI  
Hello All This post is about another use of af:iterator component, When we show Employees ViewObject data as a chart then all Employees appears in a single chart but if requirement is to show separate chart for each departmen...
2
Add a comment...
 
#ADF #UI- Using New DVT Component Tag Cloud in ADF 12.2.1.1
In new relaese of Jdeveloper and ADF 12.2.1.1 many new data visualization components are introduced Here I am talking about <dvt:tagCloud> , this component is used to represent textual data in form of tags. You must have seen...
2
1
Add a comment...
 
Learn about the main focus areas for the new Oracle JDeveloper and Oracle ADF 12.2.1.1 release.
We are happy to announce the availability of a brand new version of Oracle JDeveloper and Oracle ADF : Version 12.2.1.1 While numbering wise this might
2
1
Add a comment...
 
Add and delete records (Parent/Child) in #POJO Based ADF TreeTable #ADF   #Java  
1
Add a comment...

About this community

For anyone who uses Oracle's JDeveloper, ADF and other ADF related technologies. Before posting have a look at the style of previous posts to see what this group will allow. Please no spamming, keep discussions polite, no job ads (that's for LinkedIn), no boring press releases (hint hint marketing/sales people), we're not interested in your 500 IT training courses, nothing illegal, and we reserve the right to kick you off this group and change the rules at anytime because you're being a sod. As a reminder the JDev OTN Forums remains the best place to ask technical questions and seek help on JDev/ADF. The ADF EMG is a great place for questions around best practices and methodologies. And this G+ group is a location for bloggers and others to share information and content, as well details about events and online training that is relevant to JDeveloper and ADF. Community language: English
 
Oracle Java Cloud and ADF BC REST - two hot topics together.
It passed almost two years since my previous post about Oracle Java Cloud and ADF - End-To-End ADF Cloud Deployment Process. There is huge improvement in Oracle Cloud, great progress done in these two years by Oracle. Access and management of Oracle Cloud environment is so smooth now, ...
1
Add a comment...
 
#ADF #UI- Using New DVT Component Picto Chart in ADF 12.2.1.1
Hello All Couple of weeks ago Oracle released new version of ADF & Jdeveloper i.e. 12.2.1.1 This release comes with many new features and data visualization components, one of them is Picto Chart DVT Component Picto Chart i...
1
Add a comment...
 
Learn how to expose ADF BC custom method through REST in 12.2.1.1
This post is based on JDEV 12.2.1.1, it seems like there is issue with ADF BC REST custom method definition in this release. I'm glad it is not runtime issue, but related to design time JDEV wizard incorrect functionality. I will explain how to bypass it, when you want to expose custom REST ...
2
Add a comment...
 
ADF call Procedure with 1.2.3....n out parameter
1
1
Add a comment...
 
Learn how to control secure access to ADF BC REST from mobile and JET clients by reusing JSESSIONID Cookie
I have described how to apply ADF Security for ADF BC REST in my previous post - Oracle JET and ADF BC REST Basic Authentication. I will show how you can authenticate on first request and for the next requests rely on JSESSIONID cookie from the first request. This is useful for mobile clients ...
3
1
Add a comment...
 
Improved support for Programmatic VOs in ADF 12.2.1.1 with special framework class
ADF 12.2.1.1 brings improved support for programmatic VO creation. Such VO's are handy, when we want to base VO on alternative data source, such as PL/SQL ref cursor. In ADF 12.2.1.1 developer don't need to worry which framework methods to override, now it is enough to extend from Programmatic ...
3
1
Add a comment...
 
First part in a series of articles that will deep dive in how to integrate JET with ADF.
Oracle JET is the new kid on the block, as you might have heard. I’ve started diving in Oracle JET with the aim to develop some modules and later on to have them integrated in an ADF application. At first I had to understand how JET works so I’ve started the installation using the instructions…
1
Florin Marcus's profile photo
 
Great post!
Add a comment...
 
Oracle #Jdeveloper & #ADF 12.2.1.1 is out (Minor release but lots of new features) #newrelease  
Hello Everyone You'll be happy to know that new version of Jdeveloper and ADF is out - Jdeveloper 12.2.1.1 Though it looks like a minor version but there are lots of beauties added in this , lots of new componenet introduced ...
3
Add a comment...