Create ADF popup for value change event(For select one choice component).

Add popup and add dialog to inside of the popup,then select popup and add value for binding attribute in mine
#{pageFlowScope.popupBean.myPop}.
private RichPopup myPop = new RichPopup();
public void selectOneChoiceEvent(ValueChangeEvent valueChangeEvent) {
RichPopup.PopupHints ph = new RichPopup.PopupHints();
myPop.show(ph);
}
public void setMyPop(RichPopup myPop) {
this.myPop = myPop;
}
public RichPopup getMyPop() {
return myPop;
}

Oracle ADF - Add new custom attribute for view object using Expression

Oracle ADF Client-side Validators

Oracle ADF Association sample for Department and Employee

Wednesday, September 21, 2011

Oracle ADf – How to set background color of Table column using inlineStyle

Following example shows how to change background color of column using column’s attribute value.In this sample VO name is CustomVO and attribute is cusAttribute(Here If cusAttribute value greater than 100 background color red otherwise green)

<af:table value="#{bindings.CustomVO.collectionModel}" var="row">

<af:column custom data...

inlineStyle="#{row.cusAttribute > 100 ?'background-color:Red;':'background-color:green;'}">

<af:outputText value="#{row.cusAttribute}" id="ot5">

</af:outputText>

</af:column>

2 comments: