In ADF, sometimes it will take time to load or refresh
a page. In such cases, if you want to display some icon to indicate the page is
loading or refreshing, you can use the ADF component “Status Indicator” which
is available in Common Components panel. As ADF components are ajax components,
the status indicator automatically identifies the status of the action and
animates accordingly. The icon of status indicator on a page typically looks
like as below.
July 15, 2013
July 12, 2013
java.lang.UnsupportedOperationException
As the name implies when the requested operation is not
supported, we get this error.
Below is a sample program to generate this error.
public static void main(String args[])
{ String st[]={"Hi","Hello","Bye"}; List list=Arrays.asList(st); list.add(“Anand”); //Get error at this line
System.out.println(" List: "+list);
} |
If we run this method, we get the below error because we are
trying to add a new element to a list which is not updatable.
Caused by: java.lang.UnsupportedOperationException
at
java.util. List.add(List.java:131)
at
java.util. List.add(List.java:91)
at Test.main(Test.java:7)
I modified the program as below to run without errors.
public static void main(String args[])
{ String st[]={"Hi","Hello","Bye"}; ArrayList<String> list = new ArrayList<String>();
//List list=Arrays.asList(st);
list.addAll(Arrays.asList(st));
list.add(“Anand”); //Get error at this line
System.out.println(" List: "+list);
} |
July 1, 2013
Making cloud application public
To make an ADF application to be accessible to all users, which is deployed in cloud environment, make an entry of the tag <login-config/> in web.xml
Subscribe to:
Posts (Atom)