Reverse action and onclick on the commandButton.

Hi, my question is about that:

In jspx.
< af:commandButton text = 'Report' blocking = 'false '.
action = "#{myOwnBean.report_Action} '"
onclick = "#{myOwnBean.chainWeb}" / >

I want to execute the first action, then onclick to the second place.

Is there a way to do this? And, how does that happen?
Please, if you could give me some examples.


Thank you very much.


In myOwnBean. It changes the 'chainWeb', the string may vary, that's why I want to do the opposite.

private String chainWeb;

public void report_Action() {}
In this place, I want to create a set of dynamic URLS.
chainWeb = "window.open (------" http://www.google.com------"", \"window1\", \"width=120,height=300,scrollbars=NO\");window.open (-"http://www.oracle.com \", \"window2\", \"width=120,height=300,scrollbars=NO\");parent.parent.close();) " » ;
}

What of it? :


Then in the bean that? :

public MyOwnBean {

  private String chainWeb;

  public String getChainWeb() {
    chainWeb = "window.open(\"http://www.google.com\" , \"window1\" , \"width=120,height=300,scrollbars=NO\");window.open(\"http://www.oracle.com\" , \"window2\" , \"width=120,height=300,scrollbars=NO\");parent.parent.close();"
    // or alternatively call any other bean code to work out what you want to set chainWeb to.
    return chainWeb;
  }
}

... in this way the work done by your original method of report_action is done in the getChainWeb method. Is - adapted?

As you know the action attribute of the commandButton control is designed for the return of the navigation rules such as calculated on the server after the user submits the page to the environments. In turn onclick is an event of JavaScript client-side and will always in the browser until the action attribute is processed by the mid range.

Another problem I see is that the EL expression for the JavaScript onclick attribute is evaluated when the page is retrieved, not when the user onclicks. So if you want that the result of chainWeb depend on the values on the current screen, you will need to know how to extract them in your JavaScript's DOM, distinctly to be recovered by a bean or a binding component.

CM.

Tags: Java

Similar Questions

  • Accidentally took possession of the C: drive, I am able to come back on this action and give back the property to the SYSTEM?

    I took possession of some files in CMD when I accidentally took possession of the car, I installed Windows (c), and I panicked. is it possible to return to this action?

    Thank you
    EDIT: I also accidentally made the terrible mistake of appropriating of System32. I hope that the information you give me to C: will be equally useful for this!

    Hello

    I suggest to follow the steps provided and check if it helps.

    (a) click the drive you want to delete the property to and then click Properties.

    (b) click on the Security tab, click Advanced, and then click the owner tab.

    (c) click on edit. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (d) click on the name of the user or group, and then click Remove.

    More information: What to know before applying permissions to a file or a folder: http://windows.microsoft.com/en-US/windows7/What-to-know-before-applying-permissions-to-a-file-or-folder

    Hope this information is useful.

  • Action and ActionListener cause the page reload?

    I have a long page where the user must scroll down to go through all the components of the page. on the page, I have a button when the user presses it the value of an text box will be added to the table of the ADF , where the user can see in the page.

    Problem is when the press user, the button of the page reloads. It's when the button is pressed, the control passes the top of the page. I tried to use the Action and ActionListener (each one separately) and again, I get the same result.

    Any ideas to prohibit control to the beginning of the page, because it is not easy to use.

    I use Jdeveloper 11.1.2.3 with the technology of the ADF and JSF pages

    Hello

    tried to set partialSubmit of the button to true or use toolbarButton (including the default value for partialSubmit = true)?

  • locking and unlocking of the actions and workflows in the IDE

    First thing, it is as it seems in 5.1 that the small lock icon no longer appears when you lock a workflow.  Can someone confirm for me that it is a known issue?

    Second, is there an easy way to lock or unlock all the workflow or action in a folder?  At the moment, it seems that I have to type each individually.  I thought to write a workflow to do this, but if someone has it already or if Miss me just something obvious I'd appreciate getting clued in.

    Thank you!

    Paul

    You can put the workflow in a package, and then on the package, you have the option of ' Lock/Unlock All '.

  • Shared copy actions and objects with the new settings

    Hi all

    I have a problem with objects and actions. Here's the scenario:

    I have a sentence where some parts are written in an informal way. The user is to type the words in the sentence, he or she thinks are informal, and they are highlighted. The user can click a button "submit" at any time, and if all the correct words have been highlighted, they receive a correct message.

    To achieve this, I have given every word click two boxes (one for in and out), a highlight box and have created common actions for the latter to work.

    When I copy the Group (the two click boxes and highlight box), actions are copied too. However, the parameters of joint actions continue to point to the original and not a copy. So my question is...

    Is it possible to copy objects and their associated common actions and include the settings of the shared actions change to match the newly copied objects?

    See you soon

    Lewis Carey

    Hi HaridossR1234

    Thank you for your e-mail. The solution was indeed that the Captivate version was not updated (it was 7.0.0 something, as opposed to 7.0.1).) After updating, the problem no longer occurs. Thank you very much for your help!

    See you soon

    Lewis

  • index of reverse key and quarrels in the CARS

    Hi guys,.

    I have read that reverse key indexes distribute values in an index and are particularly useful in the CARS, because if the index is on a streak, and many insertions occur, the RAC instances will access the block sheet of index on the side right, and so with the help of a key index reverse, we can stop this argument if we use a reverse key index. Fair enough, makes sense.

    But, not all of these RAC instances also would be access to the same block of data in the base table when they insert? Wouldn't we have serious claim here?

    Thank you

    I think ask Justin to create a forum of OracleGuy777. :-)

    OracleGuy777 wrote:

    Not sure why you want to involve PK or PK increment as a condition, or restrict the other thing that happens in the block.

    No, I was not limiting nothing happens. I said just that if nothing else happens in the block because I wanted to understand if my understanding of the data block and locking are correct if the only thing thaty now goes it is that someone is inserting a line, and the PK is a sequence that increases of 1 every time an insert that is happening.

    Good. As much as I know there no functional change in a block-table perspective if the inserts imply the PK. And the fact that the PK increments of 1 is totally out of reach and out of place.

    >

    then the number of inserts that can happen at a given time is determined by MAXTRANS (and assume that the block has enough space for the ITL to develop). This is true for the index data block and the block of data in table, and the transactions that the insert will get an exclusive table lock on line. My understanding is correct?

    Close enough. Suggest that you only consider http://dbaspot.com/forums/database-discussions/35673-initrans-maxtrans.html

    I went and read that (with great difficulty, why is every post published about 10 times?!). Yes, good article, but still don't know why my understanding is close enough, and that little, I was wrong.

    (Each is re-posted because the thread came from Usenet newsgroups, and entries are independent in time.) Is that although later than aggregators put them into one long page. Ideally you would just read the last entry and e able to catch up on the full thread. "These are the days.)

    Perhaps a better discussion is at http://advait.wordpress.com/2008/06/16/interested-transaction-list-itl/

    According to my interpretation, that the link contains a logic error (fairly common) in that it involves the ITL points to the line that is locked. This is not correct - the points of the line back to the location that contains the ITL. (In fact the line directory doesn't, the line itself.) If more than one line may be blocked by the same transaction as 'lines' in the directory headers point to the same LAUGHS.

    I discovered many years ago that nothing is absolute in Oracle. When I say "this is true" or "it's like that", someone pointed out a Variant that proves me wrong. Things change version, by patch, by design, by function, by segment type, etc. So when I say "this is close", I guess that's a theory of decent work, but there may be exceptions. If you intend to learn all variants, you'll learn some time loooooong.

    In older versions of Oracle, MAXTRANS was usually set quite low and the DBA would adjust that to manage the space-vs-locking problems that allude you to. In its latest versions, MAXTRANS is simply pegged to 255, especailly when you use SAMS and is officially deprecated.

    The entire concept of ITL and line lock is subtly different in the index, however. Insertion of a row in a table can affect a large number of different lines through the index. How much should be locked when a split block that happens? Or when inserting in the middle of a beach? I think that Richard Foote has some info on that as well.

  • Reverse writing and samples of the whole line?

    Is there a way to reverse a drafting? For example, you choose "cheesecake" for the redaction. Typically, this would cause the entire page to be normal, but with the redacted cheesecake. Is there a way to have Acrobat reverse this writing so that the entire page is written with the exception of cheesecake?

    Furthermore, is it possible, at the location of a word for the redaction, to redact the whole line that it's on, instead of just the word you found?

    Thank you!

    There is none of the built-in controls do, however, I think that the two things are possible using scripts. The first is much more complicated to implement, however, because there may be several instances of the word on the page to build annotations so that they leave these words but remove everything else is quite difficult. The latter functionality is simpler, but it would still need a custom script to write.

  • How do I record an action and save under the new name of file - automatically?

    SO, I want to create a droplet that converts a batch of photos in b & W and records them in a different folder with the suffix "bw".

    Is this possible?

    Thank you

    I use the version 2.3.0 and you can get it from Russel Brown Scripts page Page of Scripts.

    By the way, you are probably trying to use the file > Scripts > Image Processor. Image Processor Pro will be available from the file > Automate menu and tools > Dr. Brown Services > Image Processor Pro in Adobe Bridge. Watch the video tutorial on the page that opens when you click the link above. Video and download link are available under: Adobe Photoshop CS5 panels & Actions/CS6/CC.

  • Is there anyway to reverse the update of the Action point status to the element of the MOTHER company

    Instead of having two articles about the Meeting Minutes BP for the status of the line item and the other for the status of the Action which is quite confuse end users, is the Action the Action element anyway to reverse day point BP to the State of MA Business billing without having two articles.

    Please notify.

    Mohamed Hussein

    Hi Mohamed/Samba,

    There is a solution to remove confusion for the end user. It requires a cool little General admin config, but it works beautifully from a point of view of the end-user. It's a little complicated to describe, but I'll do my best.

    -Create a new SPD DD called, for example, ActionItemStatus. You must create a corresponding list of values in the list of DD pp, for example: pending, complete, canceled.

    -Then you create 1 again for each status value (all configured with the new "ActionItemStatus" DD, in my example here it is 3 News: ifAIStatusPending, ifAIStatusComplete, ifAIStatusCanceled)

    -You add the 3 news to the single instance BP (information on the project)

    -On the BP MM change you the former status of action point TO use the old DD for the new "ActionItemStatus" DD

    -On the BP THE remove you the former status of point of Action IN the form of HAVE it (does not need more)

    -You add the 3 news to higher forms HAVE (hidden block) and then configure to auto-pop of the single instance BP "project information".

    -Now the thing: you config have all 3 of Reverse-auto-pop line MM point "Action point rank" OF using the new conditional RAP, RAP that is as follows:

    -RAP OF "ifAIStatusPending" when superior HAVE form status = pending

    -RAP OF "ifAIStatusComplete" when superior HAVE form status = Complete

    -RAP OF "ifAIStatusCanceled" when superior HAVE form status = canceled

    - As an end user you then go to the "Project information" unique instance BP and set each of the news as follows: ifAIStatusPending = 'Pending', ifAIStatusComplete = 'Complete', ifAIStatusCanceled is "Cancel".

    -Create a new record of MM, what should happen now:

    -new record MM created

    -user adds a line item I (HAVE status is empty at this time)

    -l' user completes the form MM and "send."

    -a new record of I is created automatically by the MM section

    -l' higher State of form HAVE the folder is "pending".

    -l' user sees only the registration State (which is queued)

    -the 3 news in the hidden AI top shape block get AP with the values of the instance unique record of BP

    -Because the higher status form is = pending the "ifAIStatusPending" on the hidden block will automatically be RAP it's value to the MM line item

    -L' user responsible for completing the action item done their work, and then sets HAVE 'action' to complete and "send."

    -L' higher State of form HAVE past from "pending" to "complete."

    -Because the higher status form is = full of 'ifAIStatusComplete' on the hidden block will automatically be RAP it's value to the MM line item

    Upshot

    -l' end user sees only a single State in the superior form of AI that is automatically defined according to workflow actions/measures

    -l' end user sees only a single State on the MM line which also automatically changes the status to HAVE it (with RAP)

    As I said, there is an overload of config admin, but there is a lot of value from an end-user perspective, then sometimes worth the pain of the admin! In addition, it is difficult to describe, so if you can not follow my explanation please let me know and I'll try to clarify.

    Good luck.

    Ian

  • Twitter: Your account may not perform this action. Please, refresh the page and try again.

    Since the update to Firefox 41.0.2 I couldn't use Twitter.com. When I try to tweet, favorite, or retweet the following error occurs. Your account may be able to perform this action. Please, refresh the page and try again. There are a couple of other users who have the same problem, but it was tinkered with Mozilla and the other pending.

    It started with the update to 41.0.2 and twitter works in all other browsers, but not Mozilla.

    Here's this other thread with the DIY: Impossible of Retweet, tweet or articles favorite on Twitter, even when I refresh the page.

    I think there must be a setting or a question Add on. Your extensions look pretty standard, so I'm leaning towards a parameter of the problem. You could test as follows:

    By default, Windows hides the .js extension. To make sure that the following steps work, you have to disable this feature, at least temporarily. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Pause while Firefox finishing its cleanup, then rename prefs.js to something like prefs.old.

    Launch Firefox back up again and it must use the default settings (for example, integrated home page). If you need to restore your previous session windows and tabs, go ahead and select restore previous Session from the history menu.

    Twitter works best? If so, we could try to understand the precise adjustment at fault or you could rebuild your settings. Or you can undo the change by renaming the new prefs.js to prefs.txt and rename prefs.old back to prefs.js (with Firefox closed, as you did before) and understand it through a little trial and error.

  • Cannot create bookmarks. New install, have disabled all extensions, tried safe mode and reset to the default values. Any help of any of these actions.

    Hello.

    Statement of the problem is very simple: Firefox won't create bookmarks.

    New installation with Mint 17. New generation of PC with Asus A58M-A/USB3 motherboard, AMD A4 6300 processor 4 gig memory stick.

    All Mint and Firefox packages are up to date.

    A new profile has been created for the test, Firefox has been started in safemode, purged and re-installed and reset to the default values. None of these actions have contributed.

    Here is the info according to the troubleshooting information in Firefox

    The application databases

    Name: Firefox
    Version: 33.0
    User Agent: Mozilla/5.0 (X 11; Ubuntu; Linux x86_64; RV:33.0) Gecko/20100101 Firefox/33.0
    Windows multiprocessing: 0/1

    Reports of incidents for the last 3 days

    All Crash reports

    Extensions

    Name: Mint search Enhancer
    Version: 1.0
    Enabled: true
    ID: [email protected]

    Name: elegant
    Version: 1.0.7
    Enabled: true
    ID: {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}

    Graphics

    Description of the adapter: X.Org - Gallium 0.4 on AMD ARUBA
    Device ID: Gallium 0.4 on AMD ARUBA
    Driver version: 3.0 Mesa 10.1.3
    GPU accelerated Windows: 0/1 Basic
    Vendor ID: X.Org
    WebGL Renderer: X.Org - Gallium 0.4 on AMD ARUBA
    windowLayerManagerRemote: false
    AzureCanvasBackend: Cairo
    AzureContentBackend: Cairo
    AzureFallbackCanvasBackend: no
    AzureSkiaAccelerated: 0

    Important change preferences

    Browser.cache.Disk.Capacity: 358400
    Browser.cache.Disk.smart_size.first_run: false
    Browser.cache.frecency_experiment: 3
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20141013200257
    Browser.Startup.homepage_override.buildid: 20141013200257
    Browser.Startup.homepage_override.mstone: 33.0
    dom.mozApps.used: true
    extensions.lastAppVersion: 33.0
    Media.GMP - gmpopenh264.lastUpdate: 1416067922
    Media.GMP - gmpopenh264.version: 1.1
    Media.GMP - manager .lastCheck: 1416067922
    network.cookie.prefsMigrated: true
    places. History.expiration.transient_current_max_pages: 80569
    plugin.disable_full_page_plugin_for_types: application/pdf
    privacy.sanitize.migrateFx3Prefs: true

    Important preferences locked

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.7
    Version: 4.10.7

    NSS
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSSMIME
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSSSL
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSUTIL
    The expected minimum version: 3.17.1
    Version: 3.17.1

    Experimental features

    What other information can I give?

    Thank you.

    Jim

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • I accidentally moved my favorites on the menu. How can I undo this action and place bookmarks in the toolbar?

    Moved from my bookmarks toolbar by right-clicking on the icon and go to the menu. I would like to cancel this action and return the bookmarks on my toolbar.

    Try to use the personalization feature to drag it to the desired location.

    (Although you can right-click > move to the toolbar, you can use customize anyway because you probably don't want the double-button at the right end of the bar.)

    This article should lead you to it: Customize Firefox commands, buttons, and toolbars.

    Does it work?

  • Lenovo E440 microphones reversed? I think that the left and right are wrong

    Hi, I have E440 i5 8 GB Windows 10 to date and version of driver Conexant 20751 SmartAudio HD 8.66.16.50. I clicked on "update driver" and came to is that it is the most recent version.

    In the settings of the card, I enabled 'hear this device' and position normal when you look at the screen and your hands on the keyboard, if you type the right hole mic I can hear the left audio channel and vice versa for the left. Is this normal? Try with your laptop. I mean, it would be nice if you want to record something with the laptop back on what you want to record, but I think that most of the people in the land would the laptop screen making in the face of what they want to record, especially if they're going to use the camera and video.

    Looked at google but nothing came

    Add: I noticed in the properties: configuration of the Microphone, in the 'Options' tab advanced, there in the background 'Improve the Signal' and a checkbox "Enable sound improvements" WHICH I ALWAYS turn OFF and the sound quality is crisp, clear and loud, but the pickups are reversed, now if I select this check box, the sound is really bad miserable, for 256 Kbps 32 Kbps and its going to MONO. Any permeable I scratch, sound comes from the Center, so I would REALLY like that this "activate sound improvements" disabled people, hands down. PD: This option is not even reduce any type of noise, I know it's what he is for, I can still hear my strikes and miners of sounds equally with it enab/disab.

    Another thing is: it not "Conexant Audio Setup GUI" nowhere to be seen, I have looked everywhere in the PC, this audio driver just doesn't does not with any audio different installation "Dolby" read and option on the 'enable strengthening its' in the record.

    OK, updated, I thought I had won the battle, well, almost, rebooted again and reinstalled my pc the * beep * driver CONEXANT, but found another solution, followed this tutorial
    https://blogs.msdn.Microsoft.com/matthew_van_eerde/2010/08/23/troubleshooting-how-to-install-the-MIC...
    And recovered the "pilot High Definition" and I think that this time it will stay.
    One thing I noticed that the volume icon in the lower right missing, check list "hide icons" and "Volume", it turned on, I am appearing at this time, may try another reboot.

  • I've updated VIA / S3G UniChrome IGP plug-and-play reverse, but the update still no resolution 1600 x 1200 with the exception and others with the same ratio of 4 x 3.

    I've updated VIA / S3G UniChrome IGP plug-and-play reverse, but the update still no resolution 1600 x 1200 with the exception and others with the same ratio of 4 x 3. That did not help.

    Hello

    1. What version of Windows are you using?
    2. What is the brand and model of the computer?

    I suggest to run the patch from the following link and check the status of the issue.

    Hardware devices do not work or are not detected in Windows.

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    If the problem persists, I suggest you to send us more information to help you better.

  • my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    Hello
     
    (1) what version of Windows are you using?
    (2) remember to make changes to the computer before the question?
    (3) what browser do you use for Internet Radio?
    (4) what do you exactly mean by the loss of the webradio?
    (5) on which site you want to play the radio?
    (6) using WIndows Media Player to listen to Radio Online?
     
    See also a few following articles dealing on VoIP.
    Troubleshooting VoIP
    How IP phones connect to the network
     
    Get back to us with more information on the issue so that we can better help you to provide the resolution.

Maybe you are looking for

  • dedicated to the Pro iPad iOS?

    Hi, I bought an iPad Pro and I want to use it in my class (I'm a physics teacher). But I'm afraid that I will be prevented with iOS9 (for example with some applications like plot2 that no longer exists on the iPad or the use of animations flash for e

  • Problems as well HP Pavilion G6 1331sa motherboard

    Hi there I was wondering if someone can help me and I hope that everyone is well. I have HP Pavilion: Product name g6-1331sa product number A8M93EA microprocessor 1.6 GHZ AMD Quad - Core A8 - 3520 M APU with Radeon 6620 + 7450 M Dual Graphics micropr

  • Buy a new video graphics card

    I buy Hp Pavilion p6640d desktop and I want to buy a new video card for games of todays title games. Like Battlefield 3. I have no plans to replace my power supply 250w, for now. I've got a housing of extension for PCI x 16 - one that is available. I

  • : Instant Instant ink shipping address

    If I put more than one printer on my instant ink account, each printer has its own delivery address?

  • How to restore the devices with removable storage "missing icons

    HelloW sir This is krivy! for some time more I'm months local disk G not displaying don't not its icon (devices with removable storage) totally absent I m so depressed about this because I m unable to put my pen-drive & usb Cables & having so much wo