3 Replies Latest reply: Jan 9, 2013 7:26 AM by MukeshSPatil RSS

    How to navigate on panel tabs using link ?

    MukeshSPatil
      I have a page where i am using panelTab. i have many tabs similar to excel sheet. On first tab i have read only table data and remaining have relevant data for each row.
      Based on selected row in first tab i want to navigate on other tabs.

      How can achive this through goButton or URL ? How can i use hyperlink type behaviour in ADF page ?

      I am using Jdev 11.1.1.5

      Thanking you.

      Mukesh
        • 1. Re: How to navigate on panel tabs using link ?
          Puthanampatti
          Using table's selection listener, set disclosed property and add partial target (use showdetail bindings).
          • 2. Re: How to navigate on panel tabs using link ?
            Akash_Chaturvedi
            add a column in the table with a af:commandButton or a Link
            on that button/link's action generate a method in your managed bean.

            in that method use showDetailItem's binding component
            sdi1.setDisclosed(true);
            <font color="red"> // here sdi1 is your showDetailItem's binding variable you want to show.</font>
            AdfFacesContext.getCurrentInstance.addPartialTarget(pt1);
            <font color="red"> // here pt1 is your panelTabbed.</font>
            • 3. Re: How to navigate on panel tabs using link ?
              MukeshSPatil
              I have added a link in table. the link action has a bean which enables and refresh the tab. I added below code

              public class NavigationBean {
              public NavigationBean() {
              }
              private RichPanelTabbed pt_pt1;
              private RichShowDetailItem showDetailItem1;
              private RichDecorativeBox pt_db2;
              private RichPanelSplitter pt_ps1;
              private RichPanelStretchLayout pt_psl1;
              public String tabNavigation() {

              // Add event code here...
              System.out.println(">>>>>>>> Inside Navigate Beane");
              showDetailItem1.setDisclosed(true);
              AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
              adfFacesContext.addPartialTarget(pt_pt1);

              return "";
              }
              getter and setter method or all varibles.


              However this does not work ? Am i missing something ?

              My showDetailItem1 and panelTab are in a template which has <jsp:root as a staring point . Is it the pain point ?