Monday 6 October 2014

Low Memory warning in JDeveloper

Hello Fellas,
today i'm sharing my learning to how increase the memory space in Jdeveloper,
Open /home/pratik/Oracle/Middleware/jdeveloper/jdev/bin/jdev.conf

change the MaxPermSize to 1024M

thank you :)

Wednesday 17 September 2014

Login and Check Out from SVN in JDeveloper

Hello Fellas,

Today I'm sharing my learnings to how to Login and checkout from SVN from JDeveloper.
Please Follow the steps.









thank you :)

Monday 8 September 2014

Display Value Of SelectOneChoice in Bean or LOV in ADF.

Hello Fellas, today I'm Sharing my learning on how to get the get the display value of SelectOneChoice in Bean or LOV.

make the SelectOneChoice autoSubmit value true and make a  method on valueChangeEvent of the SelectOneChoice,

and write this simple code Snipet in the method.

Object obj=valueChangeEvent.getNewValue(); 
Object xxx=ADFUtils.evaluateEL("#{bindings.CountryName.items['"+obj.toString()+"'].label}"); System.out.println(xxx.toString());

where CountryName to which you want to get in your bean,

you can use this code anywhere in your bean.


you can use the ADFUtils from here ADFUtils which simply depends on 

JSFUtils so please download that too from here JSFUtils


thank you :)

Saturday 30 August 2014

Current Date and Time in ADF

Hello fellas,
today i'm sharing my learning to how to show current date and time in adf

First take a JSF(jspx) page and take a output field, 
create a managed bean, of the type Date(by extending java.util.Date),
make, value of the output field of the type of your bean



output will be like this,

use a convert date and time in the output field used. by searching it from component pallete and choose this one as we are using jspx.



use poll from the operations under component palette, set interval of the poll to 1000,



make a bind variable name,  create getters and setters.
select the poll from the structure, and go to the poll listner, and connect this listener to this  refreshPage method
bind the output text to the dates variable provided. 



code to be provided.
    public void refreshPage(PollEvent pollEvent) {
        refresh();
        AdfFacesContext.getCurrentInstance().addPartialTarget(dates);
    }
        protected void refresh() {
            FacesContext ctx = FacesContext.getCurrentInstance();
            String refreshpage = ctx.getViewRoot().getViewId();
            ViewHandler views = ctx.getApplication().getViewHandler();
            UIViewRoot view = views.createView(ctx, refreshpage);
            view.setViewId(refreshpage);
            ctx.setViewRoot(view);
        }


run the page.
you can download the application from here App 

thank you :)

Friday 29 August 2014

Disable Future Date on ADF Page

Hello Fellas,
today i'm sharing my learning, to how to Disable future date on our ADF page.

Take a Input date component on your page.
Make a managed bean, and simply create a method, and put this snipet of code on your bean,


    public Date getDate()      {            Date date=new Date(new java.sql.Date(new java.util.Date().getTime()));            return date;            }  

make the date of type oracle.jbo.domain.Date 
you can get the actual java class from this link     .XBean.java 

and make max value of the input date component from the source code.





actual result





thank you :)


you can download the actual code from here

FutureDateApp

Thursday 31 July 2014

Create Dynamic Reigon In ADF

Hello Fellas, today i'm sharing my learning about how to create a Dynamic Reigon in adf,


you can download the sample app from here
First create a least Bounded task flow and drop one Page Fragments Respectively,
I'll show you how, I've created one for you and the second you have to create by yourself,

task flows should be WEB-INF folder, pages in web content similarly the task flows too in the web content


put some content in the JSFF so that we can differentiate between them and drag them to the task flows created,



you do the second by yourself,



now create a page for your self containing at least two facets, make it two coloums page.



  




now drop the task-flow in on page as dynamic region



it will ask to create a managed bean just create it.




now create a link on the second facet



similarly for the second task flow,



 now run it.


results





thank you :)

A Guide to Installing Oracle HR Schema on an Existing Docker Container

  Hi Reader, Today I want to share my learning on how to install Oracle HR schema on a existing docker container. Step 1: Download the verif...