Af:setActionListener not working properly with resource bundle value

Hi,
I am making a ADF-BC JSF project in which I have a commit button a page. On click of this Commit button I am setting some value (Status) through setActionListener. But as this value(Status) is subject to change, so I have stored it in the resource properties file and I'm assigning it from the resource properties file.
Now when I hardcode the value, it works properly but when I give it from the properties resource file it sets this value to NULL. Here is my code.
<af:commandButton text="Commit" action="some action”}>
<af:setActionListener to="#{bindings.SP11DeliveryWarrantView1WarrantStatus.inputValue}"
from="#{res['warrantstatus.InProcess']}"/>
</af:commandButton>
If I write #{'Some hardcoded value'} instead of #{res['warrantstatus.InProcess']}. It works fine. May I know what is wrong here or is it a bug?
Neeraj.

Hi,
I had the same problem and many thanks Frank - yes this does work. Just for clarity here is what I did with my implementation:
In my session level managed bean (SystemState) I added the relevant values from the bundle:
public class SystemState
  public static final String RESOURCE_BUNDLE = "gpl.viewcontroller.resources.UIResources" ;
  private HashMap<String,String> formTypeStatuses = new HashMap<String,String>() ;
  public SystemState()
    formTypeStatuses.put("live",JSFUtils.getResourceBundleValue("home.menu2.livestatus.value",RESOURCE_BUNDLE)) ;
    formTypeStatuses.put("archive",JSFUtils.getResourceBundleValue("home.menu2.archivestatus.value",RESOURCE_BUNDLE)) ;
    formTypeStatuses.put("all",JSFUtils.getResourceBundleValue("home.menu2.allstatuses.value",RESOURCE_BUNDLE)) ;
  public HashMap<String, String> getFormTypeStatuses()
    return formTypeStatuses;
}I then referenced these values from my jspx page:
            <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                            action="ExecuteWithParams1"
                            text="#{res['home.menu2.livestatus.text']}"
                            disabled="#{!bindings.ExecuteWithParams1.enabled}">
              <af:setActionListener from="#{session_system_state.formTypeStatuses.live}"
                                    to="#{requestScope.status}"/>
            </af:commandLink>
            <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                            action="ExecuteWithParams1"
                            text="#{res['home.menu2.archivestatus.text']}"
                            disabled="#{!bindings.ExecuteWithParams1.enabled}">
              <af:setActionListener from="#{session_system_state.formTypeStatuses.archive}"
                                    to="#{requestScope.status}"/>
            </af:commandLink>
            <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                            action="ExecuteWithParams1"
                            text="#{res['home.menu2.allstatuses.text']}"
                            disabled="#{!bindings.ExecuteWithParams1.enabled}">
              <af:setActionListener from="#{session_system_state.formTypeStatuses.all}"
                                    to="#{requestScope.status}"/>
            </af:commandLink>Dave

Similar Messages

  • Remote not working properly with Apple TV...sporadic fuctioning

    Hello,
    I have no idea what caused this to happen, but both my remotes (I have one from my MacBook Pro and one from my AppleTV) seem to not work properly with AppleTV. It sometimes works but it is extremely frustrating as it only registers about 1 out of every 10-20 clicks then continues to remember the previous clicks therefore making it essentially impossible to select the desired menu/item. Basically it just seems like it's out of control!
    I tested whether it was the remote or AppleTV that was causing the problem by running Front Row on my MacBook Pro and both remotes seem to navigate Front Row perfectly fine. They both act the same way with AppleTV, whether they are paired or not. It seems as though something happened with my AppleTV. This problem occurred randomly, with no specific cause I can think of.
    Please let me know if any of you have ever experienced this problem and what your solution was, if any!
    I have tried restoring to factory conditions, resetting settings, ran diagnostics, unplugged and replugged it, and nothing seems to be working!
    Oh, and I just replaced the battery on one and have tried swapping batteries, etc.
    HELP PLEASE!
    Thank you,
    Travis

    The menus have never been as responsive as they used to since the 2.0 update in my opinion - basically AppleTV seems to cache/buffer remote click if it is busy or perhaps waiting for something to stream from itunes, and when resources become available it suddenly executes all command rapidly which makes it behave wildly in menus.
    Usually happens I find after restarting the unit or if streaming drives have gone in to power saving modes and there's a delay while they wake up to feed the AppleTV.

  • HP computer will not work properly with an HP printer

    I have the following two items that I am trying to use together:
     - HP 23" TouchSmart Desktop, T6500 2.1GHz 4GB DDR3, 500GB HDD (Windows 7)
     - HP OfficeJet 6500 Multi-Function Printer/Scanner/Fax
    When I try to scan to Adobe Acrobat Professional 9.0, the document goes through the scanner, however the dialog box that I would expect (e.g. "Next Page" or "Done") never shows up.  At this point, the system is unresponsive with respect to Adobe or the printer.
    I suspect that it is waiting for the input from the dialog box that never showed up.  I tried to move the other windows to see if the dialog opened in the background, however I am not able to select any of them (they remain frozen).
    I contacted HP Support, only to have them tell me it must be the driver, and I have an "old" printer.  (I did not realize that a 9 month old printer was considered "old").  I have tried all of the possible drivers that are available (original disk, downloads, other downloads from HP tech support), none of these resolves the problem.
    In any case, they were unable to resolve the problem of having an HP computer work properly with an HP printer.  (The printing function seems to work, just very slowly).
    Has anyone else heard of this?  Is there a resolution?

    Update: I am still looking for a solution to this problem - the scanning portion of the Multi-function OfficeJet 6500 does not work properly with the HP TouchSmart computer.
    I have not been able to find anyone in HP that can tell me when (or if) new drivers will be released for this printer.
    I decided to investigate upgrading to a newer version of printer since HP told me the 9 month old printer I have was "obsolete", only to find that the identical printer is still on sale in many stores.  Hmmm....
    I feel like I am getting the run-around from HP.
    I have since tried several more driver/software combinations, but every time I have the same problem (as described in the previous post).
    If anyone has any ideas or suggestions, I would be most happy to hear them.
    Thank you.

  • Help, web cam is not working properly with win vista

    Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its
    lenovo easy capture 2.5...so if u cud suggest me anything...
    Moderator note; subject edited

    re-install drivers and try again. ( also easy capture )

  • Hi, My iPhone 4s does not work properly with the sound.

    Hi, My iPhone 4s does not work properly with the sound. It just ring. Any other app it doesn't make sound unless I have my headset or bluetooth. And it make me choose between "DOCK CONECTOR" or my "APPLE TV". Why? Or any sugestion plz

    Hi M3MB3R,
    Thanks for visiting Apple Support Communities.
    You may find the troubleshooting tips in this article helpful:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    Cheers,
    Jeremy

  • My iphone 5 does not work properly with Ford Sync,

    Hi, My iphone 5 does not work properly with Ford Sync, everytime I pair the phone, Ford sync navigation system freezes and does not work !
    Can someone help.

    Hi M3MB3R,
    Thanks for visiting Apple Support Communities.
    You may find the troubleshooting tips in this article helpful:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    Cheers,
    Jeremy

  • TS4002 Icloud Mail doet not work properly with PC since a few days!!!

    Icloud Mail doet not work properly with PC since a few days!!!

    If you can't solve your issue and no one in the community can help, contact support to speak with a tech support agent at (800) 631-3811.
    - Peter

  • My garage band will not work properly with new lion upgrade..HELP

    My garage band will not work properly with new lion upgrade..HELP
    I have tried to open old session i have done in garage band and many of the effects and instruments I have used will not show up. The system seems to have a bug.

    If the graphical user interface looks broken, that is quite often a problem of corrupted user preferences - have you tried to remove the preferences file, as described in the FAQ
    http://www.bulletsandbones.com/GB/FAQPages/OddBallProbs.html
    Here is again the short version:
    Quit GarageBand, if it is running.
    Open your User Library in the Finder. It is hidden in MacOS X Lion, so use the Finder's "Go" menu:
    Finder > GO    hold down the "Options" key, until the library appears in the menu, select it.
    In the window that opens, open the folder "Preferences" and remove the file:com.apple.garageband.plist and com.apple.garageband.plist.lockfile
    Then try again to run GarageBand and download the loops.
    The preferences file stores all you user settings that you set using the "Preferences" panel in GarageBand, also the layout of the GarageBand window and the location of your recent projects. You will have to enter these settings again after removing the file.
    Regards
    Léonie

  • Old Netscape console 4.2 not working properly with new Directory Server 5.2

    After successfully installing Messaging Server 5.2 and applying patch 2, the old Netscape Console doesn't work properly, I tried running the script which is given in the link
    http://docs.sun.com/source/816-6734-10/index.html
    which hobbles the server by creating a set of dummy jar files in order for the directory server console not making any changes on the messaging server. At first I got these messages:
    Failed to install a local copy of msgadmin52.jar or one of its supporting files: not a ZIP file (END header not found)
    I got the same message for these 2 files:
    admserv42.jar
    msgadmin52.jar
    After that I made real dummy jar files using a zero-length file I created with touch and I got these messages:
    class com.netscape.management.admser.AdminServer not found
    After that I erased all the files created by the script and I get these messages:
    failed to install a copy of admserv51.jar or one of its supporting files: null
    failed to install a copy of msgadmin.jar or one of its supporting files: msgadmin52.jar not found at http://192.168.10.205:5001/
    and for admserv42.jar I get the same message
    Does anyone have a clue on what to do next??
    thanks in advance
    Eduardo

    The thing is that the netscape console 4.5 won't work properly with messaging server 5.2, and the directory server console is not working properly for the directory server. I already know the limitations about these consoles since it is explained in the doc where the procedure of migrating from a 4.x directory server to 5.1. I

  • RFC adapter in XI 3.0 not working properly with BAPI in R/3 4.6C

    Here is the scenario.
    An XML file is received from our customer. This file contains purchase order information that is used to create a sales order in our SAP 4.6C system. Once the sales order is created an acknowledgement is generated and this is returned back to our customer in an XML format.  This scenario is working perfectly fine in our XI 2.0 system but is not working properly in our XI 3.0 test environment. Our custom function module in R/3 is a wrapper function that uses a standard SAP BAPI to create the sales order. Part of the function module does use the statement
    call function 'BAPI_TRANSACTION_COMMIT'
    The last thing the BAPI does is call another function module that using an RFC destination that will return and order acknowledgement.
    Here is what happens within XI and our SAP system.
    The XML file is received and mapped to our imported RFC. The RFC adapter is called and the information is passed onto SAP where our customer function module executed. The sales order is created within SAP without any problems and the second function module is called which references an RFC destination assigned to our XI 3.0 system. The information is sent back to XI and an appropriate file is created for our customer.  All seems to be working properly except that when the original RFC is sent from XI to SAP,  SAP creates a short dump stating
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:" Then it is put back into the que where 5 minutes later it executes again and trys to recreate the sales order in SAP. (again, this same function module executing from XI 2.0 works fine)
    I believe I have everything configured properly because the SAP side is being executed and I am successfully passing information back from SAP to XI. However the original function module in SAP is failing with the above error message. It appears that the original function module cannot communicate back with XI. I have had SAP looking at this issue and they have not been successful yet in solving this problem.
    Any ideas.
    Thanks,
    Jim d'Hulst

    Hi,
    I think the problem is with the send back of acknowledgement to XI. Does the DeliveryException state something about the sender agreement? I guess you are using a statement like below:
    CALL FUNCTION 'ZABCD'
    destination <tcp/ip destination>
    exporting
    input = ack.
    In that case, check whether the TCP/IP destination is working fine. Also, to be able to exchange message, the structure of the Function Module ZABCD needs to be identified as the sender in XI Configuration (Integration Directory).
    Also, check your config with the blog mentioned below:
    <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit">/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit</a>
    Regards,
    Amitabha

  • ITunes not working properly with HP running Vista home premier

    My Ipod touch works fine on my windows XP pro system but does not sync photos and podcasts from my other computer at home: new HP Multimedia system running Vista Home Premier. It goes through all the motions but will only add a few photos from a file and they are partially corrupt. Many times it won't add any selected photos. Same with podcasts, they won't sync to the ipod. Have tried various USB ports.

    well, it is easy. i just wish it to sync in a manner that i do not get frustrated with it. it just does not like to sync when i open up itunes on desktop to update apps when they have updates. i have got to revert to plugging in the phone and ipad for it to sync and update apps. if you read through the whole thing you would have found it out. all i am saying is that itunes 10.6.1 and ios 5.1 have bugs and issues that make it hard for a iphone and ipad user to sync and update apps. itunes is slow to open with windows 7 as well as i did not mention that before but i have mentioned it in my other forum posts.
    summary:
    itunes 10.6.1, is slow to open on windows 7,
    syncing ipad and iphone does not update without plugging them in.
    wifi sync is not working properly or as it should, it doesn't recognize phone and ipad unless plugged in.

  • IPhone 5 not working properly with  USB interface in Honda Accord.

    The iPhone 5 seems not to work properly with the USB interface in my 2012 Honda Accord. It says I have 500  songs when I only have 430, it skips over songs and freezes during play.

    I actually have a different problem. I am unable to play Pandora through my USB connection in my 2012 Honda Accord SE with my iPhone 5. I can't get map directions through my speakers or any sounds at all. Any idea if a fix will be available?

  • Gasbuddy web site not working properly with firefox, but working fine with explorer

    I've noticed when I load the web site gasbuddy.com, it is not working properly. It does load, just not performing like it should. When I try using gasbuddy.com on explorer 9, it works fine. I've already tried working in safe mode and that didn't solve the problem with gasbudy.com. Any suggestions as to how to fix the problem? I did do some prior investigating, and I'm very cautious about removing my cookies. It seems when I do that procedure, I lose too much info on certain web sites----weather.com, weatherunderground, etc. Just not sure how to remove cookies to solve a problem with out causing other problems? Thank you.

    I'm glad we were able to figure it out. Many sites are designed with stretchy columns that work with either full zoom or text-only zoom, but definitely not all of them.

  • My foxtab is not working properly with firefox 10.0.2.What can i do with it?

    I love having my foxtab. They're very convenient.My foxtab is not working properly since two days... it shows me only the background wallpaper with no tabs on them and even the option buttons does not work and help.Tried reinstalling both foxtab and f'irefox but still the same result...what should i do now?

    If you have download recently the latest Adobe, see the solution from '''Wolfcity''' :
    http://forums.mozillazine.org/viewtopic.php?p=11754893#p11754893
    see also : https://addons.mozilla.org/en-us/firefox/addon/foxtab/reviews/339812/
    thank you

  • Itunes on my 4s not working properly with docking stations

    Just in the last week itunes on my 4s won't work properly with my docking stations. I have one at home that is my alarm clock and while my phone will charge when my alarm goes off it will not play music, it just beeps which is what it does when the alarm goes off and the phone is not on it. If I press play on my the Itunes app itself it will play music. I have a station at work that I use daily as well, and same thing there, if I press the play button the station it won't work, but if press the play button on the app it will play. I believe it is an Itunes app issue because it will work as it is supposed to with the pandora appg. Anyone else having this type of issue? Any suggestions or tips are welcome.

    Get a magnifying glass and closely inspect your dock connector and clean any dirt, debris, dust bunnies, corrosion or anything else you find.

Maybe you are looking for

  • Error while mainatining packing material in POP1 transaction

    Hi, We are mainatined the 'determination of packing instructions'. I have created a VERP material and a FERT material. When i try to create packing instructions using POP1 transaction for this material i get an error message ' Material is not a packi

  • Weblogic 12 deployment failure for an EJB

    EJBAn ear deployment is failing while trying to deploy on Weblogic 12.1.1 whereas it is getting deployed on Weblogic 11 Unable to deploy EJB: /opt/app/bbnms/cim/domains/JEE/cim/WLS/cim/servers/sync_server1/tmp/_WL_user/ATT_Discovery_Service/yx56mr/nd

  • Missing control panel in illustrator CS6 on new macbook pro

    I just installed CS6 on a brand new macbook pro and the top control panel is missing. I am particularly interested in the dimensions of an object and x and y location. This is what my control panel looks like now - no alignment options, x/y locations

  • Hi this is just css to fix

    <style> .tabContentTabs a { background:none repeat scroll 0 0 #94BBD5; color:#FFFFFF; display:block; font-size:11px; font-weight:bold; padding:4px 22px; text-decoration:none; .tabContentTabs a:visited { background:none repeat scroll 0 0 #94BBD5; .tab

  • Moving Tool Presets From CS to CS3

    Hi, I have a bunch of custom tool presets I have made over the years in PS CS1. For example, I have several custom crop presets I have made (with different widths, heights, resolutions). I have now installed CS3 and am wondering if I can move them ov