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

Thursday, March 10, 2011

ADF client side validations with inbuilt validation tags…

Validate maximum length;

<af:inputText id="id0" value="12A" label="Maximum length validator">

<af:validateLength maximum="5"/>

</af:inputText>

Validate minimum length;

<af:inputText id="id00" value="12A" label="Minimum length validator">

<af:validateLength minimum="3"/>

</af:inputText>

Validate length range;

<af:inputText id="id01" value="12A" label="Length Range Validator">

<af:validateLength minimum="1" maximum="5"/>

</af:inputText>

Validate long range;

<af:inputText id="id2" value="10" label="Long Range Validator">

<af:validateLongRange minimum="5" maximum="50"/>

</af:inputText>

Validate double range;

<af:inputText id="id3" value="8.6" label="Double Range Validator">

<af:validateDoubleRange minimum="4.1" maximum="8.9"/>

</af:inputText>

Validate regular expression;

<af:inputText id="id4" value="9999" label="Regular Expression validation">

<af:validateRegExp pattern="[9]*"/ >

</af:inputText>

Date validation with filter condition;

<af:inputDate id="id5" value="2011-05-21"

label="Select a date, but not a Friday">

<af:convertDateTime pattern="yyyy-MM-dd"/>

<af:validateDateRestriction invalidDaysOfWeek="Fri"/>

</af:inputDate>

Validate date range;

<af:inputDate id="mdf3ee" value="2011-11-25" label="Submission period">

<af:convertDateTime pattern="yyyy-MM-dd"/>

<!-- Supports ISO date format strings of the form "yyyy-MM-dd" -->

<af:validateDateTimeRange minimum="2011-11-16" maximum="2011-12-16"/>

</af:inputDate>

No comments:

Post a Comment