Launch another Tabpage

Hi all,
I use Panel Tab one page .One tab page contain the Link button.When I click(mean Action) the Link button than Other tab will be active.
How Can I solved it.
Helping Hands are highly Encouraged.
Regards
Shekhar
Edited by: user12084240 on Nov 16, 2009 12:34 AM

bind your tab pabes in backing bean
add action listener method to your link to set tab disclosed
private RichShowDetailItem secondTab;
private RichShowDetailItem firstTab;
public void SelectSecondTab(ActionEvent actionEvent) {
this.firstTab.setDisclosed(false);
this.secondTab.setDisclosed(true);
}

Similar Messages

  • Button to launch another java file????

    Hi there,
    Was wondering if someone could help with the following:
    I have a button, which once clicked opens another java file, and am aving some difficulty in doing this.
    The file which has the button is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.util.*;
    class JFrameHolidayPlannerGUI extends JFrame
         //declare the variable using in here
         private JButton exit;
         private JButton clear;
         private JTextField t;
         private JLabel employeeId;
         private JTextField t2;
         private JLabel days;
         private JButton find;
         private JMenuItem close;
         private JMenu file;
         private JMenuBar menubar;
         private JButton add;
         private JPanel panel1;
              public JFrameHolidayPlannerGUI()
              //Set the title of the frame
              super("Company Holiday Tracking System");
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container contentPane = this.getContentPane();
              //Created a pane with four panels and null columns
              contentPane.setLayout(new GridLayout(4,0));
              JMenuBar menubar = new JMenuBar();
              setJMenuBar(menubar);
              JMenu file = new JMenu("file");
              JMenuItem open = new JMenuItem ("Open...");
              JMenuItem save = new JMenuItem("Save");
              JMenuItem close = new JMenuItem ("Close");
              JMenuItem print = new JMenuItem ("Print...");
              menubar.add(file);
              file.add(open);
              file.add(print);
              file.add(close);
              file.add(save);
              close.addActionListener(
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)// Define the action to take after user enters the name
                             //if (e.getSource() == exit)
                             System.exit(0);
              JPanel panel = new JPanel();
              panel.setLayout(new FlowLayout(FlowLayout.LEFT));
              contentPane.add(panel);
              JLabel employeeId = new JLabel("Please Enter the employeeId", JLabel.CENTER);
              final JTextField t = new JTextField(15);
              t.setToolTipText("Please Enter the employeeId");
              t.setEditable(true);
              t.setText("Enter employeeId in here");
              JButton find = new JButton("Search for a Record");
              find.setToolTipText("Click to search for an employee record");
              find.addActionListener(
                   new ActionListener()
                        public void actionPerformed (ActionEvent e)
                             System.out.println("time");
              panel.add(employeeId);
              panel.add(t);
              panel.add(find);
              contentPane.add(panel);
              JPanel p2 = new JPanel();
              p2.setLayout(new FlowLayout(FlowLayout.LEFT));
              contentPane.add(p2);
              days = new JLabel("How many days would you like?", JLabel.LEFT);
              final JTextField t2 = new JTextField(15);
              t2.setToolTipText("How manys days would you like?");
              t2.setEditable(true);
              t2.setText("Enter the numbers of days in here");
              JButton submit = new JButton ("SUBMIT");
              find.setToolTipText("Press enter to submit holiday request");
              submit.addActionListener(
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             JFrame = new JFrame();
                             frame.addWindowListener(new WindowAdapter() {
                                       public void windowClosing(WindowEvent e) {
                                            System.open();
              p2.add(days);
              p2.add(t2);
              p2.add(submit);
              contentPane.add(p2);
              JPanel panel1 = new JPanel();
              panel1.setLayout(new FlowLayout(FlowLayout.LEFT));
              contentPane.add(panel1);
              JButton save1 = new JButton("Save");
              save1.setToolTipText("Click to save");
              panel1.add(save1);
              exit = new JButton("Exit");
              exit.setToolTipText("Click to exit");
              panel1.add(exit);
              exit.addActionListener(
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)// Define the action to take after user enters the name
                             //if (e.getSource() == exit)
                             System.exit(0);
              JButton clear = new JButton("Clear");
              clear.setToolTipText("Click to clear the information");
              panel1.add(clear);
              clear.addActionListener(
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)// Define the action to take after user enters the name
                             t2.setText(" ");
                             t.setText(" ");
              add = new JButton("Add");
              add.setToolTipText("Click to add an employee");
              panel1.add(add);
              this.pack();
              this.setVisible(true);
         public static void main(String[] arg)
              JFrameHolidayPlannerGUI jf = new JFrameHolidayPlannerGUI();
    and the file that needs to be opened is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.util.*;
    class JFrameSubmitValidate extends JFrame
         private static String label = "Are you sure you want to Submit?";
              public JFrameSubmitValidate()
                   //Set the title of the frame
                   super("Vaidator");
                   this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   Container contentPane = this.getContentPane();
                   //Created a pane with four panels and null columns
                   contentPane.setLayout(new GridLayout(2,0));
                   JLabel validate = new JLabel(label);
                   JButton OK = new JButton("OK");
                   JPanel panel = new JPanel();
                   contentPane.add(validate);
                   contentPane.add(OK);
                   this.pack();
                   this.setVisible(true);
              public static void main(String[] arg)
                   JFrameSubmitValidate sv = new JFrameSubmitValidate();
    thanx for your time.
    kev.

    Similarly to this above discussion, I would like to know how to launch another java file by clicking a button "submit". Can you guys guide me based on the code i have shown below..?
    import java.awt.*;
    import java.awt.event.*;
    class MenuFrame extends Frame implements ActionListener
    Label login=new Label("Login ID :",Label.CENTER);
    TextField lname=new TextField(12);
    Label pass=new Label("Password :",Label.CENTER);
    TextField lpass=new TextField(10);
    Button submit=new Button("Submit");
    public MenuFrame(String title)
    super(title);
    setLayout(new FlowLayout());
    add(login);
    add(lname);
    add(pass);
    add(lpass);
    add(submit);
    submit.addActionListener(this);
    addWindowListener(new CloseWindow());
    public void actionPerformed(ActionEvent e)
    Object source=e.getSource();
    if(source == submit)
    lname.setText("w");
    lpass.setText("w");
    repaint();
    public static void main(String args[])
    MenuFrame m=new MenuFrame("Java Chat Application");
    m.setSize(200,200);
    m.show();
    class CloseWindow extends WindowAdapter{
    public void windowClosing(WindowEvent event){
    System.exit(0);

  • Trying to launch another profile, get: "Impossible to find the executable file. To fix this, set a valid path in the options window"

    When I try to launch another profile in firefox, I get this message: [JavaScript Application] Impossible to find the executable file. To fix this, set a valid path in the options window.

    Having this problem with FF21 Beta1, add-on version 1.5.0.2 on Win7 immediately after upgrading FF.
    I would try to make a shortcut to the other profile as you suggested, but I honestly don't even know where the file is, if its a separate config or another executable all together.

  • Adobe Air Application, launch Another Uninstall.exe on Uninstall of Air App

    Hello,
    how can i launch anothe uninstall.exe when my air application is about to be uninstalled?
    this is needed because the air package does not include the data that is needed by the application
    the application will be delivered on cd rom ... we have an uninstaller ready, but if the user chooses
    to deinstall the application through software->deinstall the data remains on the harddisk, which is not
    nice, and could be solved by simply run the provided uninstall.exe created during installaiton process
    any help is very appreciated!
    thx
    ck

    After futher investigation, I have isolated the line that causes the crash
    in the NetConnectionChannel constructor
    public function NetConnectionChannel(id:String = null, uri:String = null)
    super(id, uri);
    _nc = new NetConnection(); //ADL Crashes/Hangs on this line
    _nc.objectEncoding = ObjectEncoding.AMF3;
    _nc.client = this;
    Oddly, this only happens in the second adapter module instance that is created.
    And as stated above, this error is not thrown in the release AIR runtime.
    I'll update this thread if I discover any more details.

  • How to Start/Launch another WD application using a link.

    Hi, I've been trying to see if there's an official way that I can launch another WD application using a link from within an application where the applications are not in the same deployable object.
    P.S.  I've seen the other thread of how to do it when the applications are within the same deployable object.
    Thanks in advance as always,

    Hi Michael,
    of course it does, so the question should be:
    "Hey, how do it get the application URL of a WD application without hardcoding the server name, port or whatever?"
    This is simple:
       * Return is the application URL for the specified <code>deployableObjectPart</code> with appended 
       * URL parameters given by <code>urlParameters</code>. All key/value pairs in the map must
       * be of type java.lang.String.
       * @param deployableObjectPart a deployable object part representing a Web Dynpro application
       * @param urlParameters key/value pairs added as URL parameters; they must be of type String
       * @return the application URL for the specified <code>deployableObjectPart</code> with appended 
       * URL parameters given by <code>urlParameters</code>
       * @throws WDURLException if the URL couldn't be generated
       * @see com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator#getApplicationURL(WDDeployableObjectPart)
      public static String getApplicationURL(WDDeployableObjectPart deployableObjectPart, Map urlParameters) throws WDURLException {
        return AbstractManager
          .getServerPlatformImplementation()
          .getURLGeneratorFactory()
          .getURLGenerator()
          .getApplicationURL(deployableObjectPart, urlParameters);      
    or if you would like to get it load balanced:
       * Return is the workload balanced application URL for the specified <code>deployableObjectPart</code> with appended 
       * URL parameters given by <code>urlParameters</code>. All key/value pairs in the map must
       * be of type java.lang.String.
       * @param deployableObjectPart a deployable object part representing a Web Dynpro application
       * @param urlParameters key/value pairs added as URL parameters; they must be of type String
       * @return the workload balanced application URL for the specified
       * <code>deployableObjectPart</code> with appended URL parameters given by <code>urlParameters</code>
       * @throws WDURLException if the URL couldn't be generated
       * @see com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator#getWorkloadBalancedApplicationURL(WDDeployableObjectPart)
      public static String getWorkloadBalancedApplicationURL(WDDeployableObjectPart deployableObjectPart, Map urlParameters) throws WDURLException {
        return AbstractManager
          .getServerPlatformImplementation()
          .getURLGeneratorFactory()
          .getURLGenerator()
          .getWorkloadBalancedApplicationURL(deployableObjectPart, urlParameters);     
    Before i forget it to mention, these are two methods of the WDURLGenerator API. There are others where you don't have to specify the deployableObjectPart, you can use DPO name and name of application as parameters instead.
    Hope that helps.
    Best regards
    Stefan
    PS: This was my 2nd attempt, i hope i got you right now...

  • Button to launch another application

    what is js for launching another applicatoin?

    I found this:
    To add  script to open a user-specified PDF file
    Add the following script to the Open  button:
    app.openDoc(FilePath.rawValue);
    In the help section under "Opening an application from a form". This
    wouldn't seem to fit what you want for 2 reasons.
    1. The example requires the user to input the path of the file into
    a text field
    2. It doesn't work. I get a js error saying that security settings
    prevent access to that method
    If you can get around the security settings and the path to the
    application is a known quantity for your prospective users, I would
    think you could hard code in the path on the click event. The problem
    is getting around the security settings.
    addendum:
    I'm able to get another Adobe pdf to open with this script but so far
    nothing else.

  • Cannot launch another application in Mac OS X 10.8 using NSWorkspace launchApplicationAtURL:options:configuration:error

    I am launching another app using NSWorkspace launchApplicationAtURL:options:configuration:error.
    The app is owned by root, has permission: rwx r-x r-x, and owned by root:wheel.
    The app is also located in /Applications folder (e.g. /Application/MyApp.app).
    According to the following link under the "Launching Helpers with Launch Services" section:http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSan dboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html
    I should be able to launch my app because the following condition is met:
    The app is installed in /Applications and the app bundle and all contents are owned by root.
    When launching the app, I get the following error:
    "The application “MyApp” could not be launched because it is corrupt."
    "The operation couldn’t be completed. (OSStatus error -10827.)"
    Which is, according to the same link, the error when none of the conditions have been met.
    Note that I am using Mac OS X 10.8. In Mac OS X 10.7.5, I don't encounter the same issue.
    Note also that I am trying to run the app "MyApp" inside a sandboxed application.
    I tried using 2 builds of "MyApp", but in both builds, the issue can be replicated:
    Code-signed (using a self-signed certificate)
    Not code-signed
    What seems to be the problem? Am I missing something?

    Yes, but it also says in the apple documentation that:
    A sandboxed app is allowed to launch a helper using Launch Services if at least one of these conditions has been met
    Even if I did not pass the condition:
    Both the app and helper pass the Gatekeeper assessment. By default that means both are signed by the Mac App Store or with a Developer ID.
    I am pretty sure that the following condition has been met:
    The app is installed in /Applications and the app bundle and all contents are owned by root.

  • Launching another VM instance using Runtime.exec()

    Hi,
    I have two separate Swing applications, say A and B. I need to launch B from A using Runtime.exec() - essentially I am launching another VM instance from one VM. I am encountering strange problems - B's main window comes up, but GUI doesn't update; sometimes B comes up and GUI updates, but huge memory leaks happen. All the problems with B go away once A is shut down. It almost looks like both the instances of VM are sharing (or competing for) the event thread. Any comments will be of great help. Thanks.
    note: There is no problem launching B if A is a console java application (i.e. no Swing GUI).

    I have recently had the same problem, especially with the part where it seems like the two applications are sharing or competing for the same event thread. Sometimes my application B hangs like it is stuck waiting for an event. Sometimes I can get it to unhang by moving the app window around or minimizing it. If it does break free, all the queued events occur in rapid succession. Anybody have any clue what's going on here? It's pretty annoying.

  • I got a new computer and all applications were transferred to the new one. When I launch Acrobat 8 Professional, I get a warning that Acrobat cannot be launched now and that I need to launch another application e.g. Photoshop which is already launched. An

    I got a new computer and all applications were transferred from the old one. However, when I tried launching Acrobat 8 Professional, I get a message that says: "Adobe Acrobat 8 Professional cannot be opened at this time and I need to launch another application in the suite e.g.Photoshop" which is already launched. Is there some help around this?

    It appears that you have the CS. What new OS do you have. If it is Win 8.1, you may have to purchase a new version of Acrobat for that system. Folks have succeeded with AA 8.1 on Win 7, but I have not heard of any successful installs on Win 8.1. As for the issue you have with the new OS, you do have to follow the CS install process that is different than the stand-alone Acrobat (there are some posts that discuss the process if you search).

  • Help please:  Clicking an image to launch another web page?

    I have some images on a JSC created page. I'd like to give the user the ability to click on the images and have another web page brought up that shows a larger version of the image they clicked on.
    How can this be done?
    I know how to do it using a button that would sit under each image that would then launch another page that holds another image in a larger format, but is there a way to do this without using the button?
    The image does have the onclick JavaScript property, so I suppose that it could be used in some fashion, but I was thinking that maybe there was a way to integrate this with the page navigation built in to JSC (although looking at it I cannot see how).
    So, is it just a JavaScript thing needed (I'll try to look up how on the Internet if so) or is there a built in JSC way?
    Thanks!

    I have some images on a JSC created page. I'd liketo
    give the user the ability to click on the imagesand
    have another web page brought up that shows alarger
    version of the image they clicked on.
    How can this be done?
    I know how to do it using a button that would sit
    under each image that would then launch anotherpage
    that holds another image in a larger format, butis
    there a way to do this without using the button?
    The image does have the onclick JavaScriptproperty,
    so I suppose that it could be used in somefashion,
    but I was thinking that maybe there was a way to
    integrate this with the page navigation built into
    JSC (although looking at it I cannot see how).
    So, is it just a JavaScript thing needed (I'll tryto
    look up how on the Internet if so) or is there a
    built in JSC way?
    Thanks!
    Did you have a solution? You quoted my original message but didn't add anything to it.
    Anyway, I'm adding a few Duke Dollars to see if that will elicit some responses.
    Maybe this just cannot be done, and we need a new version (one that works with action events) of the HtmlGraphicImage that Creator provides.

  • Can an Advanced Action Launch another Advanced Action (or more than one)?

    Hi Everyone,
    I was wondering if an Advanced action could launch another Advanced Action?  I have a custom quiz results page and I want several different Advanced Actions to run when the learner enters the page.  Is this possible?
    paul...

    Of course Rick, but that is not really calling another action from an action, since you need to use another event.
    As Rod points out, preparing carefully advanced actions by choosing the right events, variables (reusing them) and the proper sequence for statements and decisions in advanced actions can solve a lot of situations. I have been trying to explain that in several blog posts. That was also the reason why I asked about more details concerning the user's situation. It is about an On Enter action. Until now I rarely had to use a workaround by navigating to a dummy slide to execute an advanced action over there using its slide events. All depends on planning and preparing.
    Lieve

  • Launch another app

    how to launch another app without url scheme?

    so, how to launch app not allowed url scheme from my app?
    thank you...

  • Launching another Swing application from existing one using Runtime.exec()

    Hi,
    I have two separate Swing applications, say A and B. I need to launch B from A using Runtime.exec() - essentially I am launching another VM instance from one VM. I am encountering strange problems - B's main window comes up, but GUI doesn't update; sometimes B comes up and GUI updates, but huge memory leaks happen. All the problems with B go away once A is shut down. It almost looks like both the instances of VM are sharing (or competing for) the event thread. Any comments will be of great help. Thanks.
    note: There is no problem launching B if A is a console java application (i.e. no Swing GUI).

    Do you have to have the second application running in a seperate VM (process)? If not completely neccesary, then you can just invoke the static main() of the second class. If the type of the second class isn't known untill run-time, you can use Reflection to invoke the method.
    Miguel

  • Launching another iOS AIR app from iOS AIR App

    Hi
    Ideally we would like to be able to launch another AIR iOS from our AIR iOS.  Is it possible to do this with AIR?  I understand you can do it natively.  We would also need to pass a few parameters: such as authentication ID and a URL.
    Potentially we need to be able to do this in Android too.
    Thanks
    Ben

    Yes. you can have following chunk in your infoAdditions
    <key>CFBundleURLTypes</key>
       <array>
        <dict>
         <key>CFBundleURLSchemes</key>
         <array>
          <string>appA</string>
         </array>
        </dict>
       </array>
    then from another AIR iOS application you can call navigateToURL("appA://thisDataWillBeReceivedByAppA")
    I have written an Article which lets AIR iOS applications implement Facebook Single Sign-On It uses the same techniques. You can follow http://www.saumitrabhave.com/2011/10/facebook-single-sign-on-for-air-ios.html for more details.
    Thanks,
    Saumitra

  • How can i launch another java application using Runtime class?

    I created a java process which invokes another java application called Launch as shown below,
    Process p=Runtime.getRuntime().exec("java -classpath=C:\\Program Files\\bin\\nettools\\ui\\updates Launch");
    But it is not working...can any one help me on this?
    Edited by: deepakchandaran on Sep 20, 2007 7:10 AM

    You could search the forum and Google.
    it has been answered before.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Maybe you are looking for

  • MAC PRO white screen problem

    hi, i restarted my lap just now but it showed up a white screen with a apple logo and a loading bar; then my mac just shut down after everything done, i did try the disk utility, but it  said my mac fail to repair, what can i do now? i just need my d

  • I am creating a banner for my website

    I have a header picture which is the total width of the header.  760 x 200. I want to put a navigation bar inside of this div, on top of the picture right inside corner. This is what I have in the code <body> <div id= "wrapper">     <div id="header">

  • Usage of update Task Function Modules

    During an application development using WDA I have stumbeled across this unique problem. As recommended by SAP I am trying to use update function module to update my SAP Database. But calling the function in WDA does not update the database. <b>On th

  • KEYNOTE - Export to quicktime with slides turned off

    I have just done a full set of speaker walkup slide intros and then tried to output to quicktime with certain slides turned off and the ones I wanted to export turned on. Each time I would export the QT movie (for individual speakers turned on and th

  • Getting following error for EPMA Process Manager on Win2K3

    Service cannot be started. Hyperion.DimensionServer.ProcessManager.Interface.ProcessManagerException: Cannot initialize the Session Manager. ---> System.Data.OracleClient.OracleException: ORA-00942: table or view does not exist at System.Data.OracleC