Bar Graph Click Listener Should Open a Tab

Hi,
We have got a special requirement: Our application has 6 tabs. The first tab is the Dashboard. On Dashboard, we have few bar graphs. And each graph represents the current status of remaining 5 tabs.
And the requirement is, when the user clicks on any bar graph, respective tab should get opened. We easily achieved this when using a button/ Command Link/ Command Image Link as because they are supporting action event.
In case of bargraph, we are not getting this happened. Could you please let me know if there any way for us to achieve this requirement.
And FYI … here is the dashboard screen shot of our application. As per the below URL, when user clicks on the bar of Request bar graph, the Requests tab should get opened.
https://picasaweb.google.com/112002138169335747235/IssueWithBarGraph?authuser=0&feat=directlink
Here is the code snippet for the same:
public void alertsBarGraphListener(ClickEvent clickEvent) {
UIComponent uiComponent = clickEvent.getComponent();
if (uiComponent instanceof UIGraph ) {
String id = uiComponent.getId();
List<UIComponent> panelTabs = this.mainMenuTabs.getChildren();
boolean foundTab = false;
for(UIComponent tab: panelTabs) {
if(tab instanceof RichShowDetailItem) {
String[] triggerIds = ((RichShowDetailItem)tab).getPartialTriggers();
if(triggerIds !=null) {
for(String triggerid : triggerIds) {
if(id.equals(triggerid)) {
this.dashBoardDetailItem .setDisclosed(false);
((RichShowDetailItem)tab).setDisclosed(true);
foundTab = true;
Please let me know your comments.
Thanks & Regards,
Kiran Konjeti

After setting the disclosed property for the tabs, you would need to have PPR to the panelTab in order to reflect the changes in UI.
Here, is an sample based on your use-case:
TestPage.jspx:
<?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"
xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
*<af:panelTabbed id="pt1" binding="#{TestPageBean.panelTab}">*
*<af:showDetailItem text="Graph" id="sdi1">*
*<dvt:barGraph id="barGraph1" subType="BAR_VERT_CLUST"*
*clickListener="#{TestPageBean.clickListener}">*
*<dvt:background>*
*<dvt:specialEffects/>*
*</dvt:background>*
*<dvt:graphPlotArea/>*
*<dvt:seriesSet>*
*<dvt:series/>*
*</dvt:seriesSet>*
*<dvt:o1Axis/>*
*<dvt:y1Axis/>*
*<dvt:legendArea automaticPlacement="AP_NEVER"/>*
*</dvt:barGraph>*
*</af:showDetailItem>*
*<af:showDetailItem text="Another Tab" id="sdi2">*
*<af:commandButton text="Button in another tab" id="cb1"/>*
*</af:showDetailItem>*
*</af:panelTabbed>*
</af:form>
</af:document>
</f:view>
</jsp:root>
*TestPageBean.java:*
package view.bean;
import java.util.List;
import javax.faces.component.UIComponent;
import oracle.adf.view.faces.bi.event.ClickEvent;
import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
import oracle.adf.view.rich.context.AdfFacesContext;
public class TestPageBean {
private RichPanelTabbed panelTab;
public TestPageBean() {
public void clickListener(ClickEvent clickEvent) {
List<UIComponent> showDetailItems = this.panelTab.getChildren();
for (UIComponent showDetailItem : showDetailItems) {
RichShowDetailItem currentRichShowDetailItem =
(RichShowDetailItem)showDetailItem;
currentRichShowDetailItem.setDisclosed(false);
if (currentRichShowDetailItem.getText().equals("Another Tab")) {
currentRichShowDetailItem.setDisclosed(true);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(this.panelTab);
public void setPanelTab(RichPanelTabbed panelTab) {
this.panelTab = panelTab;
public RichPanelTabbed getPanelTab() {
return panelTab;
Thanks,
Navaneeth

Similar Messages

  • Bar graph click event not getting triggered

    i specified methods in bean for bar graph's clickListener and clickAction.
    graph data is getting rendered properly.
    graph is based on SQL based read only VO which uses bind variables as well which are set on a button click to generate report
    but on clicking on graph, control is not going to bean method which handles clickEvent
    i have wasted lots of time for this
    initially bean scope was backing, i tried with request and session as well nothing is getting control to bean
    jdev 11 1 1 5

    Hi,
    +"i have wasted lots of time for this ..."+
    And you wasted more time by not giving enough information about the graph configuration and the click listener signature. Note that we need a way to reproduce a behavior to give you some hints.
    Frank

  • I am clicking on the open new tab page but nothing happens I am on the latest version of Firefox

    as before the open new tab does not work i have checked the other answers to this question and none of them apply i have just updated to the latest version of firefox, every time i do this however I then get problems with Firefox not responding plus Identity Safe does not appear on the toolbar anywhere and I used this all the time to control websites and passwords

    Hi,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    If you would like to take a listing of the add-ons, important preferences/settings etc. to quickly replicate the previous profile, please open '''Troubleshooting Information''' via '''Help''' ('''Alt''' + '''H'''), '''Copy all to clipboard''' and paste it into MS Office Excel, or OpenOffice/LibreOffice Calc, or notepad. However, it would be a good idea to check for the existence of the issue immediately after the reset.
    After the reset, you can then [https://community.norton.com/t5/Norton-Toolbar-Norton-Identity/Firefox-17-Support-for-Norton-Toolbar/td-p/853416 update Norton products]. Please also see the workaround.
    [http://community.norton.com/t5/Norton-Toolbar-Norton-Identity/bd-p/Toolbar_IDSafe Support]

  • Apple Menu Bar once clicked would also open other menu bars

    Hello! I would like to receive some advice about this particular problem. The Mac is 4 months old. Description of the problem: Once the Mac starts and I click the apple menu bar, the drop down menu would open and so are the other menu bars i.e. the file, edit, view, help etc. The menu bars will drop one after another non-stop. This problem also affects when opening files in Finder. The chosen file, once clicked will not open but it will revert back to the documents main folder. I hope you can help me with this. Thank you very much.

    Hi! Thanks a lot! I tried your suggestions but the problem persists. Further description: It happens only when the computer is set to automatic log-in mode. I observed that if I hit any keys from the keyboard just before doing anything else after start-up, the "problem" disappears.

  • Feature Request: "Search in Google" should open new tab

    Hi,
    This is a request for the Safari Dev team.
    Highlighting a text and right-clicking on it shows the "Search in Google" option which is VERY convenient. Currently, clicking "Search in Google" takes you to the results page of whatever you wanted google to search. That, naturally, means that I have to leave the page I'm viewing. What I'm suggesting is having the "Search in Google" option open a tab in the background and I can view it later.
    Thanks,

    Hi,
    I'm not on a Mac to test at present, but what happens when you hold down the command key and right-click on the text? Opening links with the cmd key held down opens them in a new tab so maybe it will do the same thing for this feature.
    This is a request for the Safari Dev team.
    If not, send feedback via Safari menu > Report Bugs to Apple... or via [this webpage|www.apple.com/feedback/macosx.html]. The developers don't hang out around here much so it's unlikely they'll see your request.

  • How can I remove annoying click sound when opening new tab?

    I've already goggled this and it said something about no-script (which I'm not running) and nothing else that sounded remotely close to my issue. Basically anytime I open a new tab (which I do tons of) I get the most obnoxious loud click type sound and it drives me up the walls. I can simply mute the whole browser but then many media players and the like play the audio directly through the browser instead of adobe flash or the like. I just learned it also plays the most annoying sound in the world when I use the spellcheck feature...
    Any help on removing this terrible sound file from Firefox would be greatly appreciated... I would hate to have to start using chrome just to get away from this sound.
    The only add-ons I use are Adblock Plus 2.6.3, Advanced SystemCare Surfing Protection 1.0 (I assume it installed itself with the actual ASC program), and Leechblock 0.6.6.
    All my plugins are off by default unless I manually turn them on the add-on manager window when I start up firefox and the sound plays before I ever activate them.

    Did this start when you installed Firefox 30, in other words, Firefox 29 and earlier was fine?
    In case one of your extensions is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Mouse wheel click doesn't open new tabs correctly?

    Since upgrading to FF4, whenever I mouse click a bookmark on my bookmark toolbar, it will open a blank new tab with the URL in the address line, but will not load the page. I have to select the URL in the address line and press enter, or press the green arrow button. Shouldn't web pages automatically load once I mouse wheel click on a bookmark?
    any suggestions?

    Alan McClean has alluded to the cause of this behaviour but I think others would benefit from a full explanation because it doesn't appear to be documented. I might add that Business Objects support were no help at all on this (they suggested I had a problem with my mouse, PC or network which I don't).
    Normal response to a mouse double-click on a document name in InfoView XI3:
    The double-click action performs the default action on the right-click list. This is the option you see in bold when you right-click on a document name. The default action is 'View' document. So when you double-click on the document it opens for viewing.
    In CMC, under Applications>InfoView if you set 'Default viewing action on listing page:' to 'View the latest successful instance of the object' then the double-click behaviour changes:
    The double-click action now tries to open the latest successful instance of a document. I found that any document in my Inbox or any document with instances (e.g. scheduled report) will still open for viewing using the double-click. For any other document the double-click fails silently. I assume this is because there simply isn't a latest instance to open.
    Conclusions:
    1. Don't use the 'View the latest successful instance of the object'. I have reset my CMC setting back to 'View the object'.
    2. I think Business Objects should change the double-click behaviour so that rather than fail silently it opens the document.

  • Clicking on "+" to open new tab doesn't work

    Closeing firefox and restarting doesn't fix problem. Using firefox 3.6 on windows xp, I don't want to upgrade to newer version, since there doesn't not appear to be a navigation bar on the newer version.

    Thank you for your response Cor-el. In fact the Ask.com toolbar had recently appeared on my browser, and I immediately turned it off since I didn't want it. It's frustrating how they can sneak these things in on us sometimes in spite of our attempts to keep so much clutter out. So this issue of the new tab button not working anymore in Firefox 3.6, even after turning off the Ask.com toolbar, it was finally enough to make me cave in to the constant badgering to upgrade to Firefox 4.0 ... Christ these endless upgrades are annoying ... Adobe Acrobat Reader has to be the worst offender in this category. Anyway, after installing Firefox 4.0, there was a terrible glitch, which was an error message box that popped up every single time I clicked on any link on any page. This was the last straw. One can only bear so much, then one is forced to look for new answers. I installed Google Chrome. Naturally the interface, look and feel are quite different from Firefox, but after less than 24 hours with Google Chrome, I am really liking it. It is truly a step up in the browsing experience it provides; so fast, and the way it handles bookmarks is so nice; even sophisticated. Oh, and about the relentless nagging upgrade messages from all manner of software that have caused us all so much suffering over the years, Google Chrome upgrades itself automatically behind the scenes without any need to bother you about such trifle maintenance issues. I recommend it to everyone. Step up to a new enlightened browsing experience People! Try Google Chrome and you'll be glad you did!

  • T431s Middle click not working (open new tabs in browser)

    Hi, I have a brand new t431s here, and I can not get the track point working as expected (and as on all previouse thinkpads since the i-series):
    expected behaviour:
    middle-click on link -> new tab
    middle click&hold and trackpoint-> scrolling
    I am not able to find the setting which enable this behaviour.
    Any help would be appreciated.
    cheers
    schmaud

    What OS?

  • I've done something and Firefox don't open tabs when I click on the open new tab and when I click on right click there is a lot of options..

    Wheb I click right click there's a lot of option, before I use to have just a few. I wish that I can send you a photo how that looks.

    You can't attach a screenshot to the first post that starts a thread, but you can do that in subsequent replies.
    You can check for issues caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • IE 11 open new tab opens new window, clicking open new tab opens black page in same tab

    Hi I have a problem with IE11 on Windows 8.1 Desktop mode which is driving me crazy.
    When i click on the open new tab button it will open in the same tab in the same window and you cant go to any website and the website on where on's address is still in the address bar.
    Right click a link and select open new tab most of the time opens new window with long pause.
    I have tried everything to fix this even re installing windows, but the problem persists after re install as i think its attaching itself to my Microsoft account.
    I have disabled all add-ons run virus and walware scans reset IE to defaults removed and re-installed IE all to no avail!
    Any help would be much appreciated.

     tried everything
    http://support.microsoft.com/en-us/kb/2574731
    (BING search for
        blank tab regsrv32 ieproxy site:support.microsoft.com
    Robert Aldwinckle

  • Lately, when i open a tab, it does not open on top of already open tabs. I am forced to minimize Firefox and then click on the tab in my bottom tray to open it? Why would that be?

    This only started happening about 2 days ago. I will have tabs open, go to bookmarks and click on one. It seems that it is not opening but I then discovered that there is a tab at my desktop bottom tray that opened instead that I can click on to open the tab. However, it will not open unless I first minimize my bottom tray whole Firebox browser.

    That is the default action when you open a new tab. There are extensions that you can install to change it from a blank page to whatever you want.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777 <br />
    and <br />
    NewTabURL extension: <br />
    https://addons.mozilla.org/firefox/2221/

  • How can I get this stupid Mapneto pop up add off my FFox browser on Mac OSX? It shows "deleted" in Extensions, but now when I open a tab a download ad appears

    Had never seen these pop up pages before I tried to delete the Mapneto tool bar, now every time I open a tab or a link up pops this stupid "download completed" come-on ad which is monstrously annoying. Short of dumping Firefox and re installing, what else can be done? My "block pop ups" box is checked, too, and it does not work...I see other popups all the time. thanks.
    c

    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    You can do a search on the <b>about:config</b> page for this domain and reset related prefs via the right-click context menu to their default value.
    *http://kb.mozillazine.org/about:config

  • A new tab will not open except will when I use Foxfire help. Nothing works. My setting are to open new tabs but it doesn't work. Why?

    Foxfire won't let me open a new tab. I have my setting set to open a new tab. I've clicked on it and nothing happens. I've right clicked and selected open new tab and nothing happens. When I go to Foxfire for help it will open a new tab for help. When I try to use this tab to browse, anything in the other window gets shut down.

    1. In the Tools menu select Add-ons to open the add-ons manager.
    2. In the Add-ons manager select the Extensions panel
    3. In the list of Extensions click on Ask Toolbar, then click the Uninstall button
    4. Restart Firefox and the Ask toolbar will be uninstalled.
    I found this solution and it worked!

  • How can I put the "open new tab" button back to the right of the right most tab in FF 4?

    It's very annoying to have to go up to the corner to click on the open new tab button when it used to be to the right of the right most tab. I have other buttons, like print up there and have to think about which one to click. What was wrong with where it was? It worked for me. At least tell me how, or allow me to change it back. It is one thing to make a product faster but allow the users to keep things in familiar places if they want. I've liked that option on Firefox with most things. I've been a Minefield then Shiretoko user for a number of years an I think I will stick with it for the foreseeable future.

    Thanks. I don't know why it wouldn't just go back there when I tried putting it back? I didn't change anything, so I assumed the new "default" was over on the left. Glad it was a simple solution after all.

Maybe you are looking for

  • Starting a GOS-Service direct

    Hello, In my application i´m using the generic object services by starting the service "view attachment-list" directly (in a 4.6C System). For the first call the service works fine, but how should i do by changing the published object? In this case i

  • Ho w to check username availability in jsp

    Hi friends, I am doing a project in which there is a registration form where i have to check username availabitlity. When i click on the availability button the result should be displayed indicating whether it is available or not. I have created it u

  • Result to Text : Spaces

    hi~ I am writing a query to result to text: select db_name(dbid),dbid from sys.sysprocesses but there is alot of spaces after the column of db_name... how to trim them ??

  • Java Bean standard name prefixes

    Does "addSize" follow Java Bean standard?

  • Passing customer id(logged in user)  to BAPI

    Hi, I am creating a sales order application where in i have to pass the user id (customer  logged in through portal) . I have made the MODEL RFC as ticket, and meta data as user id password where i have passed the service user and password. Now my pr