Need help on how to load lov accoding to the value, select locale
HelloMy scenario is, I'll have two buttons. A single button for local (English) and another button for local (Nl) Dutch.
I have a table of database that hold the 2 columns, which are en and Nl.
I load this value of columns using a Lov
When I click on the en button, Lov sholud load according to valus in the database column in and when I click on Nl it touches sholud charge Lov according to the values in the Nl column.
I use a managed Session bean that allows to set the locale.
I've implemented this scenario, but I had some bad problems.
(1) my implemented method is not recommended as a best practice
(2) lov dosagesn can't change until I click a value to this topic.
In the query select lov, I used the link variable and value as adf.context.expressionEvaluator.evaluate('#{UserPreferences.language}')
It is not recommended, so please help me to do this with best practices.
Thank you.
in your bean writing managed code below
FacesContext facesContext = getFacesContext();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, "#{data." +"APPLICATION_MODULE_NAME" +".dataProvider}",Object.class);
AppModuleImpl am =(AppModuleImpl)valueExp.getValue(elContext); // here AppModuleImpl is the application module Impl class name
ViewObject myVO = am.findViewObject("VIEW_OBJECT_NAME");
myVO.setNamedWhereClauseParam("BIND_VARIABLE_NAME", "VALUE_OF_BINDVARIABLE");
myVO.executeQuery();
and test, hopefully this solves the problem :)
Tags: Java
Similar Questions
-
How to render components based on the value selected in a list of values
Hello
I created a form of the ADF. I have a drop down that is a list of values. I want to toggle certain fields based on the values selected in the menu drop-down. Could you please let me know how to do it in the ADF?
Kind regards
MurielleHello
It should work. It is important to note that in case you use a component selectOneChoice for category then the value returned by #{bindings. Category.inputValue}
is the index of the selected value in the list and not the value auto. To get the value, you must use ' #{bindings. " Category.attributeValue}"in the disabled state.If the problem is no display of code in your page to take a look.
Gabriel.
-
I need help, find how to install Windows Vista on a HP Pavilion 6475z disk.
I need help, find how to install Windows Vista on a HP Pavilion 6475z disk. I had to replace the hard drive, so he has nothing about it and I added more ram, but I replace the cd player so it is not yet installed on the HP. So I was wondering if I could put the installation disc in my laptop cd/dvd and connect computers by usb ports and install it this way and if not how can I?
Thank youHello
You are welcome
If the CD/DVD drive in the works of PC Gateway, you can (at least temporarily) remove it and install it in the HP, you can run your recovery disc and reinstall Vista. Once everything is running on the HP, you can always remove the CD/DVD drive and reinstall it in the gateway PC if you wish.
Kind regards
DP - K
-
I need help on how to audio output when I go. I ticked the box at the bottom, but when I go to view my video on quicktime, it does not play audio.
GUYS, I GOT IT. AND THE SOLUTION IS WAYYYYY WITH JUST A RENDERING. So after countless time I spent trying to make it, I found a way that me really happy that my old rendering has not worked. All you have to do is download adobe media encoder and BAM your gold. I make it in h.264 that i couldt using the old rendering and now it works fine.
-
I need help on how to remove Adobe CS3 on windows 7
I need help on how to remove Adobe CS3 on windows 7. Have to use Adobe Creative Tool, but it does not work. He invites a message that 'the Installer database is corrupt". I need your help. Thank you
Error «...» The Installer database is corrupt... "When you install Adobe Creative Suite 3 products
-
Need help on how to use the conference room in adobe connect
I need help on how to use the conference room in adobe connect?
I would recommend you start here: Getting Started with Adobe Connect - Adobe Connect user community
-
I'm trying to connect on Apple TV. It keeps generating a 6-digit verification code, sent to another device. I need a 4 digit or need to know how to make a space on the verification code entry screen
Read this noting the last two paragraphs:
For Apple ID - Apple Support two-factor authentication
You can try to add on your suggested such password or disable the service and then connect.
-
I had for some time adobe flash player - I need to know how to enable adobe to install the latest update?
the version is 21.0.0
browser - safari
Mac OS x
-
Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH! Need help. Tried to stop CC and remove the 1.0 file already and who does not work for me. What can I do?
If lr crashes repeatedly, reset preferences. http://www.lightroomforums.NET/showthread.php?14226-resetting-%28or-trashing-%29-the-light file-Preferences-room
-
Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.
Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.
I was wondering if I saved a layer somewhere and set it as a default value.
If you group the layers, you will be left with a single layer, thus spreading your concern.
Suggest that you do the following:
- Make sure you have the latest drivers for your printers
- Reset the default preferences.
Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.
Items nearby and let regenerate the file.
-
I need help to remove Adobe Acrobat. I got the free trial version, and it has expired. I thought I deleted the program, but I get this message "before you proceed you must first launch Adobe Acrobat and accept the end user license agreement." I thought I deleted the program, so I can't seem to be able to throw. I have a MacBook Pro OS x help, please.
This message comes from Adobe Reader; Launch the Reader application and accept the EULA.
-
How to change the values of a from the values selected in another LOV LOV
Hello
I have a requirement in the ADF where there are two LOVs. The values in the second LOV based on the values that I selected in the 1st LOV should change dynamically.
In addition, the 1st LOV accepts 3 values for each value that I select, a different query is executed to fill the 2nd LOV.
I have a gross thought I can use 3 different read only view objects containing these 3 queries. And according to the value that I select in the 1st LOV I can run the object matching the view of the bean to support. But my doubt is how to link the results of this query that is executed to fill the 2nd LOV.
Thanks in advance.
Published by: 886591 on September 21, 2011 04:48Kouadio,
All your queries based on the table? If Yes, you can use a variable binding for the lov attribute relative to the query to run on the LOV child.
If they are based on different tables, you can create 3 different lovs for the child attribute and select what lov seem based on the parent attribute.
Here are a few examples.
http://andrejusb.blogspot.com/2011/03/ADF-BC-dependent-lov-11g-ps2ps3-bug-and.html
http://andrejusb.blogspot.com/2008/12/Groovy-multiple-lovs-per-attribute-in.html
Arun-
-
Canoe open attachment how to "link control panel Association the value of Set?
Canoe open attachment how to "link control panel Association the value of Set?
Hello
something, you should also know, is that you need the program installed on your computer where the attachment file extension refers too
and read this to set the file association
How do I... Change file extension associations in Windows Vista?
-
I'm not very good with computers and need help. My 4 LR and LR 5 upgrade are on the disc, but do not use my new MacBook Pro drive. How can I load LR on my new computer? Also, how to make photos of LR on my old computer to the new computer?
You can download Lightroom via the link below. If you just want to install the upgrade version 5 that you don't need to install first - 4 you probably just provide the serial number for this, when you activate 5.
Lightroom - all versions
Windows
http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh
With regard to transfer photos goes, which is something you could get help in the forum of Photoshop Lightroom . But you could wait here and see if anyone knows, or you could search Google and probably know how.
-
I love Thunder Bird on my computer fixed in my den... the calendar is the best also. I have a table "Samsung Notebook" and I downloaded TB on it, but it asks me for a soft use TB. I downloaded one but, of course, it is not working properly and I'm not this letter with my tablet or my computer so I need help. I want my tablet look the same as my computer when I open it to get my email!
1 million thanks!
Sorry to break it to you, but Thunderbird does not work on Android.
Android tablets have a Gmail client built in and an another e-mail client called "Email". You might have to do with or for the two of them.
I have not yet found a mail Android app that works like Thunderbird. For example, the ability to drag and drop a message from one account to the other just seems not to be there.
Maybe you are looking for
-
Software security password required to enter your E-mail address
I have 2 separate computers. One works fine with Thunderbird and Firefox Messaging.The other go back constantly with a blue square of password required.Inside the square, he said: Please enter the password for the software security device.Then a squa
-
I'm impossible to connect, and you do not receive the password email when I ask.
I'm trying to connect with the stored user name and password, but they do not work. I tried new password sent by e-mail, 5 or 6 times in the last 24 hours, but I never received an email.
-
Keyboard on Satellite P750 errors
I have exactly the same behavior on my keyboard like on this thread:http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=70358 Already happened a few weeks ago and disappeared mysteriously. Mapping of the flaws of the keys (on my ke
-
Hi, I have a problem with the system restore... I have norton and it said 'protected '... He began by having a problem with syncing my iPhone, a msg says unknow error 13019... I downloaded the latest version of iTune and I AST even msg of error 13019
-
whenever I try to install the windows update I get error 00000646, the error message
Ideas: You have problems with programs Recent changes to your computer What you have already tried to solve the problem Remember - this is a public forum so never post private information such as numbers of mail or telephone!