ShowDetail TAB  --Disclosing

Hi ,
I am facing some issue related with the tr:showdetailItem in which two tabs(say A and B) are provided. The requirement is on page load it should display always the content of TAB A and what is happening is on load sometimes it displays TAB A but when I click on TAB B and the next time when I open that page the last clicked TAB will be retained always..
By default i need to load TAB A always.
Below is the code snippet
JSPX:
<tr:panelTabbed position="above" styleClass="border" >
<tr:showDetailItem inlineStyle="#{backing_Home.isATabOpen?'font-family:arial;font-size: 11px;font-weight: bold;width:102px;height:23px;display:block;text-decoration: none;color:#000000;background-image:':'font-family:arial;font-size: 11px;font-weight: bold;width:102px;height:23px;display:block;text-decoration: none;color:#bbbbbb;'}" id="sdiATab" disclosureListener="#{backing_Home.arrivalDiscLsnr}"
>
          Some details related with TAB A
<tr:showDetailItem id="sdiBTab" disclosed="false" inlineStyle="#{backing_Home.isATabOpen?'font-family:arial;font-size: 11px;font-weight: bold;width:102px;height:23px;display:block;text-decoration: none;color:#000000;':'font-family:arial;font-size: 11px;font-weight: bold;width:102px;height:23px;display:block;text-decoration: none;color:#bbbbbb;'}" >
          Some details related with tab B
Backing Bean:
boolean isATabOpen = true;
public void arrivalDiscLsnr(DisclosureEvent disclosureEvent) {
if("sdiATab".equals(disclosureEvent.getComponent().getId())) {
isATabOpen = disclosureEvent.isExpanded();
public void setIsATabOpen(boolean isATabOpen) {
this.isArrivalTabOpen = isATabOpen;
public boolean getIsATabOpen() {
return isATabOpen;
Thanks

Hi,
Mention your JDev version, also it would be nice if you just paste the code snippet.
It is difficult to understand what your panelTabbed component actual have
Use
*{ c o d e }*
without spaces at the starting and ending of your jspx content. For comments use '//' standard comment symbol.

Similar Messages

  • How to find Active Dynamic tab (disclosed) UIComponent?

    Hi all,
    I newbie to Fusion App. extension, preparing a separate application to integrate. My application consist of multiple taskflows and will be opened as seaparate tabs (uses the default UIShell) template. As a part of my application, I may require to do some coding in managed bean to refresh UI components resides inside my page. To make it happen, I need to find the Acitve tab first (i.e. the one that is disclosed).
    Question:
    Does fusion app provides any API or util (say DynamicTabUtil.findComponent(String pComponentId) -- suppose to search component not from view root but the Active tab) to find the current Active dynamic tab component? If so, please let me know the documentation link. If not, is there any way to get this done. (To get this done, I should aware of the standard oracle uses in generating ids for Dynamic tab).
    Thanks in Advance.
    Ragu

    Sorry for the delay in response.
    Jdeveloper version is 11.1.1.6.3, working for Fusion HCM, have to create an extension project to accomodate some additional functionalities.
    Explanation:
    Application is based on UIShell template, can open task-flows under dynamic tabs. Same screen (i.e. same task-flow id) can be opened multiple times since every task flow has its own transaction. As a part of functionality, I require some coding to be done in managed bean to access some UIcomponent and refresh it. Since same screen can be opened under multiple dynamic tabs, I should not start searching the required screen level UIcomponent from root, instead I need to find the Active Dynamic tab component first (i.e. currently disclosed dynamic tab) and then my screen component.
    Scneario:
    Assume Screen A has an SSN input text fidl with id 'ssnFldId'.
    1. User opens Screen A under a dynamic tab (it becomes first tab)
    2. User opens Screen A again under a new dynamic tab (it becomes second tab and Active)
    3. Based on the screen functionality, UIComponent of SSN field belongs to the second tab needs to be accessed. I know I cannot start searching for this component from root but to pick the correct dynamic tab first, followed by this component.
    Question:
    1. Is there any direct API available (say DynamicTabUtil::getActiveTab()) that returns the dynamic tab UIComponent.
    2. If not, how to find it?
    When I was working ADF Application development using Dynamic Tabs, I was able to access the initial version of Dynamic tab source (4 yrs back), customized for our need, worked with that source, hence I knew how the id gets generated for tab, was able to work with that, don't know how it is in Fusin Apps. Your help would be appreciated.
    Thanks in Advance.
    Thanks,
    Ragu

  • Disclosing first tab (in a panel tab) always when a page loads up

    Hi,
    I am using JDeveloper 11.1.1.4 and I have a page which contains panle tab. I have configured MDS in my application. So if I close the page visiting 2nd tab, the next time if I visit the page, it opens up with the 2nd tab disclosed.
    What I want is to disclose the first tab when the page loads up. Can I exclude this page from MDS or Is there any preferred way of doing this in ADF?
    Regards,
    V. Praveen

    Hi Sudipto,
    Thanks for your reply. Do you mean to say that I need a taskflow to achieve this? The reason why I am asking this is because my page is a simple page which comes under unbounded taskflow of adfc-config.xml.
    Is there any other approach in achieving this?
    Regards,
    V. Praveen

  • Re: Issue with ShowDetailsItem Disclosed property

    Was solution been implemented to address this issue?
    I am using a dynamic tab where I disclosed the the showdetailitem using an EL based. This tabs corresponds to a contact persons within a company.
    The User can select different company from a table and the tabs will display the different contact persons. If a company selected from the table the tab will diplay the persons in the tabs, you can select different person by clicking the tab to display the person's info. The issue is when you return to company that you previously selected, the UI remembers the person you have disclosed previously, But my logic was to reset the tab to disclose the first person in the list which is not happening.
    So, I displayed the EL code for the disclosed in the Tab text and it is returning the correct result. I need help in how to reset the tab disclosed.
    Note: When I refresh the browser the right tab is disclosed.
    <af:panelTabbed id="panelTabbedForContactList" tabRemoval="allExceptLast"
    dimensionsFrom="auto" partialTriggers="i1:saveCommandButton">
    <af:iterator id="i1" value="#{bindings.CompanyAddressContact1.collectionModel}"
    var="row" varStatus="c">
    <af:showDetailItem id="contactShowDetailItem1"
    text="#{row.PkId} #{row.FirstName} #{row.MiddleInitialOrName} #{row.LastName} #{row.FkCompanyContact} #{row.FkCompanyContact eq supplierContactBean.currentContactPk}"
    itemListener="#{supplierContactBean.onContactTabItem}"
    disclosureListener="#{supplierContactBean.onDisclosureOfContactTab}"
    immediate="true"
    disclosed="#{row.FkCompanyContact eq supplierContactBean.currentContactPk}"
    remove="#{empty row.FkCompanyContact? 'no' : 'inherit' }"
    >
    <f:attribute name="row" value="#{row}"/>

    Hi,
    if it is a component regresh problem, try - on table row selection, calling
    oracle.adf.view.rich.util.ResetUtils.reset(ui_component_reference_to_component_holding_the_af:iterator_tag)
    Frank

  • Issue with ShowDetailsItem Disclosed property

    hi team,
    I am trying to create a simple master child page implementation with TreeTable on LHS and panelTabbed on RHS.
    User can select an object from LHS and it has corresponding renderer, which will be displayed as a tab in RHS.
    The page is refreshed every time I add an object from LHS. But the tab selection is not getting changed.
    My requirement is when user select a row, I need to highlight that tab on RHS.
    So, I had an expression (say discloseSelectedItem) in my bean with does the selected row calculation and returns boolean
             <af:showDetailItem disclosed="#{pageflowScope.uiBean.discloseSelectedItem}"
                                dontPersist="ALL" >
                   < Component details >
            </af:showDetailItem>But the issue is, this method is never being called. I tried to call the method from backingbean and pageFlow scope.
    My JDev version : 11.1.1.6.0
    any inputs will be great.
    Thanks,
    -Jaya.

    I fixed a similar issue by doing this
    ChangeManager changeManager =
    RequestContext.getCurrentInstance().getChangeManager();
    ComponentChange disclosed = new AttributeComponentChange("disclosed",Boolean.TRUE);
    ComponentChange undisclosed = new AttributeComponentChange("disclosed",Boolean.FALSE);
    changeManager.addComponentChange(FacesContext.getCurrentInstance(), tabA,disclosed);
    changeManager.addComponentChange(FacesContext.getCurrentInstance(), tabB,undisclosed);
    AdfFacesContext.getCurrentInstance().addPartialTarget(tabA);
    AdfFacesContext.getCurrentInstance().addPartialTarget(tabB);

  • Programmatically Open and close panel accordion on button click

    Hi All,
    Im using JDev 11.1.1.4 and adf faces application.
    My requirement is to open/close panel accordion on button click programmatically.Kindly have a look at below figured one
    Panel accordion Open Button
    | ShowDetail1 //Consider first one is open inside close button is there to close this pane..
    |
    |
    |
    Close Button
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Show detail2 open button
    Show details3 open button
    Any idea...
    Thanks,

    Thanks Mr.frank...
    But disclosed property is to make the showdetail to disclose or not.. but requirement is to open panel accordion on button click
    By default using panel accordion have arrow icon in left to open in a same way if i open the second one, first will get close automatically...
    Actually is there any way to do the default process (open/close) programmatically...

  • JDeveloper 10.1.3.2.0 - How to see content of showDetailItem in Design View

    Hello,
    I am new to use the JDeveloper to create JSF Applications and I learn with the tutorials.
    So I have a question:
    I want to find out: How to see the content of the second or third showOneTab component in the WYSIWYG Design View of a page.jspx?
    For example, I am orientating the tutorial: "Introduction to ADF Faces/Trinidad Using JDeveloper" (http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm)
    Page: table.jspx
    There is the showOneTab "Single Row Select" and "Multi Row Select" and I see only the content of "Single Row Select".
    How can I see the content the table2 of "Multi Row Select".
    I have created the table of "Single Row Select" and can see only this one.
    The download of that example show me in the View of structur the component table2, but not in DesignView.
    Can you help me?
    best regards
    Joachim

    Hello Frank,
    many thanks for your answer. It try it and it works!
    For completion, I think the argument "disclosed" of the component "af:ShowDetailItem" with "default" setting is "false".
    So if I will editing one tab in WYSIWYG editor, I set only this tab disclosed = true.
    All others to "false". When my edit is completed, I set only the first tab to "true" and all other "false", because I want to start with the first tab by first request.
    I look again into the "help". Hopefull in answer:
    Which effect has this argument by deployment?
    There is only the desciption: "whether or not to disclose the children This attribute is not supported on the following agent types: pda, phone, voice."
    I think this is for me irrelevant. My application have to support only a client like a personal computer.
    Which effect has this argument by deployment?
    Or is this only for the WYSIWYG editor?
    Joachim

  • How to programatically invoke validate on Save button

    I have a forum with multiple fields and multiple tabs, which display detail data. Data is stored in POJOs.
    When I navigate between tabs, master data gets validated and model errors are displayed.
    I would like to validate master data only when I click save.
    The same thing for detail data. Only when I click "add" in detail tab, the detail should be validated.
    I guess steps are:
    - disable automatical validation
    - programmaticaly call validation on button events using appropirate binding/model (master model for master data, and detail model for detail data in tab)
    But I am not able to disable validation (setting skip validation=true doest do anything). I also dont know how to manually call validation in event handler.
    Any help is appreciated.
    BR,ivan

    Hi,
    you can skip the life cycle validation by using java code as well. In tab disclose you need to include the below line as a first line. FacesContext.getCurrentInstance().renderResponse();
    This will work like immediate="true".
    Reg,
    Brahma B.

  • 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);
    }

  • In Jdeveloper11+ADF BC how to find disclosed tab

    hi,
    In Jdeveloper11+ADF BC how to find disclosed tab...
    or wheather the a purticular tab is disclosed or not..
    in details, i have a ADF panellTabbed with two ShowdetailItems. I have a common button out side the tab. i want to identify which showdetailitem is currently disclosed..
    i'm verymuch greatful if I get some answer ASAP...Thanks in in advance.
    Regards,
    b_in_u

    hi John..
    It is truely ASAP :) ..
    Thanks..It is promt answer ...
    but i'm very much new to here..(my experience is with .net only)
    I can clearly got your point and i tried with this ..but i'm helpless to express it syntaxically...
    there is no error with this but cant reach my requierment...
    if you dont mind.. plz give some code snipet...
    if u wish i'll send my code.. then u can findout wat i was done over here..
    plz...
    Thank you Very much.. once again...
    regards
    b_in_u

  • Updated form/table in showDetails of Panel Tabbed Component

    When there are multiple showDetail components for Panel Tabbed, if anyone of them has an updated form or table, switching between different showDetail components will cause the system throw mandatory field validation errors.
    It looks like all the mandatory LOV fields are reset to be empty in the previous visited tab. Is this the way that Jdev supposed to work? What should we aware of using updated forms/tables in multiple tabs of Panel Tabbed component?

    That's how it works. That's the reason, I get all the data to pre-populate all the components in the page load itself. When I switch between tabs, I don't re-execute the proc and so it won't reset. I use postback to prevent re-execute the proc. when I switch between tabs.
    Boolean postBackValue = (Boolean)JSFUtils.resolveExpression("#{adfFacesContext.postback}");
    Boolean defaultBooleanValue = new Boolean("false");
    if (postBackValue.equals(defaultBooleanValue)) {
    }

  • Initialization of the page, first disclosed tab

    Hello,
    I have a series of tabs inside a panel tab. When disclosing the tabs actions are invoked from within the actionListener according to the id or other attributes of the tabs.
    However, the problem is with the first disclosed tab after the page is rendered or reloaded. In this case the page is set with a default open tab (the first one in the panel) and no events are issued.
    What I want is to issue a "disclose" event for the first disclosed tab in such situations, as if the user clicked on it.
    Is there a way to do this?
    Thanks.

    Hi,
    you can queue events. In the tab case, its an DisclosureEvent: org.apache.myfaces.trinidad.event.DisclosureEvent
    DisclosureEvent myInitialEvent = new DisclosureEvent(componentBindingToShowDetail, boolean_epxanded_true_flase);
    myInitialEvent.queue();
    However, the tricky part is when you want to queue the event because clicking onto an opened tab does not raise any other event. Adding a JavaScript af:clientListener may be an option to try. Its complex however as you would need to use an af:serverListener to call the server for the Java code to execute
    Frank

  • Programatically disclosing tab does not cause tab contents to be displayed

    I'm using Jdev 11g, update 2.
    I have a page with a panelStretchLayout. The Start facet has a tree component. The Center facet has a panelTabbed component with 2 showDetailItems, each with different panelForms.
    Manually clicking on the tabs shows the correct contents.
    The tree has a SelectionListener mapped to a managed bean method. When a node is selected, the bean method sets one of the showDetailItems to disclosed.
    There is PRR for the showDetailItems based on the tree.
    This code does cause the right tab to become current. The problem is that the tab contents do not also display IF that tab was not previously the disclosed one.
    An example:
    Tree shows Departments & Employees, The first tab shows the selected Dept from the tree in a form, the other shows the selected Employee from the tree in a form.
    When the page is run, the Dept tab is disclosed by default because it is the first one.
    Select a Dept in the tree. The Dept tab remains disclosed and the correct Dept is displayed.
    Select an Emp in the tree. The Emp tab become disclosed but it is blank. The Emp form does not appear.
    Select a Dept in the tree to reset tabs.
    Now manually click the Employee tab. The Employee formis displayed correctly with the last Emp selcted from the tree.
    Select a Dept in the tree. Now the Dept tab becomes disclosed but it is blank.
    My first thought was that this is a PRR problem with the tab children. But I've tried setting PRR on the panelForms so they are refreshed when the showDetailItems are refreshed. That didn't help.
    I've also tried setting the rendered and visible properties for the tab child (form) programatically. No luck.
    My current code for the selectionListener is:
    public void setSelData(SelectionEvent selevt)
    RichTree tree = (RichTree)selevt.getSource();
    RowKeySet sel = tree.getSelectedRowKeys();
    Iterator seliter = sel.iterator();
    while (seliter.hasNext())
    Object rowKey = seliter.next();
    tree.setRowKey(rowKey);
    FacesCtrlHierNodeBinding node =
    (FacesCtrlHierNodeBinding)tree.getRowData();
    String viewDefName = node.getHierTypeBinding().getStructureDefName();
    if (viewDefName.contains("Dept"))
    setSelDeptNo((oracle.jbo.domain.Number)node.getAttribute("Deptno"));
    OperationBinding ob =
    (OperationBinding)bindings.get("setCurrentRowWithKeyValue1");
    ob.execute();
    } else
    setSelEmpId((oracle.jbo.domain.Number)node.getAttribute("Empno"));
    OperationBinding ob =
    (OperationBinding)bindings.get("setCurrentRowWithKeyValue");
    ob.execute();
    if (viewDefName.contains("Dept"))
    panTab.getChildren().get(0).getAttributes().put("disclosed", false);
    panTab.getChildren().get(1).getAttributes().put("disclosed", true);
    empsTab.setDisclosed(false);
    empsTab.setDisabled(true);
    deptsTab.setDisabled(false);
    deptsTab.setDisclosed(true);
    } else
    deptsTab.setDisclosed(false);
    deptsTab.setDisabled(true);
    empsTab.setDisabled(false);
    empsTab.setDisclosed(true);*/
    panTab.getChildren().get(1).getAttributes().put("disclosed", false);
    panTab.getChildren().get(0).getAttributes().put("disclosed", true);
    }

    That was it. I don't need to set up PPR for the showDetailItems either - just the panelTabbed. I'll remember to walk up and try PPR on all the parent components next time. Thanks.

  • Dynamic disclosing showdetail component in oracle adf

    In my menu I have showdetail components. My problem is that on opening second showdetail, the first opened showdetail should be disclosed automatically.

    Oh, sorry I was budy and I did not read it. Did you manage to do it or you still need an asnwer?

  • Disclosing a selected af:showDetail component under an af:iterator

    Hi
    I am facing a problem with <af:showDetail> component. I am trying to generate multiple <af:showDetail> components under an <af:iterator> as shown below:
    <af:iterator var="row" value="#{mybean.list}">
    <af:showDetail disclosedText="Show" undisclosedText="Hide" disclosed="#{row.bool}">
    </af:showDetail>
    </af:iterator>
    "mybean" is an instance of managed bean "MyBean" configured in faces-config.xml. "mybean.list" returns a list of objects of a class "MyBeanInner". "MyBeanInner" is a public inner class of "MyBean".
    I am trying to control the disclosure of <af:showDetail> component using the boolean value "bool" set in "MyBeanInner". Through this, I want a specific <af:showDetail> component to disclose itself, but this is not happening.
    Another interesting fact is that, if I bind the "disclosed" attribute to a property in "MyBean" it works fine.
    Can any one explain this behavior? Is there a work around?
    Thanks and Regards
    Prashant

    Hi Frank,
    Thanks for the reply. You have rightly identified that inner class is not being instantiated.
    Another point I missed was that - All properties other than "diclosed" in <af:showDetail> like "value", "disclosedText", "undisclosedText" work fine when they are bound to "MyBeanInner" inner class properties. Why is it that only "disclosed" property does not work? Is it something to do with ADF phases?
    Could you elaborate on the solution you proposed. Where should I provide the getter and how will its signature look like? Currently, I have provided the setters and getters for the properties in the inner class.
    Thanks and Regards
    Prashant

Maybe you are looking for

  • Zen V Plus 8GB: Can I set MORE than 4GB as storage for dat

    When I bought the device, I thought I could choose to empty the entire player and fill it totally with DATA. to (for example) store a complete DVD (as data ofcourse, I understand the player won't be able to display it)

  • Problem Rounding Corners in Flex 3

    Hi, I'm having some problems rounding my panel and controlbar. Actually, the corners are rounded. The problem is that at the bottom of the panel are light gray squares peeking out from behind the rounded corners. If I put a dropshadow on the panel th

  • Help! - Tracks linked to application files, not my music !!

    Something very weird is going on here.... I've got about 500 tracks that somehow are linked to application files. For example if I select "Show in Finder" it takes me to: Applications:iWeb.app:Contents:Frameworks:SFApplication.framework:Versions:A:Re

  • Can any one Modify this Code and reply back

    Hi, Iam using this UDF presently to get one return value from RFC Lookup mapping Table. Now I want two return values from the RFC Lookup Mapping Table.    //write your code here      int length=pospymtvalue.length;      String DBTABLE = tabname[0];  

  • Tax  Type Combination

    Hai To All,          In Tax Type Combination screen there is header and detail part. In Header part Code and Description In Detail part Tax Type and Formula Code Header part ---OTFC but what is the table name to store detail part??? Like Wise in Tax