https://blogs.oracle.com/practicalbpm/entry/creating_a_web_service_proxy
Thursday, April 28, 2016
Wednesday, April 27, 2016
Programmatically show/hide popup in ADF
In ADF showing a popup comes easy using the Show Popup Behavior operation from ADF Faces. However sometimes it is handy to control the popup behavior through managed bean method. To achieve this:
1- Bind your popup to a managed bean property, lets say myPopup
2- In your managed bean method, apart from your application logic add these rows:
RichPopup.PopupHints hints = new RichPopup.PopupHints();
getMyPopup().show(hints);
getMyPopup().show(hints);
3- To hide or close your popup:
RichPopup popup = getMyPopup();
popup.hide();
popup.hide();
Method:compareTo
The method compares the Number object that invoked the method to the
argument. It is possible to compare Byte, Long, Integer, etc.
However, two different types cannot be compared, both the argument and the Number object invoking the method should be of same type.
However, two different types cannot be compared, both the argument and the Number object invoking the method should be of same type.
public class Test { public static void main(String args[]) { String str1 = "Strings are immutable"; String str2 = "Strings are immutable"; String str3 = "Integers are not immutable"; int result = str1.compareTo( str2 ); System.out.println(result); result = str2.compareTo( str3 ); System.out.println(result); result = str3.compareTo( str1 ); System.out.println(result); } }
output:
0
10
-10
-------------------------------------------------------------------------
public class Test{
public static void main(String args[]){
Integer x = 5;
System.out.println(x.compareTo(3));
System.out.println(x.compareTo(5));
System.out.println(x.compareTo(8));
}
}
output:
1
0
-1
we cannot apply compareTo on primitives.
Subscribe to:
Posts (Atom)