Skip to main content

af:codeEditor - ADF Faces Component for Displaying XML, Groovy, JavaScript and Text

I'm not really sure how many of you have noticed af:codeEditor component that comes with ADF Faces. If you have note, see this demo: http://jdevadf.oracle.com/adf-richclient-demo/faces/components/codeEditor.jspx
This UI component  allows you to view or edit content or program code in  text, xml, javascript or groovy at run time. It has also support for adding content validations. See the sample in Oracle ADF Faces Components Demo source ( see codeEditorMessaging.jspx and DemoCodeEditorMessagingBean.java ) which can be downloaded from here:
http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html

Comments

Surjit said…
It's CodeMirror (http://codemirror.net/)
but ADF has limited it to only 4 languages.

Popular posts from this blog

How to set Bind Variable Values at runtime ?

In this post I'm sharing a couple of approaches for programmatically setting bind variables values at run time. This post is an attempt to explain 'When to use what ?'[ In case if you are familiar with 'Bind Variables' in ADF BC, please refer Section 5.10, Working with Bind Variables in Fusion Developer's Guide ]

1. Set the Bind Variable value using RowSet::setNamedWhereClauseParam(...)

You can use use the setNamedWhereClauseParam(...) method on the ViewObject interface (which extends oracle.jbo.RowSet) to set the value for bind variables. Please note this sets the value on default RowSet. In other words, this doesn't have any effect on the secondary RowSets that you/system generates.
ViewObject vo = am.findViewObject("EmployeesView1"); vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10)); vo.executeQuery();
2. Set the Bind Variable value using ViewObject's VariableValueManager::setVariableValue(...)

VariableValueManager Ma…