Tuesday, January 8, 2013
Monday, January 7, 2013
Programmatic PPR
//Refresh the component from managed/backing bean
AdfFacesContext.getCurrentInstance().addPartialTarget(componentBinding);
Sunday, January 6, 2013
Remote Debugging
https://forums.oracle.com/forums/thread.jspa?threadID=2425645
http://technology.amis.nl/2010/04/03/adf-11g-debugging-task-flows-embedded-from-adf-libraries-using-source-code-jars/
http://technology.amis.nl/2010/04/03/adf-11g-debugging-task-flows-embedded-from-adf-libraries-using-source-code-jars/
Get the current selected value in the backing bean on ValueChangeListener() of SelectOneChoice ADF
public void
valueChanged(ValueChangeEvent valueChangeEvent) throws Exception{
valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter =
bindings.findIteratorBinding("CountryTRVOIterator");
CountryTRVORowImpl countryRow=
(CountryTRVORowImpl) iter.getCurrentRow();
System.out.println(countryRow.getCountryId());
}
or
public void
valueChanged(ValueChangeEvent valueChangeEvent){
OperationBinding oper1 =
ADFUtils.findOperation("GetHyperLinkEWP");
if (JSFUtils.resolveExpression("#{bindings.ActionRef<attribute_in_bindings>.selectedValue.attributeValues[1]}").toString().equals("Compliant"))
{
oper1.getParamsMap().put("BindLabel",
"Approval Report");
System.err.println("Approval
Report");
} else {
oper1.getParamsMap().put("BindLabel",
"Rejection Report");
System.err.println("Rejection
Report");
}
oper1.execute();
}
or
if you are trying to get the new
value of the select one choice before the value gets updated to model
public
void valueChanged(ValueChangeEvent valueChangeEvent) {
this.setValueToEL("#{bindings.Deptno.inputValue}",
valueChangeEvent.getNewValue()); //Updates the model
System.out.println("\n********
Selected Value:
"+resolveExpression("#{bindings.Deptno.attributeValue}"));
System.out.println("\n********
Display Value: "+resolveExpression("#{bindings.Deptno.selectedValue
ne ' ' ? bindings.Deptno.selectedValue.attributeValues[1] : ''}"));
}
Labels:
get Value,
not index,
SOC,
ValueChangeListener
Wednesday, December 19, 2012
get any day from a week
http://stackoverflow.com/questions/3890944/java-get-any-day-in-a-week-from-calendar
Monday, December 17, 2012
Attempt to validate an already invalid RegionSite:
Check If the TaskFlow has Default Activity
Check if the beans are registered in TF
More Reasons:
https://forums.oracle.com/forums/thread.jspa?threadID=2159545
Check if the beans are registered in TF
More Reasons:
https://forums.oracle.com/forums/thread.jspa?threadID=2159545
To create an ADF Model debugging configuration
-Djbo.debugoutput=adflogger -Djbo.adflogger.level=FINE
Subscribe to:
Posts (Atom)