Skip to main content

JSF Component ID must start with a letter...

If you are are on ADF 11gR2 and seeing the following error when you run the application, then change the component id to match with JSF spec :)

The following exception occurred:
oracle.mds.exception.MDSRuntimeException: JSF Component ID must start with a letter.
at oracle.mds.internal.el.ELUtils.getValue(

See section 3.1.1 Component Identifiers in the following pdf
It says ....
Every component may be named by a component identifier that must conform to
the following rules:
■ They must start with a letter (as defined by the Character.isLetter() method).
■ Subsequent characters must be letters (as defined by the Character.isLetter() method), digits as defined by
the Character.isDigit() method, dashes (‘-’), or underscores (‘_’).

To minimize the size of responses generated by JavaServer Faces, it is recommended that component identifiers be as short as possible.

If a component has been given an identifier, it must be unique in the namespace of the closest ancestor to that component that is a NamingContainer (if any).


Unknown said…
Your documentation link doesn't work for me. Could you correct it, or at least name the document (and section/chapter) that you are pointing at - maybe I already have that document.

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…