Page navigation within tabs in JSF

How can i navigate to another page within a tab in JSF?
I am using html div tags to put tabs on my page. Now i want to click on a link in page1 under TAB1 and move to page2 under TAB1.
How can i achieve this?
I have defined the page navigation rules in faces-config.xml but it does not work. Even after clicking on a link it still displays page 1 under tab1.
I have checked that my backing bean is working fine and it is able to get data from database.

Some resources:
http://blogs.sun.com/divas/entry/tabbing_thru_the_tulips
http://blogs.sun.com/divas/entry/using_the_tab_set_for

Similar Messages

  • JSF Page Navigation from Tab to another page and back to tab

    I have a Page with tabs and a button in each of those presenting a Table and "Create Button"
    I would like to go to a new page and come back to the same active tab.
    How do I set the page navigation properties?
    Right now I am in
    Page1(Tab3) Button click-> page2(Create)->Page1 is showing a wrong active tab.
    Can we tell page navigation to go activate a tab it came from?
    Message was edited by:
    spattabiraman

    Hello, maybe if u declare a sessionbean variable as string, in the page u want to open thew tab, in init() you must call the session bean withh the name of the tab u are calling, for example:
    getSessionBean1().setSeltab("tab1");
    i hope it can help
    Beltazor

  • Navigation Within TABS in a Multitabbed Page

    I need a way navigate through the different tabs present on a page. Generally what I use is a GO_BLOCK procedure to a field present on the other tab to navigate.
    Is there any other means so that I can navigate through the tabs, by clicking buttons like 'Go To Next Tab'.
    I mean if I create a button like this, now what kind of trigger do I need and what to write in the trigger.
    Regards,
    Ani

    Fine.
    Now the reason that I want some alternative for GO_BLOCK is that when I run the code from the Oracle Application Server 9i or 10g I am facing some problems like the buttons in which the GO_BLOCK triggers are written to navigate to the respective tabs are not working properly.
    Sometimes they are working and sometimes they are not working. It is inconsistent.
    But when run from standalone systems it is working fine.
    What can be the reason for such inconsistency.
    Can anyone suffice me with any solution or should I consider it to be a problem with the server.
    Regards,
    Ani.

  • Page to page navigation while tabbing

    hi,
    I am working on Adobe 11 Livecycle Designer. I want the tabbing order to traverse from LAst page to First PAge. How can I go about it.
    what are the ways by which I can change the tabbing order from Last page to First Page.
    thanks

    Window>Tab Order

  • Page navigation tab location question!!!

    how do i change the location of the page navigation link tabs, currently on the top of the page, to the left hand side?

    You can't do it in iWeb. All you can do is deselect the showing of the navigation menu in Inspector, and then create your own vertical nav bar wherever you want it. Here is an example of a webpage with a 'homemade' vertical navigation pane.

  • Page nivugation using tab

    How to achieve page navigation through tab. i have successfully done it by using hyperlink.

    Note: This thread was originally posted in the [Java Database Connectivity (JDBC)|http://forums.sun.com/forum.jspa?forumID=48] forum, but moved to this forum for closer topic alignment.

  • 11g Forms Tab-Page Navigation

    I am using Forms 11g on Solaris.
    A main navigator form opens another form which has a content canvas, tab-page canvas and (3) stacked canvases.
    The problem I am having is with tab-page navigation.     CTRL+TAB ( next ) and CTRL+SHIFT+TAB ( previous )
    As long as I do not initiate navigation from an item on a stacked canvas, navigation is as expected ( between tab pages only ).
    However, navigating from an item within a stacked canvas causes navigation to the parent form.
    Repeating the tab navigation keys from the parent form returns to the called form.
    Note that both key-combinations simply toggle back and forth.
    I have found no documentation on tab-page navigation so any help / insight is greatly appreciated !
    Mike

    Hi Soofi !
    Changing block order in the called form does not affect the navigation between tab pages.
    Note in my question that the resulting undesired navigation is to and from the calling form ( which only has one block ).
    Navigation between items and blocks works as expected.
    To reiterate -
         The only navigation that fails is when I attempt to CTRL+TAB or CTRL+SHIFT+TAB to another tab page from within an item on a stacked canvas.
         Attempting this navigation results in moving the cursor focus to the calling form.
         Repeating the attempt from the calling form moves back to the called form.
         None of your methods mention navigation between forms .
    Thanks for your interest.

  • JSF 2.0 page navigation vs direct page access

    I've been experimenting with JSF for some time now and I still don't understand the page navigation part. I know that in JSF, if you aren't using the redirect option in navigation that the URL is one page behind the page you are on.
    I've seen articles where people say you should put your pages in a directory under WEB-INF to protect against directly accessing the page. I don't understand how you can create an application that is multiple pages using that option, because won't you run into the problem of having a form with an action URL of WEB-INF/somepage.xhtml?
    I've also read articles that say the way to fix this is to add security-constraints to web.xml that prevent "direct access" to pages, when you want your user to follow a page flow, such as start on page1.xhtml, then page2.xthml, then end on page2.xhtml. If page3.xhtml depends on page2.xhtml, the articles I've read say that a security constraint prevents users from simply requesting page3.xhtml out of sequence.
    And what happens if the page you are on encounters an error or the session times out, which page handles that? The one you're on, or the one from before that forwarded you to the page you're on?
    In this example, should page2.xhtml and page3.xhtml go in the root of the webapps directory, or in a directory under WEB-INF?
    Webapps
      index.xhtml
      page1.xhtml
      page2.xhtml
      page3.xhtml
      WEB-INF
        faces-config.xml
        web.xml
        page-directory
          page2.xhtml
          page3.xhtml

    A session timeout should actually net a view expiry exception.
    You do know that JSF 2.0 made page navigation that bit easier by not requiring you to do the XML configuration? There is now a convention built in plus some new components to add GET enabled requests to the JSF lifecycle (notably h:button and h:link). If you have an action method that returns the following:
    public String doSomething(){
      return "something";
    }then JSF will by default want to render a view 'something.xhtml' when you don't define any navigation rules. If you want to make that a redirect you can do this:
    public String doSomething(){
      return "something?faces-redirect";
    }(of course this is a prime target to turn into a utility method on a backing bean base class).
    Navigation rules are still necessary when you want to put views in a subdirectory, but at least this way you can greatly simplify general cases. Other than that I can only say: research research research because this material is vital to understand if you want to be productive using the framework; navigation and the 6 JSF lifecycle phases are two items you should put on the top of your list to hammer out until you really get it. A good JSF book will help you immensely there. Balusc's blog is also a good source of deeper understanding:
    http://balusc.blogspot.com/
    Most of his articles are on JSF 1.2 but most of the information still applies.
    Oh and its no surprise that you're a bit confused - this framework is not easy to pick up especially when you don't know any other web frameworks. If you keep running into a wall you should consider checking out something else like Wicket or Play framework. It might just be that JSF simply isn't the tool for the job you're trying to do.

  • JSF page navigation under WEB-INF

    If page navigation starts on index.xhtml, and then forwards to page2.xhtml, how can I then forward from page2.xhtml to page3.xhtml?
    WebContent
      META-INF
      WEB-INF
        lib
        pages
          page2.xhtml
          page3.xhtml
        faces-config.xml
        web.xml
      index.xhtml
    Controller.java
    class Controller {
    public String gotopagetwo(){
    return "/WEB-INF/pages/page2";
    public String gotopagethree(){
    return "/WEB-INF/pages/page3";
    index.xhtml
    h:commandButton id="submit" value="Submit" action="#{con.gotopagetwo}"></h:commandButton>
    page2.xhtml
    h:commandButton id="submit" value="Submit" action="#{con.gotopagethree}"></h:commandButton>

    I don't think so....
    If u read is u will know....
    http://courses.coreservlets.com/Course-Materials/pdf/jsf/02-Page-Navigation.pdf
    what I got is
    HTTP Status 404 - /abc/WEB-INF/jsp/main.jsf

  • Set Page Navigation tab to default open

    Is it possible to set the initial view to have the Page Navigation tab open?

    With Distiller and PDF Maker one can set the thumbnails to be embedded. And PDF Maker can be set to display the "Page and Bookmarks". With the Professional version of Acrobat one could create a Batch Process to set the open option to show the thumbnails and page.

  • In the previous Firefox, I could bring up a list of pages viewed within a tab, so could quickly jump back several pages, but I can't find this now.

    In the previous Firefox, I could bring up a list of pages viewed within a tab, so could quickly jump back several pages, but I can't find this now.

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Tab pages - Navigation Problem

    Hi,
    What key I should use, if I want to navigate to other blocks in the same tab page.
    Thanks
    KC
    null

    I had this same problem. I created a TAR on Metalink about it and Oracle's response to me was to see Note#1016812.4 "KEY-NXTBLK AND KEY-PRVBLK DO NOT FIRE ON TAB PAGE".
    Basically, those triggers perform differently for tab pages.
    Solution Description:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers are re-defined to mean "Next Tab Page" and "Previous Tab Page" when on a tab page.
    However, you can put calls GO_ITEM or GO_BLOCK into a WHEN-TAB-PAGE-CHANGED
    trigger instead of the KEY-NXTBLK and KEY-PRVBLK triggers. This way, when
    Forms thinks you want to change tab pages, you can change blocks.
    Solution Explanation:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers were redefined to be consistent
    with the Microsoft standard for tab sheets.
    null

  • Tab page navigating

    Hi!
    I have a canvas wich consist of four tab pages. Each tab page has a datablock. When the user clicks a tab, the cursor should be set in the datablock of the tab page. Any suggestions how to implement this?
    My problem is that I have not found a function that returns the active(the one that is visible to the user) tab page.
    Regards,
    Morten

    I think that you can use When-Tab-Page-Changed trigger on form level. In this trigger you can test :SYSTEM.TAB_NEW_PAGE variable.
    IF :SYSTEM.TAB_NEW_PAGE = ... THEN
    GO_BLOCK(...);
    END IF;

  • Partial Page Navigation in Oracle ADF

    Hi!
    I am looking for a solution in Oracle ADF for rendering different page content inside the current page defined layout using AJAX. Currently on command button i am able to send XMLHttpRequest but it is going to another page rather than rendering the other page content on the current page.
    my index page code is:-
    <?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="#{backingBeanScope.backing_index.d1}">
    <af:form id="f1" binding="#{backingBeanScope.backing_index.f1}">
    <af:commandButton text="Go"
    binding="#{backingBeanScope.backing_index.cb1}"
    id="cb1"
    action="#{backingBeanScope.backing_index.cb1_action}"
    partialSubmit="true"/>
    <af:panelFormLayout id="pfl1" binding="#{backingBeanScope.backing_index.pfl1}" partialTriggers="cb1"
    inlineStyle="height:403px;">
    <af:outputFormatted value="this is index page, click go button to go to home page" id="of1" binding="#{backingBeanScope.backing_index.of1}"/>
    </af:panelFormLayout>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_index-->
    </jsp:root>
    my home page is:-
    <?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="#{backingBeanScope.backing_home.d1}">
    <af:outputFormatted value="welcome to CAP" id="of1" binding="#{backingBeanScope.backing_home.of1}"/>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_home-->
    </jsp:root>
    my adfc-config code is:-
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="home">
    <page>/home.jspx</page>
    </view>
    <view id="index">
    <page>/index.jspx</page>
    </view>
    <control-flow-rule id="__9">
    <from-activity-id id="__10">index</from-activity-id>
    <control-flow-case id="__11">
    <from-outcome id="__13">success</from-outcome>
    <to-activity-id id="__12">home</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean id="__1">
    <managed-bean-name id="__3">backing_index</managed-bean-name>
    <managed-bean-class id="__4">view.backing.Index</managed-bean-class>
    <managed-bean-scope id="__2">backingBean</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1index.jspx-->
    </managed-bean>
    <managed-bean id="__6">
    <managed-bean-name id="__8">backing_home</managed-bean-name>
    <managed-bean-class id="__5">view.backing.Home</managed-bean-class>
    <managed-bean-scope id="__7">backingBean</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1home.jspx-->
    </managed-bean>
    </adfc-config>
    Thank you in advance

    Hi.
    You can do it using ADF TaskFlows,Create two page fragments as index.jsff and home.jsff.Also need to create container page(.jspx) to add taskflow and finally need to run Content page.Then you can navigates page fragments within taskflow using controle flow case(navigation between page fragments).
    See:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows.htm
    http://andrejusb.blogspot.com/2010/03/passing-parameters-from-adf-task-flow.html

  • Portlet Page Navigation

    Hi,
    Can we have page navigation in portlet? What I mean to say is, can we have a link inside a WSRP portlet page (A JSF page actually) to navigate to a different JSP/JSF page within the same portlet container? Seems like it only refreshes the same page.
    I am using Oracle WebCenter 11G and created a portlet application and consumed it inside webcenter. The portlet itself works fine, but when I am trying to click on a command link on the same page, it only refreshes the portlet, the actual page transition does not happen.
    Please help.
    Thank you,
    Kanchan Upadhyay

    Hi Yannick,
    I would like to express my gratitude for helping so much!! Following your suggestion ("Performance issue"), I have started using the taskflow thru WebCenter extended application and not as a portlet. I have created .jsff pages (just copied the contents of my old JSPs to them) and created all navigation rules the way a bounded taskflow would expect to be (task-flow-definitions.xml). Finally I created a JSP page and dragged and dropped the taskflow file on the JSP to create a region and use it inside that.
    Now, when I run it, I get the following exception..
    path:/PollingPortlet-PollViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1066)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1501)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = TN-WS722-122 TXID = CONTEXTID = TIMESTAMP = 1269955815847
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    Can you please guide me on this? I am totally clueless as the exception is not coming from any of my class!!
    Another problem that I am facing is, how can I validate users in such applications? What I mean to say is, if a user is logged in webcenter, and is trying to access my application exposed as a taskflow, that user's login information should automatically propagate in my application. For example, I may have an admin link in my application, that should only be available to admin user's and no other user should be able to check it. I am unable to implement such functionality. If you can guide on this, that would be helpful too.
    Many thanks in advance!!
    Thank you,
    Kanchan

Maybe you are looking for

  • How do I find and erase duplicated thumbnails in Aperture?

    I currently use Aperture 3.  Prior to using Aperture 3 I was using Iphoto and Iphoto unfortunately managed to duplicate photos by creating thumbnails 2 and even 3 or 4 times over.  This happened a couple of years ago and thus I cannot revert to a pri

  • HT4059 On recent purchases I cannot read the first several chapters due to an error message.

    I downloaded several books from the iBooks store - when opening them I see an error message that says "This page contains the following errors:  error on line 1 at column 1: Document is empty error on line 1 at column 1: encoding error below is a ren

  • Transaction iView in VC model

    Hi, I have basic question regarding VC modelling. Is it possible to use a EP transaction Iview in VC modelling to hand over input parameters for the transaction iView? I have created a transaction iView in EP that needs a document number as input. I

  • Using Open With to move files to PhotoMatix

    I've been trying to setup Bridge CC to open multiple raw files.  I changed the file type association to PhotoMatix and I can open with single RAW images with PhotoMatix but when I highlight multiple files in Adobe Bridge and try to send them to Photo

  • Sound Card Volume Too Low in Windows XP

    Hello, I have installed windows xp sp2 with bootcamp and everything is working perfect. the only problem is that - my sound card volume is low and when i restart in MacOS the sound card volume is super cool. what shall i do ? in windows xp i can see