Showing posts with label ADF. Show all posts
Showing posts with label ADF. Show all posts

Wednesday, March 19, 2014

String comparision ignoring case in EL

It's a common requirement , to show/hide links basing on a string comparision ignoring case.

Though we can achieve this with a transient attribute by keeping the logic in it's getter method, I felt using JSTL tags is a simple way to implement .

Steps:
- Add JSTL Functions Tag Library to the project
- Add JSTL functions namespace to the jspx page:

Eg. xmlns:fn="http://java.sun.com/jsp/jstl/functions"

- Change your EL to

rendered="#{fn:toLowerCase(securityContext.userName) ne fn:toLowerCase(node.CreatBy)}"

You can follow this link for using JSTL in ADF Faces, click here





                                      

Friday, November 30, 2012

Application Module Pool Statistics


It is crtitical to analyze the Application Module pool statistics
for designing better application.

To display statistics related to Application Module pools , call dumpPoolStatistics()
on oracle.jbo.common.ampool.ApplicationPool object.

Create a servlet with the below code and configure the same to web.xml
This servlet will be used to print the AM pool statistics.

a)Create a servlet.


b)Add it to web.xml



c)Run the page .

Url to call the servlet would be in below format.
http://127.0.0.1:7101/AMStatistics-ViewController-context-root/faces/AMPoolInfo

Below is the screen shot of the sample output 

Click on the AM url to display the statistics.



Follow this url for optimizing application pool :)