ADF tabs

Here i have one jspx page ....i have to use tab approcach in that page when i press particular tab it should bring the corresponding page in to my current page only . it should not forward to next page or screen
(in my application iam using tabs in details side not in master side )
Message was edited by:
user611389

Hi,
why don't you use the tab panel then ? If you want to show content as part of the page owning the tab then this seems to be the best option. You can of course reference the content through a subview, in which case this could be from an external file, but technically this doesn't make a difference
Frank

Similar Messages

  • Oracle.jbo.JboException: JBO-34010: The "adf/tabs/view/DataBindings.cpx" descriptor appears in the application classpath more than once:

    Hello
    We are using JDeveloper 11.1.1.6
    We have three 3 separate viewcontroller projects and one Master projects which i supposed to integrate all these projects into one.
    Issue:
    After putting all three together into the Master project, the app fails to deploy due to this error:
    oracle.jbo.JboException: JBO-34010: The "adf/tabs/view/DataBindings.cpx" descriptor appears in the application classpath more than once:
    We did some digging and found out that it is because of the fact that "DataBindings.cpx" in all three projects falls withing the default package. How do we rectify this issue. We cannot even Refector this file because that option is not available for this file. We have a demo soon, What can we do?
    Thanks...

    Hi,
    this error typically comes from name clashes. Apparently you created ADF libraries (or projects) that contain a DataBindings.cpx file. The DataBindings.cpx file seems to be located in the same folder structure and thus could not be merged but are found to be added twice. When you create new view controller projects then best practice is to ensure the root package name is unique to avoid such issues.
    Frank

  • Adf - tab - navigation

    I have quick question.
    Have a page split vertically as top and bottom.
    I have 2 tabs on the top - panel tabbed (read only tree listing of VO1 and VO2)
    I have 2 tabs in the bottom corresponding to the top tabs. (panel form for VO1 and VO2)
    How do I make
    bottom tab2 to show up when the top tab2 is clicked and viceversa.
    Thanks

    You can do the same by setting the disclosed tab based on the disclosure listener as follows:
    Sample.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:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="Sample" id="d1">
    *<af:form id="f1">*
    *<af:panelTabbed id="pt1" partialTriggers="pt2 sdi3 sdi4" styleClass="AFStretchWidth">*
    *<af:showDetailItem text="Upper ShowDetailItem 1" id="sdi1"*
    *disclosureListener="#{SampleBean.onUpperShowDetailItem1Disclosed}"*
    *binding="#{SampleBean.upperShowDetailItem1}"/>*
    *<af:showDetailItem text="Upper ShowDetailItem 2" id="sdi2"*
    *disclosureListener="#{SampleBean.onUpperShowDetailItem2Disclosed}"*
    *binding="#{SampleBean.upperShowDetailItem2}"/>*
    *</af:panelTabbed>*
    *<af:panelTabbed id="pt2" partialTriggers="pt1 sdi1 sdi2" styleClass="AFStretchWidth">*
    *<af:showDetailItem text="Lower ShowDetailItem 1" id="sdi3"*
    *disclosureListener="#{SampleBean.onLowerShowDetailItem1Disclosed}"*
    *binding="#{SampleBean.lowerShowDetailItem1}"/>*
    *<af:showDetailItem text="Lower ShowDetailItem 2" id="sdi4"*
    *disclosureListener="#{SampleBean.onLowerShowDetailItem2Disclosed}"*
    *binding="#{SampleBean.lowerShowDetailItem2}"/>*
    *</af:panelTabbed>*
    *</af:form>*
    </af:document>
    </f:view>
    </jsp:root>
    *SampleBean.java:*
    import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    import org.apache.myfaces.trinidad.event.DisclosureEvent;
    public class SampleBean {
    private RichShowDetailItem upperShowDetailItem1;
    private RichShowDetailItem upperShowDetailItem2;
    private RichShowDetailItem lowerShowDetailItem1;
    private RichShowDetailItem lowerShowDetailItem2;
    public SampleBean() {
    public void onUpperShowDetailItem1Disclosed(DisclosureEvent disclosureEvent) {
    this.lowerShowDetailItem1.setDisclosed(true);
    this.lowerShowDetailItem2.setDisclosed(false);
    public void onUpperShowDetailItem2Disclosed(DisclosureEvent disclosureEvent) {
    this.lowerShowDetailItem1.setDisclosed(false);
    this.lowerShowDetailItem2.setDisclosed(true);
    public void onLowerShowDetailItem1Disclosed(DisclosureEvent disclosureEvent) {
    this.upperShowDetailItem1.setDisclosed(true);
    this.upperShowDetailItem2.setDisclosed(false);
    public void onLowerShowDetailItem2Disclosed(DisclosureEvent disclosureEvent) {
    this.upperShowDetailItem1.setDisclosed(false);
    this.upperShowDetailItem2.setDisclosed(true);
    public void setUpperShowDetailItem1(RichShowDetailItem upperShowDetailItem1) {
    this.upperShowDetailItem1 = upperShowDetailItem1;
    public RichShowDetailItem getUpperShowDetailItem1() {
    return upperShowDetailItem1;
    public void setUpperShowDetailItem2(RichShowDetailItem upperShowDetailItem2) {
    this.upperShowDetailItem2 = upperShowDetailItem2;
    public RichShowDetailItem getUpperShowDetailItem2() {
    return upperShowDetailItem2;
    public void setLowerShowDetailItem1(RichShowDetailItem lowerShowDetailItem1) {
    this.lowerShowDetailItem1 = lowerShowDetailItem1;
    public RichShowDetailItem getLowerShowDetailItem1() {
    return lowerShowDetailItem1;
    public void setLowerShowDetailItem2(RichShowDetailItem lowerShowDetailItem2) {
    this.lowerShowDetailItem2 = lowerShowDetailItem2;
    public RichShowDetailItem getLowerShowDetailItem2() {
    return lowerShowDetailItem2;
    Thanks,
    Navaneeth

  • Change ADF tab color when selected (af:menutabs and af:gomenuitem)

    I have the following code in my jsf page:
    <af:menuTabs>
    <af:goMenuItem text="tab1" destination="tab1.jsp"/>
    <af:goMenuItem text="tab2" destination="tab2.jsp"/>
    <af:goMenuItem text="tab3" destination="tab3.jsp"/>
    <af:goMenuItem text="tab4" destination="tab4.jsp"/>
    </af:menuTabs>
    When I click on tab2 the color does not change, thus it is confusing to know which tab the user is currently on. There is a selected attribute that you can set to true (e.g. <af:goMenuItem text="tab1" destination="tab1.jsp" selected=true/>), but that always leaves tab1 as the selected tab. I tried using a backing bean but there is no attribute to fire off when the user actually clicks one of the tabs. I even saw some examples of using af:commandmenuitem instead of af:gomenuitem, but there is no selected attribute to set to true. Any help? I have seen this done in many ADF applications. TIA.

    unfortunatelly you must control them in a javaBean
    if you put selected=true always be selected, you must make a bean that return true o false to this selected parameter on all the items,
    i makeo one bean to control the selected property in a commandmenuitems but it can be the same.
    public class CapBean{
    private boolean foro = false;
    private boolean material = false;
    private boolean evaluacio = false;
    private boolean pec = false;
    private boolean macros = false;
    private boolean calendari = false;
    private boolean normes = false;
    private boolean mail = false;
    public CapBean() {
    public void controlCap(String actiu){
    if (actiu=="foro"){
    this.setForo(true);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="material"){
    this.setForo(false);
    this.setMaterial(true);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="evaluacio"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(true);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="pec"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(true);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="macros"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(true);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="calendari"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(true);
    this.setNormes(false);
    this.setMail(false);
    } else if (actiu=="normes"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(true);
    this.setMail(false);
    } else if (actiu=="mail"){
    this.setForo(false);
    this.setMaterial(false);
    this.setEvaluacio(false);
    this.setPec(false);
    this.setMacros(false);
    this.setCalendari(false);
    this.setNormes(false);
    this.setMail(true);
    //JSFUtils.storeOnSession("capMenu", this);
    public void setForo(boolean foro) {
    this.foro = foro;
    public boolean isForo() {
    return foro;
    public void setMaterial(boolean material) {
    this.material = material;
    public boolean isMaterial() {
    return material;
    public void setEvaluacio(boolean evaluacio) {
    this.evaluacio = evaluacio;
    public boolean isEvaluacio() {
    return evaluacio;
    public void setPec(boolean pec) {
    this.pec = pec;
    public boolean isPec() {
    return pec;
    public void setMacros(boolean macros) {
    this.macros = macros;
    public boolean isMacros() {
    return macros;
    public void setCalendari(boolean calendari) {
    this.calendari = calendari;
    public boolean isCalendari() {
    return calendari;
    public void setNormes(boolean normes) {
    this.normes = normes;
    public boolean isNormes() {
    return normes;
    public void setMail(boolean mail) {
    this.mail = mail;
    public boolean isMail() {
    return mail;
    in the selected property i put
    <af:commandMenuItem text="#{res[\'benvingut.menu.foro\']}"
    action="#{capBean.toForo}"
    selected="#{capBean.foro}"
    onclick="parent.topFrame.location.reload()"/>
    i need to reload the page to see the item selected, it's not so pretty but funtional
    i hope me help service you
    abel

  • An ADF tabbed portlet

    Hi All,
    I have these question regarding deploying portlet in Webcenter.
    Supposed I created an ADF application that has tabbed pane in it. The data in each tab is populated from web service. Each data in the tabs are independent information.
    If I portletized this ADF and add this portlet in my webcenter page, will I still be able to see the portlet with tabs?
    I have done only portlets that are single view and I was just thinking if this is possible. Thanks

    Of course you are :)
    That's just the idea of ADF portlets. You can make use of the complete ADF stack to create portlets. I have written dozens of ADF portlets that uses tabbedPane and never had issues with it.
    Mostly i also create a seperate taskflow or fragment for each tab so i don't have a single large JSPX file containing all the code. Especialy if the data is independent from each other.

  • ADF: Tab needs to be refreshed when I revisit the tab with Dynamic Tab shell

    Hi ADF Experts,
       we are using dynamic tab shell template in our project.I have many tabs opened in page ,When I navigate from one tab
    to another tab , current tab needs to be refreshed.
    when I navigate from tabs below mwthod will execute.
      public void tabActivatedEvent(ActionEvent action)
        RichCommandNavigationItem tab =
          (RichCommandNavigationItem) action.getComponent();
          Integer tabIndex = (Integer) tab.getAttributes().get("tabIndex");
          List<Tab> tabs = getTabs();
          Tab currTab = tabs.get(getSelectedTabIndex());
          if (currTab.isDirty())
            //JRS set the dirty tab as the current tab, so when the dialog handles 'YES'
            // it will be getting the correct tab index to close
            setSelectedTabIndex(getSelectedTabIndex());
            _showDialog(getTabDirtyPopup());
            return;
        setSelectedTabIndex( tabIndex);
      public void setSelectedTabIndex(int index)
        _tabTracker.setSelectedTabIndex(index);
        initTrackTabDirty();
        refreshTabContent();
      public void refreshTabContent()
        AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
        AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
    Help me if anyone knows how to achieve this.
    Thanks in advance.

    Hi,
    well, you refresh the tab but not its data. To refresh the data displayed in the tab you need to reset the region. For this, on the af:region reference of the tab, you need to call the "refresh()" method
    Frank

  • How to create custom adf tab in oim 11g for self service

    Hi all,
    I want to create a new tab in self service console by using out box code. Any suggestions please
    Thanking you

    Refer link below:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/customize_oim_ui_selfservice_tabs/customize_oim_ui_selfservice_tabs.htm
    regards,
    GP

  • ADF Tabe's Pagination link does not work when embedded in iframe

    Hi experts,
    When I embedded ADF table(with JSF) in iframe like below code, the pagination link does not work. Is it a known bug?
    <iframe width=100% height=500 src="http://rst-act3ct2.us.oracle.com:8888/test/faces/modify.jspx" frameborder="0" scrolling="no"></iframe>
    When I use <object> instead of <iframe>, the pagination works again. However, <object> could not be used in my project.
    Any idea on it?
    Thank you in advance.
    Regards,
    Tony

    Hi,
    if you are on JDeveloper 10.1.3 then chances are that the problem can be pointed back to the mismatch of HTML and JavaServer Faces. At least you should make sure you work with a recent JDeveloper 10.1.3 release
    Frank

  • Open HTML page as a tab inside ADF Page

    Hi All,
    I have a link in my adf(jspx) page,which should actaully open a html page in a new tab.
    I am not sure how to implement this.
    I am able to open jsp fragments on new tab.But not HTML Pages.
    Can anyone help me on this.
    Thanks in Advance.

    Vikram
    Thanks for the reply.
    I want the tab to be opened inside the adf page itself as adf dynamic tab..not as a separate tab in browser.
    Sorry for not framing the question to the point.
    Opening adf fragments in a new tab inside the adf page itself is possible.
    But am able not able to specify a html page to open in a new adf tab in the same adf page.
    Thanks.

  • How to add a new tab on modify user form

    Hi,
    In OIM11g, we can assign roles to a user using a tab named Roles in the modify user form. I want to add a new custom tab alongside all the already present tabs.
    The new custom attribute functions the same as 'Roles' in OIM.
    Does OIM11g provide any functionlity to do so?
    Thanks..

    Have you seen the 11g tutorial thing about adding a Custom ADF tabs in OIM Self Service Console at
    http://apex.oracle.com/pls/apex/f?p=9830:37:3242381082783477::NO:RIR:IR_PRODUCT,IR_PRODUCT_SUITE,IR_PRODUCT_COMPONENT,IR_RELEASE,IR_TYPE,IRC_ROWFILTER,IR_FUNCTIONAL_CATEGORY:,,,OIM_11g,,,
    Is that any help?
    Also, more general advice on customising OIM 11g is available at:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/uicust.htm
    Try metalink too because there may be examples of how to do stuff with OIM 11g there.
    Good luck

  • How to custom skin PanelTabbed and Popup components in ORACLE ADF?

    Hi,
    I'm new to this framework. I'm trying to custom skin ORACLE ADF tab and popeup components to match with a design provided by my client. But I'm facing challenges in styling them. Does anybody did this before? Or do we have any sample code on the web to follow. Please Guide.
    Thanks,
    Srini

    Hi.
    I think that everyone did it before . Take a look into official doc:
    Creating and Managing Skins - 11g Release 1 (11.1.1.7.0)
    Selectors for Skinning ADF Faces Components
    The last link have the full list of Skin Selectors (CSS properties that you can change) of the ADF Components.
    There is also an IDE helpful to create Skin call ADF Skin Editor: Application Development Framework Downloads
    I hope it helps.
    Regards.

  • Multi tab - tabbed panel

    Hi All,
    I have divided the jspx page onto 2 parts vertically.
    Top section has 2 tabs(panel tab) to show customer listing on tab1 and vendor listing on tab2.
    Bottom section has 2 tabs(pannel tab).
    Tab1 is corresponding to tab1 on the TOP section displays specific customer details chosen in tab1(top tab1) .
    Tab2 is corresponding to tab2 on the TOP section displays specific vendor details chosen in tab2(top tab2).
    The problem is Tab1 on the top section does not hooked up to Tab1 on the bottom section. Same problem with tab2.
    Any thoughts on this please?
    Thanks

    As John suggested, you could have a single panel tab having showdetailitem showing the information.
    If you still need the way you have designed, you can achieve the same with programmatic approach.
    Take a look at this thread which has a sample based on your use-case:
    Re: adf - tab - navigation
    Thanks,
    Navaneeth

  • 'UIComponent is null' error while opening a tab in ADF

    Hi,
    I am using JDeveloper 11.1.1.5.0
    I am navigating from one ADF page to other in my ADF task flow. 2nd ADF page is having multiple tabs with showDetailItem. My requirement is that i need to open a particular tab in 2nd page from 1st page
    (1st page) ---> (2nd page) (here a particular tab should open)
    I have made use of NavigationHandler in my code which is working fine. But when I am trying to open a tab during navigation, I am getting 'UIComponent is null' error. below is the code I am using
        public void openDataTab(ActionEvent actionEvent) {
            NavigationHandler nvHndlr = FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
            nvHndlr.handleNavigation(FacesContext.getCurrentInstance(), null, "showOverview");
            AdfFacesContext.getCurrentInstance().addPartialTarget(panelTabbed);  //getting 'UIComponent is null' error here
            dataTab.setDisclosed(true);
            transactionTab.setDisclosed(false);
        }I am getting the error only for the first time. From second time onwards, the functionality is working fine.
    Please let me know how to resolve this error.
    regards,
    Rajan

    Hi,
    this code should not be used for navigation as it bypasses JSF lifecycle methods
    //don't use
    NavigationHandler nvHndlr = FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
    nvHndlr.handleNavigation(FacesContext.getCurrentInstance(), null, "showOverview");
    To solve your issue, add a managed bean in pageFlowScope or use an attribute inpageFlowScope that you use to identify the tab to be opened. Then in the second page, use the "disclosed" property on the showdetailItems to evaluate the pageFlowScope information and then return true or false respectively. The tab that evaluates to "true" will be opened.
    Frank
    Ps.: JSF component trees are created upon render response phase, which is why your programmatic attempt (which happens during invoke_application phase fails

  • Maintaining different sessions in browser tabs in ADF 11g application

    I have a simple ADF 11g application which uses ADF BC 11g.
    I want to maintain different sessions between the tabs in the same browser.
    Currently it is messing up with session variables. Please reply to me ASAP.
    Thanks,
    Bobby
    Edited by: 866444 on Jun 16, 2011 11:35 AM

    Assuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.

  • ADF EBS Integration - How to open the ADF page in new tab or window

    Hi,
        We are building ADF custom applications and want to integrate them with EBS R12 (12.1.3) through Responsibilities and Menus.
    We have achieved session sharing and launching the Custom ADF app from EBS menu. The problem is, the Custom ADF page opens in the same page.
    Is there anyway to open the ADF application in new tab or window while launching from EBS Menu ? 
    Highly appreciate your help on this.
    Thanks,
    Ananthakumar

    Bhaskar,
    Refer old threads by searching for "new window" / "_blank"
    - Senthil

Maybe you are looking for

  • How can I get Hi8 video captured in NTSC Standard, to display as 4:3 when DVD is played on TV?

    I have been capturing Hi8 tapes of our family, using a Sony analog-to-digital converter and Adobe Premier 10's NTSC Standard (4:3) preset. However, when I use Premiere Elements 10 to burn the digital files to DVDs and then play them on a Sony DVD pla

  • VPN connection no longer working - Lion 10.8.5

    I have been successfully connecting through VPN to my work server for over one year on my laptop.  A week or so ago I could no longer connect.  Error is "The VPN server did not respond.  Verify the server address and try reconnecting."  I have had th

  • Certificate creation for inspection lot

    Dear all,    Is it possible to create test certificate for inspection lot of type 04. what is procedure to create this test certificate. Thanx & regards, Harish Parab.

  • Windows 8 installation

    I  have a 15" MBP 4,1 running OS 10.2.2. I started Bootcamp 5.1.3 to install Windows 8. But BC appears only to support Windows 7, so I have not gone past the Select Tasks screen.   Is it not possible to install Windows 8 on my MBP?

  • BC set for Rollout

    Hi All We are doing Global rollout, already 1st phase is live and 2nd in testing phase, 3rd is in realization phase. Now the ask is to use BC set functionality so that in future we can find out where the system was at end of each rollout in terms of