ADF: Access ResourceBundle value in Javascript - oracle-adf

I've a resource bundle in my JSFF page. How do I access the bundle KEY VALUE in the javascript.

you can store the value in a component like:
<af:outputText value="#{'YOUR RESOURCE BUNDLE VALUE'}"
Then, read the value from using a ADF client Listener.
More info on how you can use ADF Javascript API, here:
http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf

Related

DocuSign for Salesforce - Use Blob Content in Salesforce with SignHereTabs and Anchor-text

Are there any methods in the latest 'DocuSign for Salesforce' package that allows for:
- Using the Base64 content of a contentVersion as the document
- Specifying SignHereTabs with Anchor-text within the document and assigning to specific recipients?
Would this need to be a custom integration with the REST API in order to facilitate this?
Check page 70 of DfS Guide to see how to do Automatic Anchor Text and Tags

Is there any way of getting CRX content without using OSGI

Is there any way to get CRX content without using OSGI service?
Am looking for an use case to implement a top navigation for a website which is required to read page names and its properties via javascript framework like angular JS.
You could get it as JSON or XML, make a server call to path with extension XML or JSON. JSON allows you depth based selectors to go down the tree hierarchy not sure if its same with XML.
/my/page/path.xml or /my/page/path.<depth>.json, you can get the hostname and port details from the request URI to make the complete URL for the data call.
I would suggest you use the following JSON API's provided by sling to accomplish your task of getting page names and its properties.
Firstly to crawl all the pages under a given path, you need to use the .pages.json selector. For example to get all child pages of /content/company/en_US, perform a JSON GET on
HTTP GET <Host>/content/company/en_US.pages.json
Next for each path returned by the above GET call, you need to grab the _jcr_content.json of the page
(E.g.)
HTTP GET <Host>/content/company/en_US/home/_jcr_content.json
The above JSON call should provide you all the page properties of this particular page.
Please Note: The above method is generic and can be applied to any JCR Path hosted in Sling/AEM. Also typically you cannot get this level of JCR access in a publisher environment due to security rules that might prevent JCR crawling. Hope this helps

Get Spring Form Action Attribute For Angular js

I'm trying to customize Jasig's CAS 4.0.0 to a new view using Angular 1.4. But i have a problem on this time, here i can't use the angular tags on the current <form:form> tag, and also i have no idea to extract the bean that,it uses to define the action=cas/login?... part. Here's what it uses:
The viewLogin.jsp that uses the form:
<form:form method="post" id="fm1" modelAttribute="${commandName}"htmlEscape="true" cssClass="form-validate mb-lg" novalidate="">
I again changed from commandName to modelAttribute, because i saw a question saying it was outdated... But i still haven't any idea how to extract the information which i need from that form. Apparently, that's just a name to instantiate a bean that is resolved by spring automatically. But how can i access that information outside of the JSP attribute? Also I want to make the validation from Angular to complete it, but since that i cannot extract the URL that CAS generates, I can't make it "totally works".
Thanks in advance!

Microstrategy Selector Value using URL API

I have a dashboard which has a selector based on an attribute.
I'd like to know if its possible to access the dashboard , with a pre-fed (pre-selected) selector value , using MSTR's URL API
Any help would be appreciated
Cheers!
This is possible in the most recent versions of MicroStrategy (I think 9.3.1 or more recent).
There is a technote that explain how to build the URL to set a selector to the default value that you prefer:
TN46649: How to use Mobile URL API to pass hard-coded (default) selector answers to a target document in MicroStrategy Mobile 9.3.1?
You can also check the following link which adds few more details:
Defaulting Element Selectors Using URL API

Apache Camel / String template component / Template Groups

In Apache Camel, is it possible to use template groups (c.f. https://theantlrguy.atlassian.net/wiki/display/ST4/Group+file+syntax) using the string-template component ?
I would like to load a template group file to be able to used the named templates defined there and use them in the template file refered to by a string-template endpoint.
There does not seem to be any means to configure the string-template endpoint or component to define where to load a group file.
Any ideas on whether this is possible or not and if so how ?
Is there a reason for needing the template groups and ST4? According to the String-Template Component page:
string-template:templateName[?options]
Where templateName is the classpath-local URI of the template to invoke; or the complete URL of the remote template.
I would think you could put all your template files in the same folder and treat that as your group.

Resources