Wednesday 17 September 2014
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.
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
thank you :)
Tuesday 2 September 2014
Recurssive Delete all files and Folders in windows
Hello Fellas,
today i'm sharing my learning to how to delete all files and folders in windows.
today i'm sharing my learning to how to delete all files and folders in windows.
rd /s/q FolderName
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 adfFirst 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,
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.
you can download the actual code from here
FutureDateApp
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
now drop the task-flow in on page as dynamic region
similarly for the second task flow,
now run it.
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.
it will ask to create a managed bean just create it.
now create a link on the second facet
now run it.
results
thank you :)
Tuesday 29 July 2014
Create a Managed Bean in ADF
Hello Fellas,
Today I'm sharing my learning to how to create a managed bean without using any component, it's very simple and easy.
Just Create a Java Class.
Make getter(accessor) and setter(mutator) as required.
Today I'm sharing my learning to how to create a managed bean without using any component, it's very simple and easy.
Just Create a Java Class.
Make getter(accessor) and setter(mutator) as required.
Open adfc-config.xml with managed bean tab under overview section.
Give the bean any name and select the Class which we just created right now.
by editing the class text-field. and see the hierarchy, find your package, and you class.
always keep the scope to the lowest. most of the times "request"
now we can simply use it as required.
Thank you :)
Subscribe to:
Posts (Atom)
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...
-
Hello Fellas, today i'm sharing my learning to how to delete all files and folders in windows. rd /s/q FolderName thank you :)
-
Hi Fellas, Today I'm sharing how to install JBoss EAP 6.x installtion. Thank...
-
Hello Fellas, Today I'm sharing my source code to find H.C.F. using Java. MyException.java TwoDigit.java Thank You :)