Unable to refer to custom resource bundle in WPC content rendered with xslt
Hi,
I need to use the resource bundle messages inside WPC content.
When rendered by standard xsl templates the call to XSLTHelper class is done to retrieve message from the standard SAP resource bundle com.sap.nw.wpc.bundles.core.properties, like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
<xsl:value-of select="wpc:getString([key defined in sap bundle], string(/document/@locale))"/>
The problem is that helper class doesn't provide any API to use custom bundles.
I tried to create xslt helper (including config in KM), but that didn't succeed neither. It would return with error NoClassDefFound.
Could you please help on configuring xslt helper and registering it with xslt rendering engine for Web Page Composer? I could not find any how-to guides on xslt helpers for WPC.
Thanks in advance.
Ruslan
Hi
Did you find a solution?
Christof
Similar Messages
-
Unable to create a customizing request to transport BPC10 content to Quality
Hi
Unable to create a customizing request to transport BPC10 content to Quality .
From the transport connections tab, i am selecting the required objects and then clicking the transport truck but it does not pop up and ask for a transport request .
So please provide any solution.Hi,
Check whether Standard transport switched-on is enabled or not. To get transport request your setting should be as follows : RSA1-->Transport Connection-->Edit-->Transport
Hope it helps...
regards,
Raju -
Where does the resources bundle files need to be
Hi All,
Does any of you knows where all the custom resources bundle files that will be used on BCC need to be?
I have something like this:
BCC module /src/com/mycompany/resources/WebAppResources.properties
But when I try to use it
This happens
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "title" with value "${activity.description}": An error occurred while getting property "description" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key manageLoyaltyProgram.description)
I am trying to use it on a activity that will be used in the ActivityManager:
This is what I have
<resource-bundle>com.mycompany.resources.WebAppResources</resource-bundle>
Do you know if I am missing somehting or putting the files on a wrong location?
Regards,
ObedHi Shaik,
The title of for the source is added http://i.imgur.com/a6WVxsW.png but when I click on it it throws this exception:
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${activity.displayName}": An error occurred while getting property "displayName" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle j
ava.util.PropertyResourceBundle, key emanageLoyaltyProgram.displayName)
meaning that the properties file is on the classpath, but my genericActivities.xml file is not able to read the properties file.
Any suggestion?
Regards,
Obed -
Hi,
I'm using a paged af:table and getting in the logs "<RenderingContext> <getTranslatedString> Could not fetch resource key Page from the skin myskin.desktop" (roughly translated).
Solution in non-portal application is to specify resource bundle with specified key in trinidad-skins.xml/skins/skin/bundle-name but what is the proper solution in a portal application if I still want to allow for runtime selection of skin?
The "update portal resource" dialog does not provide input of resource bundle name.
The generated generic-site-resources.xml contains a reference resourceBundle="oracle.webcenter.framework.translations.TranslationsMDSResourceBundle" that indicates there might be some proper place to put skin bundle resources. (I tried editing the xml manually testing changing resourceBundle="MyBundle" and also adding <customAttribute name="skinBundleName" seeded="false" value="MyBundle" visible="ALWAYS"/> but to no avail).
Best bet, if it is indeed possible to translate the "???Page???" in an af:table in a portal application, would be to add something to ResourceLibraryBundle but I don't know what trans-unit id.
There's a handful of this exact question (e.g. https://forums.oracle.com/message/10620083) but no answers, either the solution is very obvious or there is no solution other than hard-coding the skin (which would not be that much of a problem).
Any ideas?Thank you again!
I'm using JDeveloper 10g.
First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
Second, I've created the file adf-faces-skins.xml like this:
<?xml version="1.0" encoding="windows-1252" ?>
<skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
<skin>
<id>MugejuSkin</id>
<family>MugejuSkin</family>
<render-kit-id>oracle.adf.desktop</render-kit-id>
<bundle-name>
com.ieci.mugeju.view.resource.MugejuResourceBundle
</bundle-name>
</skin>
</skins>
Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
Thank you very much. -
Hello,
I'm using the Oracle skin in an ADF application. I would need a new "skin's resource bundle" for an unsupported locale. How could I do it? Which is the name of the Oracle Resource bundle class (or properties file)?
Thanks in advance!Thank you again!
I'm using JDeveloper 10g.
First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
Second, I've created the file adf-faces-skins.xml like this:
<?xml version="1.0" encoding="windows-1252" ?>
<skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
<skin>
<id>MugejuSkin</id>
<family>MugejuSkin</family>
<render-kit-id>oracle.adf.desktop</render-kit-id>
<bundle-name>
com.ieci.mugeju.view.resource.MugejuResourceBundle
</bundle-name>
</skin>
</skins>
Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
Thank you very much. -
I upgraded my cloud storage from 2G to 120G and today it went back to 2G and I cannot save my work. Anyone experience this? Unable to get any customer service.
Purplehiddledog wrote:
I do backup with iCloud. I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud.
I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever. Is that right?
In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever. -
Custom error messages - resource bundle
Greetings everyone!
My JDev version is: 11.1.2.3.0
I've seen several threads in OTN and outside about this topic, but they seem confused (or may be it's me that is missing something).
I have this current situation, when because of the presence of a FK in the database, when a try to delete a certain record, a popUp shows up ORA-02292 error code. I don't want to enable cascade deletion (i don't want anything to be deleted in that case at all), so i was trying to customize the error message. I've created a java class and declared it as a resource bundle in the Model project. The content is this:
public class CustomErrorMessages extends ListResourceBundle {
private static final Object[][] sMessageStrings = new String[][] {
{"25014", "Another user has made a modification to this record meanwhile. Please cancel your changes!"},
{"CREDITOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"},
{"DEBTOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"}
/**Return String Identifiers and corresponding Messages in a two-dimensional array.
protected Object[][] getContents() {
return sMessageStrings;
25014 - refers to JBO-25014 and it works fine. Now CREDITOR/DEBTOR are the FK mentioned above. If i put 02292 or ORA-02292 instead of them it doesn't work at all. If i let them just like this, it works if i run the Application Module only, but not when i run the application. What does it mean?
Also, i've noticed that the ViewController project has also a "Resource Bundle" section in the properties, but the content is disabled. Should i do any kind of configuration to make it work?
Thank you in advance.Hi,
this blog is as close as it gets to your requirement
http://www.jobinesh.com/2011/03/customizing-business-components-error.html
Frank -
Pure AS3 Project unable to resolve resource bundle
I've been working on a pure AS3 project in Flash Builder and all has been going just fine. All of a sudden, I started getting errors such as:
Unable to resolve resource bundle "core" for locale "en_US". Player Unknown Flex Problem
What in the heck did I likely do? Any hints welcome.I jut saw the posting today.
Place your local folder in application root
In project properties : Flex Compiler Argument : additional compiler argument : -source-path ../locale/{locale}
add this. -
Unable to resolve resource bundle "myResources" locale "en_US" ?
Hi All,
I have created two locales one is en_US and Second one is fr_FR. I placed these two files in locale file. These files directory structure is
......\src\locale\en_US and .....\src\locale\fr_FR . After placing these two files in the project i was compile my application and it is showing just like unable to resolve resource bundle "myResources" locale "en_US"... can any one help me how to configure the resource bundle in my flex application... i dont have exposure to resource bundle earlier. So plese tell me the configurations step by step.. how to configure...
My resource property name is myResource.properties .
Thanks
RamIf you have already followed the correct directory structure. Then please check the following,
1. change the compiler arguments, to "-locale=en_US,fr_FR -source-path=locale/{locale}"
you can find the compiler arguments, by right-clicking over the project name on the flex builder, properties-> flex compiler->compiler options.
2. please check whether both the locale properties files uses the correct encoding. If not change them to "UTF-8"
you can find this, by right-clicking over the properties file on the flex builder, properties->resources->text file encoding -
hi, all,
We have developped an application on Flex Build 3 (run
successfully), but failed when we try to deploy it on Tomcat with
LCDS 2.5 ES because some components cannot be resolved correctly on
LCDS 2.5. We then downloaded a 2.6 ES Beta 2, but still cannot run
the application, the error msg is "Unable to resolve resource
bundle "datamanagement" for locale "en_US".
anyone knows how to deploy the application on LCDS 2.6 ES?
Many thanks.In your WEB-INF/flex/locale/en_US dir there should be a file
called fds_rd.swc. Is that there? -
Unable to resolve resource bundle "fiber"
Hi all!
I'm trying to use AMF with PHP in Flash Builder 4 (plug-in version) and I'm having the following error:
Unable to resolve resource bundle "fiber" for locale "pt_PT". dss Unknown Flex Problem
I've found a workaround here in which they recommend to add these lines too the beginning of the eclipse.ini file:
-nl
en_US
Nonetheless, even adding those lines to the file, I keep having the same error.
Anyone knows what might be going wrong?
Best regards,
JorgeIf you're trying to...
use Adobe's lifecycle/fiber/generated classes/RemoteObjectServiceWrapper
import com.adobe.fiber.valueobjects.AvailablePropertyIterator
import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
etc. etc., here's what I did:
Don't add those two lines to your ini file. (At least, I'm using Flash Builder 4 and this wasn't necessary for me)
import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):
/Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs
and
/Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/locale
(the latter has the swc with the locale and the locations of these files will vary, esp. if you're not on a mac)
HTH -
Please : WWC-43273 - ContainerException: Unable to load resource bundle
Please Help :(
Development Environment:
Application : Hello World Portlet
OAS : 10.1.2.0.2 Installed on LocalHost
Development Tool : JDeveloper 10.1.3.2.0
Portal Server : 10.1.4 Installed on LocalHost
I have followed following Tutorial for the same : http://www.oracle.com/technology/obe/obe1014portal/standards_portlets/stdsplts.htm
My EAR WSDL (http://localhost/HelloWorld/portlets?WSDL) in OAS is working perfectly fine yeilding following output :
<?xml version = '1.0' encoding = 'UTF-8'?>
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:oasis:names:tc:wsrp:v1:wsdl">
<import namespace="urn:oasis:names:tc:wsrp:v1:bind" location="http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_bindings.wsdl"/>
<wsdl:service name="WSRPService">
<wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP" name="WSRPBaseService">
<soap:address location="http://infra:80/HelloWorld/portlets/WSRPBaseService"/>
</wsdl:port>
<wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP" name="WSRPServiceDescriptionService">
<soap:address location="http://infra:80/HelloWorld/portlets/WSRPServiceDescriptionService"/>
</wsdl:port>
<wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP" name="WSRPRegistrationService">
<soap:address location="http://infra:80/HelloWorld/portlets/WSRPRegistrationService"/>
</wsdl:port>
<wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP" name="WSRPPortletManagementService">
<soap:address location="http://infra:80/HelloWorld/portlets/WSRPPortletManagementService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
However when i try to access the same via Register Provider wizard in Portal Server 10.1.4 i get this exception.
An error occurred during the call to the WSRP Provider: Java stack trace from root exception:
java.rmi.ServerException: Internal Server Error (java.lang.RuntimeException: oracle.webdb.wsrp.server.ContainerException: Unable to load resource bundle "portlet.resource.CHelloWorldBundle")
at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:384)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:245)
at oracle.webdb.wsrp.WSRP_v1_ServiceDescription_PortType_Stub.getServiceDescription(WSRP_v1_ServiceDescription_PortType_Stub.java:63)
at oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_ServiceDescription_PortType.getServiceDescription(Unknown Source)Found the solution:
I needed to choose the Servlet 2.3/JSP 1.2 (J2EE 1.3) when creating my JSR268 Portlet.
Also the second change I needed to make was to use J2SE ver. 1.4.2_12. To do this change the default j2se ver. of JDeveloper(i.e ver. 1.5) from project properties > libraries node > edit/change j2se definitions screen and select java.exe from j2se1.4.2_12/bin -
Unable to load resource bundles in Flex 4.5 mobile
Hi All,
Starting to localize my strings in my first mobile application and for some reason... resourceManager is not finding my strings.
My project structure is as follows:
src/assets/locale/en_US
resources.properties
My compiler args are:
-locale=en_US -source-path=assets/locale/{locale} -allow-source-path-overlap=true
My first test is to externalize my first views title, but resourceManager fails to load my resource:
views.loginView.title=Login
Not sure what I am doing wrong, I am compiling my web client in Flex 4.5/Flash Builder Burito no problem but my mobile client is not finding my strings. Have tried cleaning ect...nothing... I also tried excluding the -source-path compiler args and added the new source path to Flash Builder but same result.
Any help much appreciated.
GregWell, my resource bundles where not being compiled into my application due
to a missing meta tag instruction informing the compiler to include it.
<fx:Metadata>
[ResourceBundle("resources")
</fx:Metadata>
As per the 13 errors... they seem to have gone away now and have not seen them since adding the metadata tag.
Great doc on the subject http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcf.html. Unfortunately, when I skimmed through it I missed the 'Using resource bundles' section that describes the metadata tag usage.
Thanks for listening :-)
Good Adobe -
Error: Unable to resolve resource bundle "fiber" for locale "en_US".
Hi all,
Im trying to create a resources.swf file for the purpose of dynamic localization of our application. However, I keep getting this error thrown when I try to run the ant script.
Im running Flash Builder 4, the sdk is Flex 4.5.1 with AIR 3.0 and a Windows 7-64 bit machine (just mentioning as a few posts associated it with the OS).
After searching some of the forum posts, ( http://forums.adobe.com/thread/606383)
1> I checked the eclipse.ini file and found the following lines already in there.
-nl
en_US
2> My compiler options already has -locale en_US specified.
3> I tried including the swc files as suggested in the referenced thread, both as a referenced library and by manually copying the swcs to the project, but neither of them helped.
"import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):
/Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs
and
/Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/loca le"
Thanks in advance for your help.
My build.xml file looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<project name="appName" basedir="." default="main">
<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>
<!-- CHANGE TO YOUR FLEX DIRECTORY //-->
<property name="FLEX_HOME" value="C:/Users/abc/Documents/flex_sdk_4.5.1.21328_AIR3.0"/>
<property name="APP_ROOT" value="appName"/>
<target name="main">
<antcall target="en_US"></antcall>
<!-- <antcall target="de_DE"></antcall>-->
</target>
<target name="en_US">
<mxmlc>
<locale>en_US</locale>
<source-path>locale/{locale}</source-path>
<include-resource-bundles>appResource</include-resource-bundles>
<include-resource-bundles>SharedResources</include-resource-bundles>
<include-resource-bundles>collections</include-resource-bundles>
<include-resource-bundles>components</include-resource-bundles>
<include-resource-bundles>containers</include-resource-bundles>
<include-resource-bundles>controls</include-resource-bundles>
<include-resource-bundles>core</include-resource-bundles>
<include-resource-bundles>effects</include-resource-bundles>
<include-resource-bundles>formatters</include-resource-bundles>
<include-resource-bundles>layout</include-resource-bundles>
<include-resource-bundles>logging</include-resource-bundles>
<include-resource-bundles>messaging</include-resource-bundles>
<include-resource-bundles>rpc</include-resource-bundles>
<include-resource-bundles>skins</include-resource-bundles>
<include-resource-bundles>sparkEffects</include-resource-bundles>
<include-resource-bundles>styles</include-resource-bundles>
<include-resource-bundles>textLayout</include-resource-bundles>
<include-resource-bundles>utils</include-resource-bundles>
<include-resource-bundles>validators</include-resource-bundles>
<include-resource-bundles>fiber</include-resource-bundles>
<output>locale/en_US/appName.swf</output>
</mxmlc>
</target>
</project>
Thanks & Regards,
AJI did import the swcs first as a referenced library, by
Project-> Properties -> Flex Build Path -> Library Path -> add swc folder.
Secondly, I manually copied the swcs from the folders at
1>
C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in\eclipse\plugins\com.adobe.flexbuilder.dcrad_4.0.0.272416\dcradSwcs\4.0\libs
files present: fds.swc, fiber.swc and serializers.swc
2>
C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in\eclipse\plugins\com.adobe.flexbuilder.dcrad_4.0.0.272416\dcradSwcs\4.0\locale
files present: fds_rb.swc, fiber_rb.swc and serializers_rb.swc
into the libs folder of my project . -
[ERROR] could not find source for resource bundle modules.
We are in the process of upgrading our flex application from SDK3.6 to SDK4.5.0.17899.
Flexmojos version used for compilation is 3.9.
The flex library project is complied with SDK4.5.0 version but BUILD is not getting SUCESS from maven.
The following is the reason is showing and unable to find out the root cause.
[ERROR] could not find source for resource bundle modules.
Can you please help me out.
Thanks,Copying
/Software/FB\ Eclipse\ Plugin/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/2.0.1/frameworks/locale/en_US/charts_rb.swc into
the 3.5 SDK directory
/usr/local/lib/flex_sdk/3.5.0/frameworks/locale/en_US
solves the problem.
Not sure why as the charts_rb.swc comes from Flex 2.0
Maybe you are looking for
-
Interactive report – column heading in multiple rows
I am using interactive report. My question to the expert/guru’s is: - How do I change column heading into multiple row with text wrap. For example:- My column heading is Is Employee Trained ? -------> (single row display) I want to make it display li
-
Time Capsule with an Airport Extreme bridge resulted in slow LAN speeds
Wondering if other people are seeing this. I am unsure if this was a result of upgrading both my TC and AEx to 7.6, but my LAN speeds had suffered in this configuration. 1. Comcast cable modem connected to the WAN port on my TC. 2. Connected an eth
-
How do I set up my phone to send a file to print from my iphone 5 to my Samsung CLX-4195FW printer?
-
Sender RFC Adapter AND Rec. File Adapter
Hi Workflow of my scenario is like this : <b>SAP R/3 ---> Sender RFC Adapter ---> XI Server - > Rec. File Adapter - > Legacy System</b> I am using Async Inbound interface for this as I dont need any response back & I just need to create file. I am ju
-
How can I fix this it is screwing up Siri and everything.