Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to populate Label for Accessor using xliff/properties file

user1175496Jul 11 2014 — edited Jul 14 2014

Hi All,

I have a requirement ,where in I want to populate the label for an accessor from resource bundle ,but its not populating with the value for the key provided in the label .

The portal bundle has following entry:

CUST_ADD=Customer Address

and I'm using the below piece of code in the pagedef.xml to render Customer Address on the UI

  <Accessors>

          <Item Value="custAddList"

                Label="#{adfBundle['PortalBundle']['CUST_ADD']}"/>

  </Accessors>

But it is giving following error on UI :

STRINGMANAGER: Key: '#{adfBundle['PortalBundle']['CUST_ADD']}' not found in bundle 'oracle.javatools.resourcebundle.ResourceBundleRT'

Can any one tell me how do we populate this label from resource bundle.

Thanks,

Garima

This post has been answered by user1175496 on Jul 14 2014
Jump to Answer

Comments

dvohra21

What is error message? Is a java.util.MissingResourceException generated?

user1175496

I don't see any error message or any exception.

Its just the error message at the UI where the label should appear "STRINGMANAGER: Key: '#{adfBundle['PortalBundle']['CUST_ADD']}' not found in bundle 'oracle.javatools.resourcebundle.ResourceBundleRT'"

dvohra21

Because of the exception message being in a UI, the error message is brief, but the complete error message should be on the server log.

A resource bundle is not found. Refer similar post.

https://community.oracle.com/thread/610354?start=0&tstart=0

https://community.oracle.com/message/10310462

user1175496
Answer

Hi,

I was able to fix the issue by providing the fully qualified path of the resource bundle as shown below:

<Accessors>

          <Item Value="custAddList"

                Label="#{adfBundle['portal.PortalBundle']['CUST_ADD']}"/>

  </Accessors>

Thanks all for help !!!!

Marked as Answer by user1175496 · Sep 27 2020
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 11 2014
Added on Jul 11 2014
4 comments
1,295 views