Posts

Showing posts from January, 2015

Creating Analog Clock for Different Country in ADF

Image
Hi Friends, In this post I am going to show you that how you can create the analog clock for different country in ADF using ADF faces component, JavaScript and JQuery. You can create the clock for different country as shown below: To create this you need the following files: 1. Clock face, Second hand, Minute hand and hour hand icons. which you can down below image and use it. These icons you need to put inside "images" folder of public_html folder of your project. 2. You need following JQuery Library: jquery.easing.1.3.js jquery-1.2.6.min.js jquery-1.3.2.min.js jQueryRotate.js Create one folder with name "js" inside public_html folder of your project and put all above mentioned .js file inside this folder. These library you can download from Google . 3. You need to create you own CSS file and use it in you ADF application. Hope this you all knows that how to use your custom CSS in ADF application. If you don't know kindly ...

How To Filter The Rows Based on Values of Column Without Iterating Through All Rows

Image
Hi Friends, In this post I am going to show you how you can get all the rows based on some value of column without iterating through each rows. Scenario: Suppose you have a table which is consisting a checkbox to select some of the rows and based on selected rows you want to process some logic for all the selected rows. Usually what we do is, we create a RowSetIterator and then iterate through each rows and then compare the value for the checkbox whether it is checked or not. So we usually write the code something like this.         RowSetIterator rs=this.createRowSetIterator(null);         rs.reset();         while(rs.hasNext()){             Row row=rs.next();             if("S".equals(row.getAttribute("IndSel"))){         ...

Showing Warning Message from Model Layer in ADF

Hi Friends, First of All Wish you all a very very Happy New Year 2015. Hope this year will bring plenty of love, joy and happiness in your life. In Today's post I am going to show you that how you can show the warning message from model layer in ADF. We usually use "throw new JboException()" to show any kind of error in model layer. But what if we have to show warning message from model. It is very simple and very few line of code that you need to embed in your code. The code is as follow:         JboWarning jboWarn = new JboException("You warning message here");         jboWarn.setSeverity( JboWarning.SEVERITY_WARNING);         getDBTransaction().addWarning( jboWarn);