Links methods and control action can be created dynamically?

Hello

I use JDeveloper 10.1.3.4 and have a .jspx like this page:
200902 | 200906
----------------------------------------------------------------------
 
     Total Number of Students    12066  
   Students Already Validated    11482
             Validated Online      974
      Validated Traditionally    10508
   Students Not Yet Validated      584
Statistics of five are five SELECT COUNT()... queries into five objects from view. These five different applications have one thing in common: a variable binding named SelectTerm. When you click on one of the links command on the menu bar, a method in the support bean is called to refresh the numbers on the page for the clicked half. In the bean to support code is like this:
public void refreshSummaryStats(String term) {
    ...

    studentsTotal.setNamedWhereClauseParam("SelectedTerm", term);
    studentsTotal.executeQuery();
        
    allValidatedTotal.setNamedWhereClauseParam("SelectedTerm", term);
    allValidatedTotal.executeQuery();

    //three more VO queries to execute.
    ...
}

public String commandLink1_action() {
    refreshSummaryStats("200902");
    return null;
}

public String commandLink2_action() {
    refreshSummaryStats("200906");
    return null;
}
The problem I have is that the number of links on the menu bar of the order is not known. It may be from one to three based on the data from another table. This table (WORDS) and the query like this:
TERM    AVAILABLE  SWITCHED
------  ---------  --------
200809  N          OFF
200902  Y          ON
200906  Y          ON
200909  Y          ON

SELECT Terms.TERM
FROM TERMS Terms
WHERE AVAILABLE = 'Y' AND SWITCHED = 'ON'
The data in the table CONDITIONS will change. SQL and the data above, three conditions will be selected, that's why dynamically three order links (200902 | 200906 | 200909) must be created on the menu bar, and action three methods should be created which will call refreshSummaryStats(), passage of different arguments. Is this possible? And how?

If this isn't right, or not the best approach, are there other ways to meet the obligation?

Thank you very much for help!


Newman

Tags: Java

Similar Questions

  • My Media Player is not let him come his pass. I tired FixIt and followed all the links there and I still can't get media player to read.

    My Media Player is not let him come his pass. I tired FixIt and followed all the links there and I still can't get media player to read suggestions?
    original title: Windows Audio recording

    Hello

    (1) what version of the Windows operating system is installed on your computer?

    (2) did you of recent changes to the computer before the show?

    (3) what is the file format of the files you are trying to play?

    (4) you get an error message?

    (5) you are able to hear the sound of Windows and other applications?

    (6) that Microsoft Fixit ran?

    You can try the following methods and check if it helps.

     

    Method 1: No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

     

    Method 2: Problems running Windows Media Player

    Open the troubleshooting Windows Media Player settings Troubleshooter by clicking the Start button, then Control Panel. In the search box, type Troubleshooting, and then click Troubleshooting. Click view all, and then click the Windows Media Player settings.

    See this link:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 3: Solving problems run Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

  • I had an accident and now I can't create a new file or folder.

    original title: new file or folder

    I had an accident and now I can't create a new file or folder. When I try the NEW space is marked void

    You can restore with this guide:

    Windows 7 - new context Menu - delete & restore default Menu items
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

  • I have a question comparing Dreamweaver and Muse.  Can I create a website with Muse, then learn Dreamweaver, and edit the site Web of Muse?  Or would I need to start over with a new Web site based on Dreamweaver?

    I have a question comparing Dreamweaver and Muse.  Can I create a website with Muse, then learn Dreamweaver, and edit the site Web of Muse?  Or would I need to start over with a new Web site based on Dreamweaver?

    I went the same route. I started to want to learn web design and the Muse is an excellent tool. The code it generates, however, not to use it in Dreamweaver. This could be done, I think this isn't worth it, even for a real Geek. Once you get to Muse you will find there are things missing, stuff, you want to do, but are just tough in Muse or you can buy a widget. It is possible in DW and you get which through subscription, so it makes sense. Me what I know now, I'll go directly to DW to learn, except if you want results right now. If you don't want something to cause I stay with Muse and maybe learn to animate CC to add some pizazz to the site. If you only want a simple layout and a couple supporting stick with Muse pages if you want a larger site use DW. Good luck and check out this page to Muse on Google Plus Adobe Muse for beginners - community - Google +...

  • I bought PDF merger batch and now I can't create a PDF file

    After the trial of the batch merge PDF that I bought the program, seized the key code and now I can't create a PDF file.  Whenever I try to use it, I get a notice to buy the program.

    Y at - it program that goes with the package?

    You must contact the creators of this app. He has absolutely no connection with Adobe, sorry.

  • Linked Clones and snapshots - which can be removed and when?

    Hello

    Sorry if this is a stupid question. I'm new to the linked clones.

    I was able to create clones related win2k8r2 invited.  Everything seems to work ok.  However, once a linked clone is created, is it still necessary to keep the parent snapshot?  That is to say, snapshot of the parent is necessary after related cloning?

    My env:

    VMware ESXi 4.1.0 build-433742

    VMware vSphere PowerCLI 4.1 build 332441 U1

    Thank you

    T

    It must be remembered that a clone is based on the parent machine and a snapshot that you see in the server view.  Multiple snapshots can be consolidated or "rolled up", but depends on the clone.  The parent can put off when the do not need to save on resources in your environment, because that's what the replica is for.  I do not agree with Andre and suggest that you keep the snapshot that you clones are configured to use, with the exception on the consolidation of old clichés.

  • If an illustrator file has links with spot colors, how can I create PDF files with process colors?

    My file has shades of tones that came with the linked logo, I could not find a way to convert those shades of colors quadri.

    I need to send PDF on a printer with only process colors, I know that the printer can choose to convert spot colors to process when printing with printer within Acrobat Panel, but since we do not print, we need to send files to print ready with process colors only.

    Is there a way or a script to make PDF file generated from Illustrator with process colors only?

    You could try object > flatten transparency and clear colors to preserve overprints and Spot.

    I set the preset high resolution and turn on the preview to see if something dramatic is going to happen.

    After that, you can check the file of color dot in the separations Preview Panel.

  • LR 4 and 4.1 can't create new folder manually when importing photos

    Windows 64, i7, 12 GB of RAM

    I don't seem able to create a new folder manually when importing photos.  It still works fine on the same PC with LR3.6.  Anyone else seeing this?  Thank you.

    nonewfolder.jpg

    Yes, I'm on Win7. I can get the result that you specify.  I right click on the folder name in LR and then choose "Create a new folder."  This shows the dialog box windows.  If I then right-click in the right pane and select new > folder, I get a new folder empty in the right pane and can type the name, then select this folder.  If, instead of click with the right button in the right pane, I try to type the name of the new folder in the bottom of the dialog box where it says "file:" then I get this error message. That's what I mean by saying that the process has changed slightly in the LR4.

  • Linking Keynote and Numbers graphic - can't find the answer

    Hi guys,.

    Can you please help me with the following situation.

    I'm doing a Keynote presentation.

    I copy and paste a table of numbers.

    When I make changes in the file numbers, I used to click the Refresh button on Keynote and the data would change as well.

    I do not find this option more, he went?

    If so, is there a way to bypass?

    Thank you very much!

    Ruben

    PD: I use the last version of Keynote, and Numbers (updated)

    Update the data in a file of numbers is not available in the current version of Keynote (6.6.3)

  • How can I create dynamic events for a group/list?

    Hey,.
    ATM I'm programming request a bit where I add items to my center pane.

    Simpyfied I got:

    -Center pane: here are the items that appear on right click in the lower pane. This component must serve something like a playground where you can drag and drop and associate items in the bottom pane
    -Low component: here, I got approximately 180 items which are quite equal. It's smth like a menu of items that you can use. I realized the java classes extended from a parent with v.f. dispute class.

    What I want:
    I want to create an event handler for EACH of the items 'menu' dynamically. Just sth like:
        for (int i = 0; i < basic_menu_list.size(); i++)
        {
          final Element el = hbox_bottom.getChildren().get(i);
          hbox_bottom.getChildren().get(i).setOnMouseClicked(new EventHandler<MouseEvent>()
          {
    
            public void handle(MouseEvent event)
            {
              if (event.isSecondaryButtonDown())
              {
                playground.add(el);
                redrawPlayground();
              }
            }
    
          });
        }
    But as I expected, it does not work...

    Now my question:
    How can I solve this problem? Y at - it no option to listen to all the elements of a group without hard-coding every single listener?

    Thanks for your help,
    Martin

    Hello user,.

    Why you expected you it wouldn't work?
    You have an example with the 'transition' apply on a bunch of circles in the Getting Started with JavaFx (http://download.oracle.com/javafx/2.0/get_started/jfxpub-get_started.htm)

    Here is a class of the basic example...

    import javafx.application.Application;
    
    import javafx.event.EventHandler;
    
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.VBox;
    
    import javafx.stage.Stage;
    
    public class HelloWorld extends Application {
    
        //~ ----------------------------------------------------------------------------------------------------------------
        //~ Methods
        //~ ----------------------------------------------------------------------------------------------------------------
    
        public static void main(String[] args) {
            // Entry point
            Application.launch(args);
        }
    
        @Override
        public void start(Stage mainStage) throws Exception {
    
            Pane pane = new Pane();
            Scene scene = new Scene(pane, 200, 200);
    
            VBox vBox = new VBox();
            TextBox input1 = new TextBox();
            TextBox input2 = new TextBox();
            vBox.getChildren().addAll(input1, input2);
    
            for (Node input : vBox.getChildren()) {
                input.setOnMouseClicked(new EventHandler() {
                        public void handle(MouseEvent event) {
                            System.out.println("test click");
                        }
                    });
            }
    
            pane.getChildren().add(vBox);
            mainStage.setScene(scene);
            mainStage.setVisible(true);
        }
    }
    

    Niculaiu

  • Can I create a snapshot and replace it with an image (or link another picture than the current)?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Can I create a snapshot and replace it with an image (or link another picture than the current photo)? Details: I made adjustments in iPhoto until now I want my (unpublished) masters, some RAWs JPEGs, create a snapshot and set the photo as the one to keep. If it is not possible, all of the recommendations (in addition the usual masters of backup and import changes).

    What I do is I have to assign some metadata down battery photo indicating of don't not to export the picture. Then, I use either a collection of smart to find the photo I want to and can not find the photos, I don't want and export all in the smart collection. or I use a Collection of post Smart, even once allows me to select only the pictures I want and not those I want.

    Of course you manually uncheck items you want to export, which work as well.

  • Capabilities with the right Protection and control of license

    Hi people,

    Just check that I understand the limits of a capabilities of clients with the power of fire with only the Protection/control.

    They will be

    1 / receive updates of poorly known ip addresses

    2 / receive updates for pre-treatment Snort rules - VDB files

    3 / be able to create manual URLS to perform a kind of Url rules in function

    4 / geolocation?

    They will not

    1 / have any possibility to send / receive file layout information

    2 / have any possibility to use Url categories

    3 / are free to set up rules to file based Malware

    Hi Evan,

    With a minimum of Protection and control, you can start the management of firepower. If the customer requires awareness of users according to a user with the license agent host Firesight will do as well as the Protection and control. You can create reports user based with the latter.

    Here's the URL and ports must be opened for the Firesight get necessary updates.

    SRU/VDB/Patch/all updates
    Ref 1 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...

    Ref 2 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...

    Here is the detailed information of the download server:

    Domain: support.sourcefire.com
    URL: https://support.sourcefire.com
    Port: 443/tcp (bidirectional)
    IP address: 50.19.123.95, 50.16.210.129

    Additional IP addresses that are also used by the support.sourcefire.com (in the method of Robin) are:

    54.221.210.248
    54.221.211.1
    54.221.212.60
    54.221.212.170
    54.221.212.241
    54.221.213.96
    54.221.213.209
    54.221.214.25
    54.221.214.81

    For amp
    Ref 1 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...
    Ref 2 > http://www.cisco.com/c/en/us/support/docs/security/sourcefire-amp-applia...
    Using port 443 (bidirectional)
    Or Legacy port 32137 (out)

    For the URL filtering
    Access to the 'database.brightcloud.com' and 'service2.brightcloud.com '.
    the IP address is dynamic
    Ref 1 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...

    Using port 443 (bidirectional)
    Using port 80 (incoming)

    For downloads of feed security intelligence:
    Access to intelligence.sourcefire.com
    The server uses the round robin scheme of IP address for the NLB, availability and fault tolerance. Therefore, IP addresses can change, and it is recommended that the firewall is configured with CNAME instead of an IP address.

    Ref 1 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...

    Ref 2 > http://www.cisco.com/c/en/us/support/docs/security/firesight-management-...

    Using port 443 (bidirectional)
    Using port 80 (incoming)

    Kindly correct brand and rate if this helps.

    Concerning

    Jetsy

  • How can I create a new all-white or all-black layer without changing the current foreground color or background?

    I need to create a filled layer of black or white.  I need to do WITHOUT changing the current foreground or background colors. So I can't use the bucket tool. The reason is that I have created these layers inside Action and the need the current colors remain unchanged.

    Here's the easiest way I found to date:

    1. Layer-> new fill layer-> solid color...  Select one of the choices other than 'None '.  In the color picker dialog box, place the code hex #fff and click OK
    2. Layer-> rasterize-> content fill
    3. Layer-> Layer Mask-> remove

    Can someone suggest a simpler method?

    You can simply create a new empty layer and then go to Edit > fill and choose either black or white

  • Cannot open any desktop shortcut, get this message: this file does not have a program associated with it for performing this action. Create an association in the folder option Control Panel &#62; can't open anything in the control panel.

    Cannot open any desktop shortcut, get this message: this file does not have a program associated with it for performing this action. Create an association in the folder option control panel > can't open anything in the control panel. And when you try to download patches get message saying "microsoft cannot find the file. Tried to copy the 'rundll32.exe' file in system32 but does not work, can not even open the clock! Help, please.

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    Here is the Vista Forums.

    See you soon

    Mick Murphy - Microsoft partner

  • Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Yes, you can do it using a script. This code should do the trick:

    this.movePage (this.numPages - 1, -1);

Maybe you are looking for

  • How to pin a site that is pinned offscreen?

    I installed my version of Firefox. In the latest version, I got a few pinned sites at the bottom of the new tab page. After the upgrade, one of the sites disappeared from the page. When I try to rearrange the sites on this subject, it appears hidden

  • several tabs do not auto load until the user clicks

    OK, I have a lot, a lot of tabs open all the time. forever. but in the end I have to restart the computer and use 'restore previous session', now, I do not want each tab to load, (50 videos youtube playing at the same time), so it's easier physically

  • Insert in the table, the table does not grow

    I'm currently learning Labview 2009. Problem: I have a chart 2D with 3 columns I initialize outside my main loop.  In my loop, I want to add new lines in the table as I collect the data.  I tried to use "Insert into array" but can't seem to get new l

  • Administrative password or power on

    I have a 650 HP laptop Windows 7 starter Recently, it shows a black information screen with a blue box asking an administrative password or power. Hault code is 70747362 Help please!

  • My upgrade to Vista has been slain in 2 of 9 hours. How it goes?

    See title... new to this!