Skip to content

Instantly share code, notes, and snippets.

View captivecode's full-sized avatar

CaptiveCode captivecode

View GitHub Profile
@captivecode
captivecode / adf-action-listener-button.xml
Last active September 7, 2017 06:23
Pass parameters to actionListener in #ADF
<!-- Define button with an action listener -->
<af:commandButton text="Search" id="cb6"
actionListener="#{ManagedBean.executeSearch}" partialSubmit="true">
<!-- Set parameter value -->
<f:attribute name="VENDOR_NUM" value="#{bindings.vendorNumber.inputValue}"/>
</af:commandButton>
@captivecode
captivecode / adf-show-exception.java
Created September 7, 2017 06:16
Show error message on #ADF UI
String message = "This is a test!";
JboException ex = new JboException (message);
BindingContext bctx = BindingContext.getCurrent();
((DCBindingContainer)bctx.getCurrentBindingsEntry()).reportException(ex);
@captivecode
captivecode / adf-show-popup.java
Last active August 29, 2019 12:40
Show #popUp in #ADF programmatically
public class BackingBean {
/* Binding for popUp */
private RichPopup supplierLOVPopup;
public RichPopup getSupplierLOVPopup() {
return supplierLOVPopup;
}
public void showSupplierLOVPopup(){
RichPopup.PopupHints hints = new RichPopup.PopupHints();
this.getSupplierLOVPopup().show(hints);
}