How can i use JS files in ADF for language translation.

Hi,
I have JS for different languages and dn't want to convert them to property files(resource bundle files). How can i use JS files in ADF for language translation.
Thanks

Hi ILya Cyclone,
Thanks alotfor the reply. Can you tell me where should i include this in the jspx page.
Step 1)
I have the js file as js/ifl_messages_US.js and i created a resource file as you mentioned: JS_FILE_PATH=js/ifl_messages_US.js
Step 2)
Then added the entry in faces-config.xml for the resource file as follow:
<resource-bundle>
<base-name>resource_en.properties</base-name>
<var>resource</var>
</resource-bundle>
<locale-config>
<supported-locale>en</supported-locale>
</locale-config>
Step 3) This is my jspx page. In which a table is dynamically created on page load. Can you help me where should i enter the "#{resource.JS_FILE_PATH}"
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:resource type="javascript" source="/js/pdfFile.js"/>
<af:form id="f1">
<input type="hidden" name="checkRadio" id="checkRadio" value=""/>
<af:panelGroupLayout id="pgl1" halign="left" layout="vertical">
<af:image source="/images/BRAND_IMAGE.gif" id="i1"/>
</af:panelGroupLayout>
<af:spacer width="10" height="10" id="s1"/>
<af:table varStatus="rowStat" summary="table"
value="#{backingBeanScope.DummyBean.collectionModel}"
rows="#{backingBeanScope.DummyBean.collectionModel.rowCount}"
rowSelection="none" contentDelivery="immediate" var="row"
rendered="true" id="t1" styleClass="AFStretchWidth"
binding="#{backingBeanScope.DummyBean.myTableBinding}"
columnResizing="disabled">
<af:column id="c2" headerText="Actions">
<af:activeOutputText value="#{row.Actions}" id="aot2"/>
<af:goLink text="#{row.Actions}" id="gl1"
clientComponent="true" visible="false"/>
<af:selectBooleanRadio text="" id="sbr1"
valueChangeListener="#{backingBeanScope.DummyBean.checkselectbox}">
<af:clientListener method="selectCheckBox" type="click"/>
</af:selectBooleanRadio>
</af:column>
<af:forEach items="#{backingBeanScope.DummyBean.columnNames}" end="#{backingBeanScope.DummyBean.columnSize}"
var="name" begin="1">
<af:column sortable="false" sortProperty="#{name}"
rowHeader="unstyled" headerText="#{name}"
inlineStyle="width:100px;" id="c1">
<af:activeOutputText value="#{row[name]}" id="aot1" escape="false">
</af:activeOutputText>
<!-- <af:outputFormatted value="#{row[name]}" id="of1"/>-->
<!--<af:goLink text="goLink 1" id="gl1"
destination="#{row.bindings.url.inputvalue}"/>-->
</af:column>
</af:forEach>
</af:table>
</af:form>
</af:document>
</f:view>
</jsp:root>
Thanks in advance

Similar Messages

  • How can i compress a file to QT for web use?

    how can i compress a file to QT for web use?

    Shane, in the ProApps site, has a couple of applets (droplets?) that have the settings for doing just that.
    www.proapptips.com
    register (its free) and then head to the download section.
    cheers,
    x

  • How can I use my external hard drive for my iphoto instead of my mac book pro memory?

    i don't know if this question has been asked before: how can I use my external hard drive for my iphoto instead of my mac book pro memory? just like itunes all my song are save on my external hard drive. make sense?

    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • How can i use 2 different apple ids for imessage and facetime on 1 ipad?

    How can i use 2 different apple ids for imessage and facetime on 1 ipad?

    Do you mean can you use one Apple ID for FaceTime and one for iMessage? You should be able to. Or, do you mean, can you log into iMessage (or FaceTime) with two Apple IDs at once? No.

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • TS4002 how can i use a deferent apple id for iCloud on my iPhone?

    how can i use a deferent apple id for iCloud on my iPhone?

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you delete the existing account you will get an option to keep the iCloud data on your device.
    Before deleting the account, save any photo stream photos that you want to keep to your camera roll.

  • How can i use my files(apps,media) from my main os to another os in one mac?

    When yosemite was released, i was excited to install it but the problem is that i don't want my main os to be compromised because i think that yosemite is kinda new and it's only 10.0 version and Dota 2 does not work on Yosemite and it's very unstable according to Steam forums and many other sites. My main OSX is still mountain lion and the only os x version that makes dots 2 stable. What i did is I partitioned my hard drive into two one for my main os and one for yosemite. Now i have two os x on my macbook pro. Now the problem is i don't want to install Logic Pro X again and re-download many samples and stuff. When i open the finder in Yosemite, i can see my mountain lion disk where all my files located at? Can i use those files without copying it because my yosemite disk is only 40 gb and my projects and sample audios is 60 gb and open apps from that disk to yosemite? Thanks. Sorry for the long text. I just want to give you the background.

    If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing. They can also give you an estimate.
    Genius Bar Reservation US

  • How can I use my iPod as source for reinstalled iTunes?

    Hello @ all.
    Unfortunately I had to completely reinstall my system (WinXP Pro PC) and lost my media library!
    How can I use my iPod as a source to copy all my songs and settings (incl. covers, aso) to iTunes?
    iPod: 30GBs Video iPod
    iTunes Version: 7.0.2.16
    can u guys help me with that?
    Thanks very much!

    The transfer of purchased content to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPodCopy Mac and Windows Versions
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    CopyPod Windows Only
    If your iPod is set to update automatically take care when connecting back to your computer and an empty iTunes. You will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Check the "manually manage music and videos" box in Summary then press the Apply button. Don't uncheck Sync Music it will be unchecked by default when you choose the manual setting: Managing content manually on iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync again. I would also advise that you get yourself an external hard drive and back your stuff up in case you have problems again. External drives are comparatively inexpensive these days and you can get loads of storage for a reasonable outlay.

  • HT4314 I have a game under one account, now I have an Itunes card under a different account, how can I use the $$$ in the card for the game I'm playing, I need to purchase different items for my game.

    I have been playing a game for a while under an account, now I have an Itunes card under a different account and would like to use that $$$ to purchase items for my game, but it doesn't let me because the game was downloaded under the original account. How can I use the $$$ in my new account?

    same here but i cant purchase a movie or anything

  • I only have 16 gb iphone but 64 gb ipad - how can i use extra storage on icloud for all my music on itunes

    My Iphone 4 has only  16 GB storage (used 13,5 GB)  but my  ipad has 64 GB  -  I have bought ekstra 15 GB  storage on icloud but I can'nt seem to use it for all my downloaded/bought music .
    how can i use the extra storage on icloud for all my music on itunes ?

    Welcome to the Apple Community.
    You can't use iCloud storage for your music, take a look at these alternatives.
    iTunes Match
    iTunes in the Cloud

  • How can I use my Mac OS X for the next time

    Dear sir,
    Please, I need your help about Mac OS X and how can I use the OS for the next time I mean when I'm going to format my computer or to use for the another computer.
    By the way... I already installed the Mac OS X to my MacBook Pro so please I'm waiting for you advice.
    Mohammed Hussein

    Hi,
    He bought the iMac two years after mine.
    Would his Mac still be under warranty? It sounds like it is about only a year old and so may be still eligible for phone support, though that may depend on having nearby access to an Apple Tech support.
    He could get a replacement disk sent to him as well. The cost,  I don't know.
    Your disk would probably work, but you don't need to burn one; just use yours. If you are in two locations, then it would be better for Apple to mail him a replacement disk for his particular Mac.

  • HT2020 How can I use ichat or face time for video conference to window computer?

    How can I use Ichat or factime to video conference remote famiy members who have windows computers?

    HI,
    You can use iChat to Video to PCs that are using the AIM for PC app or have the Trillian App with the Pro Add-on (which costs).
    As you list OS 10.7.4 you may find you can find a copy of the Messages Beta  (technically it was withdrawn before the release date for Mountain Lion that has the Full version)
    Although this Users Tip was written a while ago it may also pay to read it
    https://discussions.apple.com/thread/1968438?threadID=1968438  (It is not always as smooth as it should be)
    9:32 PM      Wednesday; August 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can I use my iphone as modem for my mac?

    How Can I use my iphone 4 as modem for my mac-pro in areas where there is not Wi-Fi

    If your cell phone carrier supports tethering with the iPhone, you need to sign up for a tethering plan with your carrier first.
    http://support.apple.com/kb/HT3574

  • How can i use( API_SEMBPS_REFRESH) in my developement for Clearing Buffer

    Hi All,
    How can i clear the buffer values ??
    How can i use( API_SEMBPS_REFRESH) in Web interface builder?
    Any Inputs on this....
    Thanks,
    Edited by: NnSiri Siri on Oct 28, 2008 3:40 PM
    Edited by: NnSiri Siri on Oct 28, 2008 8:58 PM
    Edited by: NnSiri Siri on Oct 28, 2008 8:59 PM

    Hi,
    There are two ways to achieve this depending on how you want to refersh the web interface:
    1. Anytime during the execution of web interface:
        a. Create a Z function module and insert a call to API_SEMBPS_REFRESH there.
        b. Then create a planning function exit and in Function Module field call your Z function module.
        c. Create a button in Web Interface and call the planning function exit on that button.
        This will call the refresh function whenever user will click on that button.
    2. At the load of Web interface:
       a. Create a Z class in SE24 by copying the class CL_UPWB_BSP_APPL as super class.(This
           class is default application class for all web interfaces).
       b. Redfine LOAD method of your custom class and add call to FM API_SEMBPS_REFRESH.
       c. In your web interface, set the property 'Application Class' to your custom application class.
       This will call the refresh function every time you start the web interface.
    If you will add your code in auto generated BSP application for your Web interface you have to re-write the logic in BSP application everytime you make change in your web interface and generates it in Web Interface builder. Because the system overwrites the BSP application everytime the Web interface is generated.
    Regards,
    Deepti
    Edited by: Siegfried Szameitat on Nov 3, 2008 10:06 AM
    deleted request for points.

  • How can I use a file in flash cs6 that I made in flash cs5.5 air for android

    I have made an app in in air for android in flash cs5.5 air for android, and I want to edit it in cs6 and play it in cs6.
    But if I put Ctrl+Enter I got an error: createWin process failed with error 2: system couldn't find the file. I think the problem is that I'am using air for android 2.6 version in flash cs5.5 and version 3.2 in flash cs6. I have searched the web and found out that you can add older air versions using the sdk manager and I have tried it but first I get the error that the version of the sdk I am trying to install is not valid and after some files that I added to the sdk folder I get this error:Only SDK higher than version 3.4.2540 may be added.
    I there a possible way to update the air for android for an fla or apk? Or how can I let my originally file work fine in flash cs6??

    system couldn't find the file
    If you can´t get a more specific hint why your project can´t compile then I can think of some reasons theis error might occur
    1.You had files included besides the swf, like videos, audio files, xml files, that are not present in the place air expects them to be
    2.somewhere in your createWin functions there is a class import needed that isn`t present in 3.2 anymore, for example some classes or functions from classes that were valid in 2.6 are not any more in 3.2
    3. to achieve better eror logging, allow for debugging in the publishing options and see what specific lines in your code throw the error
    4.any air app needs a cert file, this needs to be created once, if you migrated to e new system it might be you never created that file which air expects to even begin the compiling process
    once you isolate the problem, report back

Maybe you are looking for

  • MaxDB on Linux

    Dear all, I am a beginner in maxdb.I have installed maxdb(7.5) on Linux and its running remotely. I connect through my current Windows XP machine. I have the DBMGUI and SQL studio running in my local Win-XP machine and I want to connect to the databa

  • CTAS taking a lot of time

    Hi, I am trying to use CTAS to create a copy of the table which is on remote server. My select statement is fetching data.But when i am trying to use CTAS it is just taking too long.The script is been running for 5 hrs and still the table is not crea

  • Where can I download an older version of Pages for iOD 5.1.1?

    Where can I download an older version of Pages for iOS 5.1.1?

  • Itunes won't open only comes up tell microsoft of problem

    l've installed itunes but whenever i try to open it l get the messeage itunes has encountered a problem and needs to shut tell microsoft about the problem. the error report contains the file C:DOCUME~1\MARTIN~1\LOCALS~1\Temp\b3d6-appcompat.txt anyone

  • Delete Adjacent Records in DTP execuetion

    Hi , I just want to delete adjacent records while loading DTP ,since Start routine logic was incorporated. Adjacent Records are not getting deleted because of the comparison takes place in different data packages. Pls. let me know if u have some idea