ADF Faces & BC: clicking too fast result to the problem of synchronization?

Hi all

We have a dynamic menu in our application (af:menuTabs in the upper part of the application). Whenever a click occurs under the tab insert us a record into a table of audit system via a ViewObject. We received a bug today report say when a user clicks too fast on the legs, they get an ORA-00001: unique constraint (SYS_APPS_LOG_PK) violation exception. Here's some code that I currently use for this insert operation:

{} public void insertAuditRecord (String moduleName)

ViewObject vo = getWSysAppsLogVo();
Line = vo.createRow ();

row.setAttribute ("AppsStartTime", getTimeStamp());
row.setAttribute ("UserName", getCurrentUser());
row.setAttribute ("ModuleName", moduleName);
getDBTransaction () .commit ();


}

This method is called via earphone commandlink's action.

Any advice on how to deal with this issue are much appreciated.

Thank you
Wes

Wes,

Use a sequence as the PK ;) I guess you get two clicks to the same timestamp value, and that you use the module users/name/timestamp as the pk.

You can also check to see if af:menuTabs have the 'blocking' attribute, you can define (to prevent double-click) - I'm not casual if they do.

John

Tags: Java

Similar Questions

  • ADF Faces 11R2 - taskflow region discount table in the parent page

    Hello world

    I use 11R2 ADF Faces and ADF Jésus BC.

    I work with a project that consist of a page with a table and a region that is a workflow. The region contains only one button.

    The behavior is: ' whenever the user presses the button in the region, then the table on the page must be re-queryed and updated on the page.

    I use the parent action in the workflow to specify the result of the container page and page flow routera then to execute the method = "executeWithParams" and then return to the page to redisplay the it.

    It seems that the query is actually underway, but the page is not refreshed.

    Any ideas how to do this in a standard way?

    Kind regards
    Jan

    Hello

    You set the property to change policy in the file table to PPR binding PageDef?

    Frank

  • Satellite L500 clicking on programs results in the "open with".

    I have a Satellite L500-1XL. When I click on a shortcut to the program, a box opens direct me "choose the program you want to open this file with. This happens with Internet Explorer, Office programs shortcuts to Web pages - everything. I can still connect to the internet and open your files through start menu and clicking on the computer.

    What is the result of a virus? I use AVG.

    Since when you noticed this problem? Have you noticed that night?
    Are you using the original recovery image Toshiba (installation of the OS)?

    What happens when you set a standard application for the opening of some document or file? It happens again and again?

  • DB too fast growth during the migration to AIX 12 c

    Hi all

    Please, help me understand why db growing so fast.

    I have an older server (Win2003) table with 11g, which contains 400 000 000 rows and receives 79 GB tablespace

    This table is sous-partitionnée and contains number and varchar2 datatypes (up to 50 bytes)

    After copying the data to the new table (which places on AIX 12 DB) with the same structure (I used INSERT + DBLINK) size of the table takes 118 GB!

    Please, help me to understand the reasons for this growth.

    Parameters of NLS Win2003 11g:

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    AIX 12 c NLS settings:

    CL8MSWIN1251 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    The reason is in default size of the measure. http://m.blog.ChinaUnix.net/uid-22948773-id-3873997.html

  • Title scrolls too fast

    I'm on first Elements 9 and adds a title scroll in the menu title. When I play back the frame, the title scrolls too fast to read the credits. I lengthed the timeline in the timeline using the tool of time Scretch, but this just adds virgins pictures before and after the scrolling credits. Credits not only stretching and slow, scrolling at the same speed in a sandwich between the beginning and end of the empty frames. Any thoughts?

    Welcome to the Forum.

    Steve you given the method of increasing the duration of the title - just a click + drag on the tail, to get the necessary length. This will also slow down the animation title predefined Roll.

    If it still does not give you what you want, about the speed of the roll of the title, I suggest to remove this preset (it is easy to apply, but limited in the control) and instead of using the fixed effect > Motion > Position and Keyframing, which sets the effect manually create the roll. Steve nicely covers Keyframing in his tutorials Keyframing base to Muvipix.com. I highly recommend to go through this tutorial several part, the concept of keyframes can be intimidating to everything first, but all time spent to get in tune with them, will pay dividends over time. Keyframes can be applied to most of the effects, all two fixed or added.

    With the movement > Keyframs Position, we can control the speed of the roll, can pause, if you wish, and can then animate to roll offscreeen. Several effects can be touch-ups on the same title too.

    Although easy to apply, I don't remember the last time I used one of the animation Presets, because key frames offer an infinite control.

    Good luck and let us know if you have any questions about keyframes, after reading the tutorials of Steve.

    Hunt

  • Multimedia center of Toshiba - sound to play too fast

    I recently bought a Toshiba Multimedia Center and installed on a server Dell T105 running Windows XP. The Dell server has not built into the sound card. I use the Dell machine as a server but run it as a normal computer for now.

    Playback of any type of sound or video (iTunes, Media Player, YouTube,...) starts too fast (about twice the speed). After 1-2 minutes playback slows and then runs at a normal speed.

    I uninstalled the software and Toshiba all files read correctly even if, of course, without the sound! After you have reinstalled the software, the problem appears again.

    Any suggestions would be much appreciated!

    Mate well done!
    Thanks for this post!

  • ADF faces - demo.war for 10 g - where can I download this package of demo?

    based on Oracle JDeveloper 10g (10.1.3) Documentation this package can be downloaded, but it is not more. Anyone know where I can download a copy?

    ...
    On the demonstration component and the ADF Faces Demo files The ADF Faces feature, the files are available in adf faces - demo.war, you can download from the Oracle Technology Network to

    http://www.Oracle.com/technology/tech/Java/JSF.html
    or,
    http://www.Oracle.com/technology/products/jdev/htdocs/partners/AddIns/Exchange/JSF/index.html
    ...


    Thank you

    http://download.Oracle.com/OTN/Java/JDeveloper/10135/ADF-faces-demo.war

  • ADF faces with the META tag

    Hi guys,.

    I am with a problem. I need to add the META tag in a JSF page that works with ADF Faces. How does do it?

    The tag I need to add is:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    Thank you very much

    http://technology.AMIS.nl/Blog/4631/ADF-11g-include-meta-data-tags-in-head-element-using-afdocument-and-metacontainer-facet

  • Request clarification on the ADF Faces + Trinity mix on the same page 11 g

    Hello

    I wonder if someone Oracle could indicate support of this. JDeveloper 11 g release notes contains a section titled, "ADF Faces and data visualizations," in which we find the following:

    The use of Apache MyFaces Trinidad components

    The mixture of Apache MyFaces Trinidad tr: tags with ADF Faces af: tags on the same page is not supported. You can mix the trh Trinidad: tags with ADF Faces AF: tags. However, there may be some problems of introduction to cross-browser with the help of the trh Trinidad: tags. As a best practice use the ADF Faces AF: layout tags as your first choice, unless the provision is not feasible using the trh Trinidad: tags.

    Does that mean that only DVT + Trinidad is not supported, or that someone else suggested that active af: tags are not taken in charge, or we cannot mix tr: and af: at all?

    Best,

    John

    John,

    the brief summary is that generally you are on the right side when you do not mix the components of the Trinity with ADF Faces RC components. It of IO to use components on separate pages, but not in a single page.

    The summary of average size is that not all components of Trinidad cause conflict with ADF Faces Rich client and that in fact the active components issue requests for PPR can cause serious problem. The integration of PPR is a major problem between the two batteries. If you use - for example trh:script to include JavaScript or CSS to your page ADF Faces, then it doesn't cause damage. Ditto for the layout to the Trinity labels that do not use PPR to disclose their children.

    Frank

    PS. : We had a bug filed against this and dev on both teams looked at how to solve the problem. It seems, however, that it would take major architectural changes

    Published by: Frank Nimphius on May 1st, 2009 12:58

  • How to develop an application using ADF Faces components main in JDev 11 g?

    Hello
    I just started to work with JDEV11g. Now, I have a question here.

    By default when we tried to create any Application in JDev 11 g libraries of tags are still showing only ADF Faces rich client components (11g). I want to use the ADF Faces Components (10.1.3) Core in the same application with addition to ADF Faces Rich Client components.

    How to develop a sample with ADF Faces Core components (10.1.3) application. What are the steps to follow in JDev 11 g?

    Please help me.

    Thank you
    -Afif

    Yes.

    Trinidad is all correct and documented components to use. They are almost exactly the same as the ADF Faces 10.1.3.x ones.

    John

  • CRNT open anything without right click logoff crnt must press the space bar to click on logoff

    CRNT open anything on the desktop or journal by clicking the mouse, I have to press tab to get it on the sign out button, then press the space bar

    Hi maxinew,

    1. don't you make changes before the show?
    2. What is the brand and model of mouse?

    Try these steps and check the result.
    Step 1: Check your desktop configuration
    a. double click on my computer.
    b. on the Tools menu, click Folder Options.
    c. under the general tab, make sure that double-click to open an item (single-click to select) is selected.
    d. click on apply to save your changes to settings.
    e. click ok and close the computer window.
    f. check if the problem persists.

    Step 2: Reset the buttons of the mouse on their values
    a. Click Start, point to settings and then click Control Panel.
    b. double-click mouse.
    c. on the tab buttons, click default settings. If the problem is only with a specific program, click on the settings button, and choose this program and then click default settings.
    Note: If the default settings is not available, all your work button is already defined for the default mode.
    d. click OK and check the result.

    See the problems with the mouse button or scroll the parameters

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to clear the selection on an ADF faces table?

    I thought I'd call setSelectedRowKeys (null) gives the desired result. However it is not. Can you think of a reason why it would not clear the selection? What should I do?

    Here's the specific scenario:

    I have a two ADF faces table tell A and B with a column each and both of them have simple lines and their rowSelection property is set to "single". Now the requirement is when a line is selected from A, it must clear all selections of B and vice versa. So I registered selectionListeners on the tables and the code that is running inside this method does the following for the table has not been selected :

    tablenNotSelected.setSelectedRowKeys (null);

    lets say, I click on a first line, then on a row of B. So far so good. So if I click on the A, the control won't to the SelectionListener method. I think that SelectionEvent isn't getting fired no doubt because the previous selection has not been erased.

    JDev version I use is JDEVADF_MAIN_GENERIC_121113.1351.6521

    What I'm missing here?

    Published by: 981525 on January 23, 2013 08:20

    try to add addPartialTarget (table) after you turn off the selection.

  • Why my video clips will run too fast when played on the monitor Panel?

    I posted my problem earlier today, but in re-reading it maybe I didn't explain well enough.

    My main question is: "why my video clips will run too fast when played on the monitor Panel.  It comes from occurring after I selected my media in the Panel tasks and placed in the correct order in the Timeline/timeline.  I knew something was wrong when I saw that the clips did not indicate their right length when it is displayed in the timeline (scope).  They have been compressed in only a few seconds, then the clips should have at least 5 minutes.  I ran the clips in the monitor and of course they ran too fast, with a lot of jerking movements.

    3 video clips, I'm doing a PAL HD video taken with my Nokia N8 mobile video camera. Here in mp4 format. This may be a problem?  Note that when I play these individual HD clips on my computer (Windows Media Player) they work perfectly.

    After that I put the clips in my project Panel (or before in the work space organize), I have perforned no modification or manipulation of clips.  They are in their original state.

    Simply too check that the clips do not appear to be compressed, I burned a DVD, the resulting video ran in a few seconds.

    Help would be greatly appreciated.

    What is your project Preset?

    If you right click on the items in the project Panel, then choose Properties, which is displayed for the FPS?

    It could be that the FPS flag is not picked up by the GER, and if this is the case, you should be able to fix this by choosing to interpret the film and by changing the FPS to 25.

    Hope that helps and good luck,

    Hunt

  • Click on the result of the search, window opens then immediately closed

    Firefox on my desktop with windows 8.1 recently don't right notwork. After that I did a google search and click on the found result, Firefox opens a new window (this is the option you selected), and then immediately closed. This only occurs for some of the results. Others are okay. Also, if I click with the right button on the search results and let Firefox opens a new window, it works very well. Firefox on my laptop works very well too. Not sure what had happened.
    I uninstalled Firefox and reinstalled. The result is the same. I hope someone can help.

    FredMcD said

    Disable AdBlock by using the arrow next to its icon. Load this web page.
    Click the arrow, and then select disable on... Then enable AdBlock.

    BTW, what is the web page? AB should only block ads.

    I tried your method. This works. The funny thing is that if I unlock the Google search page, it solved the problem. The page had problem was:
    https://search.Yahoo.com/YHS/search?p=Time+Warner+Cable & ei = UTF - 8 & hspart = Mozilla & hsimp = YHS-001

  • DVD player runs much too fast on satellite

    I have a problem with my disc DVD turns drive way too fast for me. I have Windows XP on my Toshiba Equium laptop.
    I've not found no way to set the CD / DVD speed spin.
    I don't know if there are none, but I've used this feature in another computer, and I'd really love to reduce speed.

    The problem with the speed is not a malfunction.
    I do not face the problem with Swedish, but the reader is also effective with CDs, its literally too powerful.
    The speed and the noise are crazy. If I touch the computer or table where computer represents, the shaking did hurt my hands.
    It's like a saw motor and also sounds a little strong.
    I do not have the game I play while the CD is running.

    I wonder the rugged my computer, while it has not broken up.

    Hello

    I don't know what model of laptop you have, but Toshiba has designed the small tool for such purposes. It is quiet acoustics. When you watch a DVD Movie or when you listen to music CDs, you can switch to silent mode and you will not hear the DVD player works.

    Visit the Toshiba support page and check if this tool is also available for your laptop model.

    Good bye

Maybe you are looking for

  • Organize Notes in a key sheet music

    How can I send specific to Bass or Treble key notes when you view the rating sheet music in Garage Band? I wish that the Bs two at the end of the key of f in the key of g. THX

  • Time capsule for iTunes and photos

    Hello I'm looking to use a time capsule as a library for my media such as iTunes, photos and videos, and have more than one mac to access all records.  Disks hard on Macs at home are getting clogged with this type of file and I would like to have bot

  • Slider w/flashing black screen VPCEA46FM

    The laptop is only 2 months and today on startup, I get a black screen with a blinking cursor. I tried twice recover VAIO care rescue and nothing. I tried to remove the RAM one at the time and substitute them and nothing still a black screen with cur

  • BES Extension plug-ins

    I noticed in the BES manual a section on "plug-ins" that could process the messages sent and received from devices.  I would like more information on how to implement such an extension, but I can't find any documentation.  He mentioned that these thi

  • I'm trying to update to LIghtroom 3 questions 6 - DOWNLOAD lightroom

    I bought lightroom upgrade 6 and have not been able to use yet... I could see the features and the new program once and never... I followed all the instructions and I'm not a frame to the computer so I am amazed... I downloaded several times and then