EL is returned by backing bean, but page does not recognize it as an EL
#applicationResources.propertiestest. Name = name
on the page
< af:intputText value = "#{bean.testName}" >
bean
{Bean #getTestName ()}
Return '#{msg['test.name']}";// msg is packaged in faces-config. XML
}
what the rendered page is to not translate this EL, but the direct output as string ' #{msg ['test.name']}. "
How could I accomplish this, to get the string "Name" to "test.name"?
Thank you.
Kevin.
Published by: kevin.feng on May 20, 2009 22:07
You may not use EL expressions directly in your Java bean code, you must use something like the following in your backing bean:
String myValue = (String)FacesContext.getCurrentInstance().getApplication().createValueBinding("#{msg}");
.. .the support in the example above, it's the expression returns a string, so the cast. If you can not get this to work, try to set it to:
String myValue = (String)FacesContext.getCurrentInstance().getApplication().createValueBinding("#{'fish'}");
.. .checking in the debugger that myValue decides to 'fish '. This will tell you that the resolver EL is working correctly, but there is something wrong with access of the words EL 'msg '.
See you soon,.
CM.
Tags: Java
Similar Questions
-
the Magic Mouse that came with my iMac to work but it does not recognize HP USB Wireless Mouse
the Magic Mouse that came with my iMac to work. I tried to use the HP USB mouse that I use with my MacBook Pro at home, but it does not recognize. I went into the settings but it only sees the mouse Magic Mouse. I tried configuring it as a PC mouse. How to recognize the USB of the computer mouse. I need a HP bluetooth mouse? I can't work with this mouse, it has a funny scroll for it. It is too fast or too slow. Help!
< published by host >
There is no reason why the iMac should not be able to use a USB mouse. With the mouse connected to the computer off the computer tower and turn it back on. Now it doesn't recognize the mouse? If this is not the case, try a SMC reset.
Reset the management system (SCM) controller on your Mac - Apple Support
-
I installed my USB drive but it does not recognize my imac. Only allows me to insert a disc. I'm on OS 10.6.8
The requirements for the SuperDrive Apple USB are:
The system configuration required
Compatible with the following computers:
MacBook Pro with the Retina display -
I have a desktop computer Windows 7 connected to an HP laserjet 4050N printer, when I try to print from a computer to Office XP, via the network, I wonder for an updated printer driver. I downloaded the latest print driver, but it does not recognize the file inf and again requests a current print driver. How can I get the XP desktop to print on the printer connected to the Windows 7 Desktop?
Hello
I suggest you to follow the steps mentioned below and check if it helps.
Method 1:
Printer in Windows problems:
http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
For your reference: How to use Windows XP to share a printer with other people on your network: http://technet.microsoft.com/en-us/library/bb457001.aspx
http://TechNet.Microsoft.com/en-us/library/bb456988.aspx
To connect to a printer on a network: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/print_connect_net_printerw.mspx?mfr=true
Hope this information is useful.
-
Silverlight is installed but netflix does not recognize
Silverlight is installed but netflix does not recognize
Hi BradJohnson,-You receive an error message related to the installation of Silverlight while trying to use Netflix?This problem may occur if previous installed Silverlight is broken.
I suggest to delete and reinstall Silverlight as below:
1 refer to the following article to completely erase the Silverlight:
2 clear the Temp folder
Clear files in the temp folder
============
1. click on the Start button, type C:\Windows\Temp, and then press ENTER.
2. press on Ctrl and A at the same time.
3. press SHIFT and delete at the same time.
4. click Yes to confirm.
3 enter the clean boot mode.
-
I tried to use the uSB cable, but Lightroom does not recognize the camera. My memory card has no images on it that I read somewhere that it can slow things down if she has no images on it
If you use Lightroom CC / 6 on a Mac OSX El Capitan you must update to the latest version of CC 2015.4 / 6.4. Problems with Nikon capture home has been fixed in the latest update, the lis below.
Lightroom Journal | Tips and advice straight from the Lightroom team.
-
I am trying to download an update of Lightroom, but it does not recognize my serial number.
Error "serial number is not valid for this product". Creative Suite
-
Hello - I have just brought a Panasonic Lumix FZ70 but CS5 does not recognize the raw file (.) RW2). but aid for raw files says that the Lumix FZ70 is supported. Help
Need of this camera camera raw 8.2 or later. Cannot use this CS5 version. You will need to download the 9.1 free dng converter and convert your images to DNG version CS5 can handle.
-
Ok. Firefox has been my main browser on my old laptop, but I ended up having to clean his hard drive a few weeks back.
Before that I erased the hard drive I saved a recovery key. He said not that I needed an account, just the key, that's literally all what I have. I do not have an account in firefox at the time. (Note: I'm sure I didn't have an account at least, because when I searched for an account on Firefox with only two emails that I use, he could not find an account under.)Now that I'm trying to recover my old data, I read that I must download a pre-29 Fireox version, so I had 28 mobile Firefox, but this shit insists that I need a Firefox account as well as the recovery key to collect the old data. It does not recognize my new account info (that I just did when I downloaded the latest version of Firefox before realizing it wouldn't able to sync), so now I'm here. With a synchronization apparently useless key, an account of unnecessary synchronization and all my old favorites and passwords lost at the age.
I can do, or should I give up?
Yes, the user name (the e-mail address used after that weaving was being abandoned), passwordand recovery key Aka Sync key were all needed in the old version of Sync.
In addition, when you have created the new account of Firefox for the new version of Sync, if you used the same email address your previous sync account was wiped out data during the conversion to the new account from Firefox.
-
JJust got a 5. Set up an alphanumeric password, but now it does not recognize the phone and I'm locked up. Tried to turn the switch off, wait and turn it back on but still locked. How can I fix?
The only way to fix it is to follow the instructions in this article to support that best apply to your situation:
Good luck
GB
-
CS5 I transferred to a new computer using ultimate PC mover. CS5 seems to start normally, I had to insert the serial number of my original CD. However, now, the program does not recognize files CR and Adobe bridge is not working properly. I get messages that CS5 needs to be updated, but updates fail. What should I do? Should I uninstall CS5 on the new computer, uninstall CS5 on the old computer by using the original CD, and then reinstall CS5 using the CD on the new computer?
I finally got to work. I had to load the files CR of adobe several times but it finally worked. Thanks for your help.
-
Just bought 11 elements, but it does not recognize my serial number when I install it.
I just bought 11 items from Best Buy. Got the serial number on the site after you have typed the redemption code. However, when you install it, it does not recognize the serial number. Attempted to call Adobe but they charge you to get an answer. Ridiculous! I tried this for 3 hours now. I need help! Why can't I talk to a live person?
You must contact Adobe Support by chat or phone when you have the serial number and activation problems.
Here are some links to help get in touch:
-
Discovered my Tech guy that my original copy of Windows XP Professional with SP2 had corrupted files on the CD, so he used a different copy.
I tried to activate and update; the update was very good, but I got the message on a copy of Windowsdid topic does not pass Genuine Windows Validation.
I tried to follow the instructions... while I can reactivate with my product key, but after the procedure:
Click Start, all programs, accessories, System Tools... There is no command "Activate Windows" to do.
original title: Product Activation
Sounds like a bad copy of windows... I would ask your tech guy how to activate it. Even if the computer is turned on, she would still have the windows command activate. It almost seems that it put on an illegal copy.
-
I run google ads on my site, but now the new version of firefox automatically blocks all ads in because my webiste is deemed dangerous, even if I have a google check that I can provide details if necessary.
My problem is that (relatively speaking) low percentage of visitors using firefox and adds monthly traffic, if I want to make my Green webiste failure...
I added the image from my Web site
Please note that Firefox does block all ads regular navigation. This can happen in only private browsing mode.
We have added a new feature in private browsing mode called tracking protection, designed to protect the privacy of the users by limiting the third follow-up. Given that the Google ads program uses third-party tracking, ads on your Web site can be blocked in private browsing mode.
At present, have no way around that because Google ads are the responsibility of the third party tracking category. Blocking ads is not because of your Web site certificate.
Note: Users can also block ads on your website by using a Firefox addon. Mozilla does not develop or maintain these addons.
-
I have firefox OS x 19 and silverlight 5.1 but firefox doesn't recognize, but silverlight works fine in safari what else can I do?
OK, not really sure what I did, in addition to dumping firefox and silverlight on my hard drive and reinstalling everything, but its not working.
Maybe you are looking for
-
By the tabs upwards there is a search function that I don't know if this is supposed to be there
I can't add a picture, but if I could I would could be more useful. He has an i next to him, and when you click on it says update search bar.
-
Satellite Pro A60: NTLDR is missing
Satellite Pro A60 tells me when I turn on that I have a ntldr is missing, press ctrl + alt + delete to restart.So I tried reinstalling and it will not let says me I file setupdd.sys could not be loaded error code is 4 Setup cannot continue to press a
-
Cannot run Real Player or download games from Vista updates this weekend
Since set windows to update this weeked - 3 automatic updates - now Real Player will not work and I can't download games. Any suggestions?
-
BlackBerry Smartphones loading very slowly via USB power supply laptop
When I use the wall charger, my fine storm costs. But if I connect it with the sync cable to my laptop - laptop is turned on with the BB Desktop software running (and I can confirm that I have a backup of the BB Desktop software then the drivers seem
-
HP Photosmart 2610 all in a spooler unable to connect
I'm unable to print, get the error unable to connect the print spooler.