Confirm the disconnection with different languages
Hi all
In my application, I have a login page (for check user and pass).
On the home page when I click on the logout button, it appears a popup to confirm if I really want to get out (connection redirection).
If I click Yes it redirects to login (and no changes are saved) if I click No, it remains on the home page (and closes the popup).
I made changes as a result of the https://technology.amis.nl/2012/08/10/implement-resource-bundles-for-adf-applications-in-a-database-table/ tutorial so that each user gets its own default language.
This works very well for the labels and buttons.
Now, I want to give the opportunity to the user to change the language selected at one he chooses in a LOV (available languages and translations are in DB), https://technology.amis.nl/2012/08/11/supporting-multiple-languages-in-adf-applications-backed-by-resource-bundles-and-p... has to do this for the labels and buttons.
However, with this popup application stop working and gives error 404 in the browser.
I discovered that the extended class of ViewHandler what is in faces-config. XML (under the tab presentation application), what is happening.
If I Don t declare it in faces - config.xml the popup is showned (but without changing the language is done - of course - in labels and buttons) with the default language.
I m using JDEV 12.1.3.0.0
I would like two things to work, if someone could help me I aprecciate it.
TKS a lot.
BTW, ADF Faces is based on Apache Trinidad, so if you replace ViewHandler expanding just javax.faces.application.ViewHandler this will make all the code that is provided by Trinidad ViewHandler.
Maybe you can find the class is used by default ViewHandler (with something like: FacesContext.getCurrentInstance () .getApplication () .getViewHandler () .getClass () .getName ()) and then extend this class.
Dario
Tags: Java
Similar Questions
-
Hello
I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.
Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).
My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...
Thank you very much.
My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used. Once you son upward, LabVIEW must then call Matlab and wait for it to run. I know from experience, the call of Matlab to run the script is SLOW. I also recommend to do the math in native LabVIEW.
-
Hi allI have the problem with my language of keyboard, the fact is I can't add or remove languages from keyboardWhen I press the keyboard button change that nothing happens, but in the event viewer I get the following messageThe failing application name: Rundll32.exe_shell32.dll, version: 6.1.7600.16385, time stamp: 0x4a5bc9e0Name of the failed module: input.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdf4fException code: 0xc0000005Offset: 0 x 0000000000003756ID of the process failed: 0xf5cStart time of application vulnerabilities: 0x01cd697d57b60837The failing application path: C:\Windows\system32\Rundll32.exePath of the failing module: C:\Windows\system32\input.dllReport ID: 95fbd586-d570-11e1-8bfb-c860006d193aCan someone help me with this? or maybe there's another way to change the keyboard languages? for example through registry?Thanks in advanceI HAVE Windows 7 x 64
Hello
I suggest to create a new user account and check.
Create a user account.
http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account
If the problem does not occur in the new user account, I suggest you to fix a corrupted user profile.
Fix a corrupted user profile.
http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile
-
How to read the data with different XML schemas within the unique connection?
- I have Oracle database 11g
- I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
- I have several tables, each has an XMLType column, all based on patterns.
- There are three XML schemas different registered in the DB
- Maybe I need to read the XML data in multiple tables.
- If all the XMLTypes have the same XML schema, there is no problem,
- If patterns are different, the second reading will throw BindXMLException.
- If I reset the connection between the readings of the XMLType column with different schemas, it works.
The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).
Code to get data from XMLType is the implementation of case study:
1 ResultSet resultSet = statement.executeQuery( sql ) ;
2 String result = null ;
3 while(resultSet.next()) {
4 SQLXML sqlxml = resultSet.getSQLXML(1) ;
5 result = sqlxml.getString() ;
6 sqlxml.free();
7 }
8 resultSet.close();
9 return result ;It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:
1 final Statement statement = connection.createStatement() ; 2 final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ; 3 ResultSet resultSet = statement.executeQuery( sql ) ; 4 String result = null ; 5 while(resultSet.next()) { 6 Blob blob = resultSet.getBlob( 1 ); 7 InputStream inputStream = blob.getBinaryStream(); 8 result = new Scanner( inputStream ).useDelimiter( "\\A" ).next(); 9 inputStream.close(); 10 blob.free(); 11 } 12 resultSet.close(); 13 statement.close(); 14 15 System.out.println( result ); 16 return result ; 17
Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?
-
Does anyone know how to make the site in different languages?
Does anyone know how to make the web in different languages? and how to make the menu appear on the master page in the target language?
Hello
You must create the page content in languages that you want and then bind using the options in the subfolder on root of the hosting platform.
More details:
http://forums.Adobe.com/message/6065652#6065652#6065652
For the menu, you need to create different masters, and then apply on the pages.
Thank you
Sanjit
-
To confirm the connection with Galaxy S4 all the time
Anyone else having to confirm the connection when you connect the headphones MW1 the S4 of the Galaxy?
Whenever I turn on bluetooth on the phone and put on the headphones, I have a popup that need to confirm the code, then press OK to connect.
I don't not required to proceed with my old bluetooth headset... No work around?
IM on stock firmware rom and one for MW1
Looks like the headset or phone removes the peeling.
Try to remove the synchronization from your phone, and then reset the headset (http://www.sonymobile.com/global-en/support/faq/smart-wireless-headset-pro/smart-wireless-headset-pr...). After that, add it back to the phone and see if it works.
If the problem persists, try to update the headset using a PC and Update Service: http://www.sonymobile.com/global-en/tools/update-service/. Also, make sure that your phone has the latest firmware.
What are your thoughts on this forum? Let us know by making this short film survey.
-
Confirm the site with Pinterest
Anyone was able to "confirm" their website with Pinterest? The instructions say add a string of html code in the head section, but I do not know how to enter the sectiPoinmon head. Thank you.
Hello
To check the site:
Copy the code from Pinterest
Open your homepage of Muse.
Select Page > Page Properties, or you can click on the thumbnail of the homepage in Plan view and select properties of the page from there.
Click the metadata tab.
Paste in the code of Pinterest.
Click OK.
Publish the site.
Return to Pinterest and finishe the rest of the verification procedure.
I hope this helps.
David
-
Find the space between the word with different endings and figures
Hello
I am trying to find a way to find spaces between the words and numbers.
I'm limited to only use the word "WORD" (capital or small capitals) with different endings like - ing s y and more (using \S+).
I wrote something like (? i) (? < = WORD\S +) \s(?=\d+) but this does not work due to some limitations of advanced search, I think?
Any suggestions?
Peter
On the other hand, I think that.
-
Stabilization of the project with different video settings
If I open the project with the settings for video 1080 p and then add 720 p video, how can I make stabilization for her? (When I opened a video with different sequence settings it me does not make stabilization)
Is it possible to work in a single sequence with different settings of the video?
Images that do not match the nest of parameter sequence first, then add the string.
-
Different users accessing the data with different rights
Hello
I just started with Oracle and I don't know if
This is the right way for what I was intending.
I want to allow access to the data (tables, views,...) to different users with different rights.
For example a user with select only the rights and another with select and insert rights.
Database Oracle 10 g Express Edition is.
Here are the steps I did:
-This user will be allowed to select only
create user UserSelectOnly...;
-This user will have select and insert privileges
create user UserSelectAndInsert...;
-This user only contains data
create user BaseDB...;
-creation of test in BaseDB data
create the table tdTest (...);
-definition of role in BaseDB for right to select
create the role RoleSelectOnly;
-granting SELECT privilege for RoleSelectOnly
Grant select on tdTest to RoleSelectOnly;
-select grant (role) to the user UserSelectOnly
grant RoleSelectOnly to UserSelectOnly;
-definition of role in BaseDB to select and insert privileges
create the role RoleSelectAndInsert;
-grant select and insert privilege for RoleSelectAndInsert
Grant select, insert on tdTest to RoleSelectAndInsert;
-grant select and insert (role) to the user UserSelectAndInsert
grant RoleSelectAndInsert to UserSelectAndInsert;
My problem is that the definition of user (BaseDB) works as a database.
Are there more effective ways in Oracle 10 g Express?
Thank you
WilfriedHello Wilfried and welcome to the forum.
First of all, it's a property that you have given time to review the security of the database.
My immediate comments:
You have 3 users:
-This user only contains data
create user BaseDB...;Very well, good thing. Use an administrative account/data owner.
You might consider locking when you do not have administrative tasks in the schema.-This user will be allowed to select only
create user UserSelectOnly...;-This user will have select and insert privileges
create user UserSelectAndInsert...;OK, but no need to take account of their privileges in the names. You could simply call their
SomeUser
AnotherUserYou have two roles
-definition of role in BaseDB for right to select
create the role RoleSelectOnly;-definition of role in BaseDB to select and insert privileges
create the role RoleSelectAndInsert;Seems ok, it's a good thing here for the description of privileges in the role itself.
Maybe I would call them something like
RoleSelect or RoleRead or BaseDBSelectRole
RoleInsert or RoleWrite or BaseDBUpdateRoleShould be updated (and DELETE), as well?
Another approach would be to separate between the tables.
For a group of tables, select, insert, update, delete are granted to a role.
For another group of tables, different privileges are granted to another role.
That is, there is no general answer, correct, it depends on your application.
Often the roles are used for ease of maintenance. In other words, if you have several users who need
the same set of privilege, these are maintained by a role.Maybe you don't want to use roles, but I like them.
But attention not onlySelect on all tables to a single role
Insert on every table to another role
Update on all tables to a third party role.Unless, of course, it gives meaning to your scenario.
My problem is that the definition of user (BaseDB) works as a database.
Are there more effective ways in Oracle 10 g Express?Not sure what you mean. Schema in Oracle and user are often used for the same thing.
In your case, BaseDB is the owner of (all) the tables, no problem.
As mentioned, you might choose to block the account.The main thing is, no application, or ad-hoc user should log in as BaseDB
And the users of your system should be exactly the privileges they need to do their jobs
nothing more, nothing less.Concerning
Peter -
Click on the boxes with different audio
Hello!
I use 5 Cp and I have problems with the audio. Button or box where to click must play an audio short or long after that is clicked on. In the text, I want to cover some words with boxes click with different sounds, students can click to hear the sounds. in the text, there may be a lot of words I want to cover with boxes to click. Is it possible to do? If Yes please let me know how.
Thank you
Ok. Who can be a little trickier. Normally a button or click box has a break point on the timeline and once you click on the object continues to play beyond its break point. This means that you get only a click... UNLESS... you change the Action when a click to be an advance Action that does two things. First of all, it does everything you want to take place (for example to read the audio file) and THEN he moves the read head to a point BEFORE the break point so that you get another possibility to click New.
Blog of Lilybiri has some good examples of this sort of thing: http://lilybiri.posterous.com/
You may encounter a problem where even after you have everything installed correctly the buttons stop working after a while. In this case your best recourse would be to use the Widgets event handler instead, these can transform any object into a clickable button screen. But even better, is that they give you preferences to disable continue and the pass/fail criteria reset after Action so that your users can click on your buttons as often they like to repeat actions, these useful widgets trial versions can be downloaded here.
-
Join the Grains with different facts
Hello
We have a requirement where we have two facts with different grains
DEPT_FACT - contains (Dept_Id, Dept_Name, recipes)
EMP_FACT - contains (Emp_Id, Dept_Name, Is_Current_Employee)
Some examples of data
DEPT_FACT
========
1 Sales_Dept 100 000
Manufacturing_Dept 2 200 000
EMP_FACT
========
Sales_Dept 100 Y
200 Sales_Dept Y
Sales_Dept 300 N
Manufacturing_Dept 400 N
500 Manufacturing_Dept Y
Manufacturing_Dept 600 N
Our requirement is to create an OBIEE report that shows the * "' recipes / number of current employees in Department BY Department" * "
The above example should demonstrate
Sales_Dept = > $ 50,000 (100 000 / 2 current employees)
Sales_Dept = > $ 200,000 (200 000 / 1 current employee)
Any suggestions on how this can be done?Hello
Try this code in your fx
Recipes/case when current_employee = 'y' then count end (emp_id by department_name)
Concerning
NGO
-
PowerCLI through vCenters with different languages
I'm having a problem with a PowerCLI script I wrote. The script runs for multiple vCenters, but the Guest.GuestFullName and the Config.GuestFullName are the spokesperson with? "s instead of spaces. Another Linux is also reported as the other (one in French).
Is there a way I can force the host to return values in English?
I found the resolution... It is:
$sessionManager = get-view-Id $global: DefaultVIServer.ExtensionData.Content.SessionManager
$sessionManager.SetLocale("en-US")
-
How to install apps from language English with different language operating system?
Dear experts,
I just bought Adobe CC and downloaded the installer CC.
I can not install Illustrator in English, because only it installs it automatically in Hungarian (it's the language of Windows 7).
I tried to put
Preferences / applications / settings / App Language International English and Illustrator reinstalled and updated, but
It is still in Hungarian.
Could you please help me how to uninstall and reinstall in English, please?
Thank you
Zoltan
wiamons.com
Hi Jeff,
Thanks for your reply. I have an active subscription - only just managed to solve the problem using the Adobe customer service.
Basically, I had to uninstall Illustrator and creative cloud Installer, then deleted all the files of Adobe and reinstalled the software.
Before you download anything, I had to set up the ' preferences/Apps/App language' to English International, because it automatically turns on the language of the operating system.
/ Zoltan
-
Satellite M50 does not start, go back to the screen with different start modes
My Satellite M50-130 does not start correctly. When you turn it on, it goes to a black DOS screen, saying: "We apologize for the inconvenience, but Windows did not start successfully. A recent hardware or software change might have caused this. "It offers me different start modes: Safe Mode, with networking and command prompt. Last good Configuration known; and start Windows normally.
I tried all the 5 options, gets the commissioning insofar as the Toshiba screen, but then with all the options, it returns to the initial screen offering the 5 modes of starting. Same thing happens when laptop works again.
The only recent software change, I've done was an update to Norton AntiVirus/Internet Security and I suspect that Norton is at least part of my problem, see history below. I know it's the Toshiba support site, but I tried Norton so many times without success, I gave up. Plus, I'm no expert at all, so I can't be sure that it is really the source of all my sorrows. All advice welcome!
The performance of my laptop has deteriorated seriously in the last two months. She is extremely slow, and cleaning of malware and unwanted General does not help. It began right after that I renewed the license of Norton last year and upgraded to the 2007 version. The worst downturns are always connected to direct upcoming Norton upgrade programs. I disabled the live upgrade, but programs always come to the top, and I can't stop them, a popup tells me that they are protected.
Wireless internet is also very capricious, even if another computer on the same network works fine.
During the last week, I had to relax a little internet security settings (from "moderate to severe" to "low to medium") because after an other update of Norton AntiVirus, I couldn't access to interactive Web sites.
It is perhaps a coincidence because Norton AntiVirus comes with updates at least twice a week - but what else could be the problem?My apologies for the long rant, I am grateful for all the advice!
Thank you
I have.Hello
I think the only way to make your system works correctly again is to restore with the cdrom of onboard catering. Simply manage to save your data from your hard drive (the best way would be to put your machine's HARD drive in a USB - HDD enclosure and copy important data on another computer), then wipe the system completely off you hdd.
After that, the system must run again...
Welcome them
Maybe you are looking for
-
How can I move all my firefox from an XP pc info to a new windows 7 PC sync does not
I have an old pc running windows XP (up to Date) and that you have just purchased a new Windows 7, I am trying to transfer all data from the FF from the old to the new. I have tried sync but keep we get an error, ' Sync has encountered an error durin
-
I bought the C open on eBay UK. I can see the list of my emails on the device, but when I click on the email address it gets stuck refreshing and I see no content of mail. I reset the phone and also to run an update of the software via the relevant a
-
Satellite A500 - 14 H - remote control does not work
I have a Satellite A500 - 14 H with the big remote control, but it doesn't work.Can someone help me?I installed the remote control manager, but no change. He still does not!
-
MAX launches multiple instances
I'll build a new test system. Primary data acquisition is a USB6221. Today, as I had the various contributions 'on-line', I noticed that even when I'm not with this camera I had MAX launches a new instance with the screen ' "for the open 6221. Any th
-
I received the following message and it's in my junk e-mail folder, and I don't know if I should respond? Dear account owner It is Windows Live Hotmail e-mail and we send it to you for your safety. Due to the anonymous registration of accounts that