ADF Page Fails to Render if Resource Bundle Name contains a Minus Sign

(Doc ID 1509184.1)

Last updated on AUGUST 05, 2016

Applies to:

Oracle JDeveloper - Version 11.1.1.0.0 and later
Information in this document applies to any platform.

Symptoms

In an ADF application, a view-controller project has a name that contains a minus sign (e.g., 'myapp-viewcontroller'). If a resource bundle is created to contain text strings for use in a page in that view-controller, then the default name of the bundle will also contain minus signs. EL expressions used to reference the text field end up taking the form:

#{myapp-viewcontrollerBundle}.property

This causes the page to fail to render.


ERROR
-----------------------
ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key el.convert
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at com.sun.el.util.MessageFactory.getArray(Unknown Source)
at com.sun.el.util.MessageFactory.get(Unknown Source)
at com.sun.el.lang.ELArithmetic.coerce(Unknown Source)
at com.sun.el.lang.ELArithmetic.subtract(Unknown Source)
at com.sun.el.parser.AstMinus.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:184)
at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:145)



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms