How to open a panel tabbed window using a button present in the same page

below is my jspx page where i have two buttons and two panel tabs. I want to open respective panel tabs using respective buttons:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" binding="#{backing_pages_bb.d1}">
<af:form id="f1" binding="#{backing_pages_bb.f1}">
<af:panelStretchLayout binding="#{backing_pages_bb.psl1}" id="psl1">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelTabbed binding="#{backing_pages_bb.pt1}" id="pt1">
<af:showDetailItem text="first"
binding="#{backing_pages_bb.sdi1}" id="sdi1"/>
<af:showDetailItem text="second"
binding="#{backing_pages_bb.sdi2}" id="sdi2"
rendered="true" disclosed="false"/>
</af:panelTabbed>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top">
<af:panelGroupLayout binding="#{backing_pages_bb.pgl1}" id="pgl1">
<af:commandButton text="first"
binding="#{backing_pages_bb.cb1}" id="cb1"
action="#{backing_pages_bb.cb1_action}"/>
<af:commandButton text="second"
binding="#{backing_pages_bb.cb2}" id="cb2"
action="#{backing_pages_bb.cb2_action}"/>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_pages_bb-->
</jsp:root>
below is the backing bean created for the jspx page:
package view.backing.pages;
import javax.faces.component.UIComponent;
import oracle.adf.view.rich.component.rich.RichDocument;
import oracle.adf.view.rich.component.rich.RichForm;
import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
import oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout;
import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
public class Bb {
private RichForm f1;
private RichDocument d1;
private RichPanelStretchLayout psl1;
private RichPanelGroupLayout pgl1;
private RichCommandButton cb1;
private RichCommandButton cb2;
private RichPanelTabbed pt1;
private RichShowDetailItem sdi1;
private RichShowDetailItem sdi2;
public void setF1(RichForm f1) {
this.f1 = f1;
public RichForm getF1() {
return f1;
public void setD1(RichDocument d1) {
this.d1 = d1;
public RichDocument getD1() {
return d1;
public void setPsl1(RichPanelStretchLayout psl1) {
this.psl1 = psl1;
public RichPanelStretchLayout getPsl1() {
return psl1;
public void setPgl1(RichPanelGroupLayout pgl1) {
this.pgl1 = pgl1;
public RichPanelGroupLayout getPgl1() {
return pgl1;
public void setCb1(RichCommandButton cb1) {
this.cb1 = cb1;
public RichCommandButton getCb1() {
return cb1;
public void setCb2(RichCommandButton cb2) {
this.cb2 = cb2;
public RichCommandButton getCb2() {
return cb2;
public void setPt1(RichPanelTabbed pt1) {
this.pt1 = pt1;
public RichPanelTabbed getPt1() {
return pt1;
public void setSdi1(RichShowDetailItem sdi1) {
this.sdi1 = sdi1;
public RichShowDetailItem getSdi1() {
return sdi1;
public void setSdi2(RichShowDetailItem sdi2) {
this.sdi2 = sdi2;
public RichShowDetailItem getSdi2() {
return sdi2;
public String cb1_action() {
// Add event code here...
return null;
public String cb2_action() {
// Add event code here...
return null;
Wat method has to be coded inside cb1_action and cb2_action so that respective panels are opened.
thank u for ur help in advance.

Hi,
If the data need to be passed is large, consider using Shared Memeory Objects: Check this doc for reference: How to pass data from ABAP to Web Dynpro ABAP
Hope this helps u,
Regards,
Kiran

Similar Messages

  • When I open a link in a website it opens as a new window instead of just staying on the same page

    In any website, when I click on a link it opens in a new window.this even occurs in google when I click any of the results it opens in a new window instead of just staying on the same page.tabs work fine however, it is just links on websites.

    Did you check the search settings on the Google Search Settings page?
    * http://www.google.com/preferences?hl=en
    ''Where results open: Open search results in a new browser window.''
    You can set the browser.link.open_newwindow pref to 1 to open links by default in the current tab.
    *http://kb.mozillazine.org/browser.link.open_newwindow (3)
    You can set this pref to 0 (zero) to do this for all widows opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction (0)

  • In Acrobat XI, how can I select and move multiple text/image blocks simultaneously on the same page?

    I work with student-generated PDFs that require all content to be within a specific margin range. Occasionally tables and figures are indented or otherwise spaced incorrectly so that the content violates the margin requirements. In Acrobat X, I could use the select tool to draw a select box around all of the text and lines within a table, for example, and just slide the entire table over a bit to meet the requirements without sending the PDF back to the author for a correction. This didn't always work, but often enough that I was able to use it on a daily basis.
    Is there a way to select multiple (but not ALL) text blocks and image pieces on a page, so they may be moved simultaneously? If I have to select every text block and line (or every point and line within a graph) and move them each individually, this is going to be a nightmare.
    I have Acrobat XI for both Mac and Windows, but tend to use the Windows version more often.

    Hey, I'm using Acrobat XI and I can't multi select like I use too do with shift as always. Now I get a green note every time I want to multi select with shift + click as always. I also use Pitstop and I get the same green notes.
    Can someone help me ?

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • How to pass a parameter from a report to multiple forms in the same page

    Hi:
    i have a report and a lot of forms in the same page. The fact is that i want to stablish a link over a filed in the report which would make some information appear in those forms so that information could be updated. For example: i have a report with company names. Over those names i want to put a link. When the link would be pressed the forms would reflect the information about that comany. Is this possible to be done? how can i do this or something similar?
    Thanks.
    Regards. Urko.

    Please see post Re: session state security
    It has been done for a single form in a page and can be extended to multiple forms as well.

  • Random banner links: How to open in new tab/window

    I've added a random banner to a site I'm experimenting with, and I've got it to randomly load the images. The links are all set and working, but they open in the same window or tab. Is there a way to tell it to open the linked site in a new window or tab?
    Here's the script:
    <script language="JavaScript">
    <!--
    function random_imglink(){
      var myimages=new Array()
      //specify random images below.
      myimages[1]="img/banner-1.jpg"
      myimages[2]="img/banner-2.jpg"
      myimages[3]="img/banner-3.jpg"
      myimages[4]="img/banner-4.jpg"
      myimages[5]="img/banner-5.jpg"
      //specify corresponding links below
      var imagelinks=new Array()
      imagelinks[1]="http://www.website.com"
      imagelinks[2]="http://www.website.com"
      imagelinks[3]="http://www.website.com"
      imagelinks[4]="http://www.website.com"
      imagelinks[5]="http://www.website.com"
      var ry=Math.floor(Math.random()*myimages.length)
      if (ry==0)
         ry=1
         document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=none></a>')
      random_imglink()
    //-->
    </script>

    I think part of your problem might lie in the way you are trying to use your quotation marks.  It appears you are trying to have the single quotes do what double quotes should be doing.
    document.write("<a href='"+imagelinks[ry]+"' target='_blank'><img src='"+myimages[ry]+"' border='none'></a>
    If you want to have doublequotes appear in code as doublequote characters you can try slashing them to have them read literally... \"
    document.write("<a href=\""+imagelinks[ry]+"\" target=\"_blank\"><img src=\""+myimages[ry]+"\" border=\"none\"></a>

  • How to display a pop up window using a button redirect to a page ?

    Hi
    I have a button who redirect to a page of the application and this button passes a few items using the URL parameters
    (Optional URL Redirect).
    I would like to display the new URL page in a pop up window, with the items set properly
    Where do I put the "target = _blank" instruction ?
    Thank you for your answers !
    Regards,
    Christian

    Christian,
    I'm not sure you can use a button like that, at least not without creating a custom button template, but then it wouldn't really be a button anymore. The standard popup function in ApEx is html_PopUp. It's signature is:
    html_PopUp(pURL,pName,pWidth,pHeight,pScroll,pResizable)
    It essentially encapsulates a call to window.open and can be called from a button with:
    javascript:html_PopUp('http://www.google.com');
    If you want to learn more do a Google search on "javascript window.open".
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • How can I have two different windows up on one screen at the same time?

    How can I have to different windows open on my screen at one time? Kind of like a split or shared screen.

    If you want this split screen thingy for a single app, do like captfred suggests or see if the app itself supports some sort of splitting, like MS Excel.
    If you want to do this system-wide, maybe you can get what you want by activating and using Spaces: http://support.apple.com/kb/PH4313

  • My original page is no longer tabbed, and when opening a new tab, I can't go back to the original page without closing all of the tabs.

    In the past, if I didn't have all of the tabs opened, or just opened a new window, the page would still be in a tab if I opened up new tabs. Now, if I hit the "+", I get a tab. I can't get back to the original page without closing all of the tabs.
    Example: I open ebay.com in a window. I hit "+" and go to cnn.com. I want to go back to what I was viewing on ebay, and I can't see it, unless I close the cnn window.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Options window - Tabs panel
    * https://support.mozilla.com/en-US/kb/Options%20window%20-%20Tabs%20panel
    * DO NOT SELECT '''When I open a link in a new tab, switch to it immediately'''
    Check and tell if its working.

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • How to open link in new window using Mountain Lion

    When I upgraded to Mountain Lion, opening a link closes the window I'm in when it opens the new one.  Example, I'm in email, click on a link, and then have to reopen email.  The back button doesn't work.  Where is the setting to change this so my current window remains open?  I use Safari.

    The option to open in a new tab or new window is in Safari > Preferences > Tabs > Open pages in tabs instead of windows: Never, Automatically, or always.

  • How to use Spry and Jquery on the same page.

    I'm using both spry (dataset) and jquery (datepicker) on my page. When I load the jquery script my dataset doesn't work.
    I've done some research and found that I need to insert an observer that tells jquery when the spry dataset is finished loading. Found this information at: http://forums.adobe.com/message/2899897. I've tried implementing this into my script but just doesn't seem to work. Below is the script from my site, how would I insert an observer into this script?
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("/test/fsasearch_results_dynamic.php", "search_results");
    var ds2 = new Spry.Data.HTMLDataSet("/test/countstable_dynamic.php", "table");
    $(function() { $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd', beforeShowDay: nonWorkingDates, numberOfMonths: 2, minDate: +5, maxDate: +30});
        function nonWorkingDates(date){
            var day = date.getDay(), Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6;
            var closedDates = [[7, 29, 2009], [8, 25, 2010]];
            var closedDays = [[Saturday], [Sunday]];
            for (var i = 0; i < closedDays.length; i++) {
                if (day == closedDays[i][0]) {
                    return [false];
            for (i = 0; i < closedDates.length; i++) {
                if (date.getMonth() == closedDates[i][0] - 1 &&
                date.getDate() == closedDates[i][1] &&
                date.getFullYear() == closedDates[i][2]) {
                    return [false];
            return [true];
    //-->
    </script>

    Please post any SPRY related question in the SPRY forum.

  • My screen is too big. It cuts off pages. how do i fix it. I used ctrl and alt at the same time it did not fix it.

    Like if i get on facebook i can only see haft of the page. i can not see any thing to the left or right of the page

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • How can I get a Title and a subtitle that are on the same page to come into the TOC in order?

    The subtitle is appearing before the Title even though it doesn't flow that way on the page. I use Paragragh styles to create my TOC and otherwise have had no problems. Any suggestions?

    Thank you so much! It is fine after extending the title text box.

  • Multiple portlets using javascripts not working on the same page!!!

    Does anyone know a work around for this problem????
    I have two seperate dynamic pages. Each page has a drop down menu which is built from javascript and dhtml. Individually they both work fine. However they stop working when placed on a page together. Even when in seperate regions. I need to keep both of them as seperate portlets so i cannot solve the conflicts in the javascript as i would if they were coded together.
    Any Ideas????
    Anyone?????

    Daniel,
    It could be a script conflict - "any duplication in variable declaration, function name, or event-handler access in two scripts can cause at least one, if not both scripts to become inoperative." Check this site to see if this applies to you:
    http://www.javascriptkit.com/javatutors/multiplejava2.shtml
    Good luck!

Maybe you are looking for

  • My Iphone 4s no longer rotates the screen.  Any suggestions to fix this?

    When I rotate the phone, nothing happens.  I feel like I must have changed a setting but can't figure out what happened.

  • Captions and Reorganizing Photos

    My wife uses Adobe PSE 4 on her Windows XP laptop and won't switch to the PSE 9 software I bought her.  She has 12,000+ photos in her Organizer catalog, and the underlying files are scattered all over two hard drive partitions.  Many of them are dupl

  • Dynamic Structure Creation

    Hello Expert, My requirement is like i have a selection screen where user can put any database table name and once he execute then all the records whatever stored in the table can download in a .TXT file. I am trying this by using field symbol but i

  • Date format in Dutch

    Hi, I am using a query to display a date. I am selecting TO_CHAR (c.DAY_DATE, 'DD mon YYYY') where DAY_DATE is of type DATE I am getting the following result: 05 oct 2011 This is in English. Is there a way to get it in Dutch language, such as: 05 okt

  • Conference link with login and password included

    Hi, I have been trying to find a way to make Adobe Connect send meeting invitation e-mails with login and password included in the link - unfortunately to no avail. Does anyone know, if it's at all possible to do it and if so, how it's done? I'm stil