Navigation case problem

I have page A.jspx and page B.jspx
Both calls for page C.jspx
In page "C" I have a "Back" button , I want to go back to page that initiate action

Hi,
the global navigation rule only helps if the request is supposed to go back to a single common page. In the scenario you describe you create a navigation case from A -- > C and B --> C and either
- write the viewId to return to into a session attribute
- pass the page return value in a parameter
In the first option, the navigation back would be through setting the stored viewId as the new viewId on the Faces ViewRoot.
The latter case would use navigation rule, returning the passed in parameter from a action method
Frank

Similar Messages

  • Conditional rendering of JSF page depending on Navigation case

    Hi
    Can we conditionally render the JSF page depending the navigation case, which brought us in that page..
    Lets say that a page A does both Edit and create operations , we have two navigation cases "edit" and "create" directing to this page from main page. can we modify the components in the page depending on the navigation case.
    Thanks in advance
    Pradeep

    Hi Grant,
    your reply was helpful. i got into another scenario :-) where i need to know the navigation case which brought us into the page.
    I have a page flow in adf which can be called by client applications both as a popup or a regular window. the ADF's dialog framework more or less solves my requirement. But to return values from dialog, i have to use "returnFromDialog" method on click of button in the popup window. as i am reusing the page i would write a conditional statement to show diff behaviour when launched as a popup.
    my problem is that i do not want client application to set any parameter in the managed bean (this would get client apps into the implementation issues, causing unnecessary complexity). This again brings me back to the same question ability to KNOW (get handle of) the "navigation case".
    Pradeep

  • Error: Unable to find matching navigation case

    Hi all, after I wrote this thread:
    ui:include if I pass a variable, some one can tell me some tips?
    I do some step forward and now the application returns this error:
    Unable to find matching navigation case with from-view-id '/include.xhtml' for action '#{stiliPortaleController.prepareEdit}' with outcome 'logic.action(WEB-INF/jspf/stiliPortale/Edit.xhtml)'
    Can some one help me?
    The include.xhtml is on "web root" and the second page "Edit.xhtml" is on WEB-INF/jspf/stiliPortale/Edit.xhtml... the strange thing (for me that I'm newbie) is that I have these two method:
         public String include_page(){
    String value="WEB-INF/jspf/stiliPortale/List.xhtml";
         setPageIncluded(value);
         return "include";
    public String action(String value)
    setPageIncluded(value);
    return "include";
    and the first method works properly the second nope!
    The difference is that the first method is called in a JSF page, the second in a managed bean!
    What shoud I do?
    Thank you for your help!

    As usual I continued to search the solution of my problem and I find something about the Fluent navigation.
    Now I add in my faces-config.xml this code:
    <navigation-rule>
    <from-view-id>/include.xhtml</from-view-id>
    <navigation-case>
    <from-action>#{stiliPortaleController.prepareEdit}</from-action>
    <from-outcome>logic.action('WEB-INF/jspf/stiliPortale/Edit.xhtml')</from-outcome>
    <to-view-id>/include.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    ...and now the error disappeared but... the page doesn't change!
    The code is this, index.xhtml I have:
                        <h:commandLink action="#{ logic.action('WEB-INF/jspf/stiliPortale/List.xhtml') }" value="Show All StiliPortale Items"/>
    ...and it's work recalling this method in logic.class:
    public  void setPageIncluded(String pageIncluded)
    this.pageIncluded=pageIncluded;
    public  String action(String value)
            setPageIncluded(value);
        return "include";
    ...and in include.xhtml I have this code:
    <ui:include src="#{logic.pageIncluded}"/>
    ...and, as I said, It works properly because the application open the page include.xhtml included the List.xhtml.
    Now the problem is the in the List.xhtml I have this link:
                                <h:commandLink action="#{stiliPortaleController.prepareEdit}" value="#{bundle.ListStiliPortaleEditLink}"/>
    ...and in StiliPortaleController.java I have this method:
        public String prepareEdit() {
            current = (StiliPortale) getItems().getRowData();
            selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
    return "logic.action('WEB-INF/jspf/stiliPortale/Edit.xhtml')";
    ...I think the problem is that when I recall the method action the second time it initialize a new logic object and the include.xhtml take the variable from the first object! Could it be correct?
    If it is correct, how can I resolve this new problem?
    Thank you for your help!

  • Taskflow navigation case to same page.

    In my application, I have a taskflow with a control flow case which navigates to the same fragment. I can't get it to work. If I change the navigation case to navigate to another fragment, it works. Is there a known problem with navigation to the same fragment within taskflows or am I missing setting some parameter. The only thing different about the page is it has a train by itself and I am not using the train behavior of the taskflow. Any help would be appreciated.
    Thanks,
    Suneetha.

    Hi Frank,
    Your understanding of my usecase is very accurate. Currently, I click the button and nothing happens, the dynamic region does not refresh to display the updated page fragment. There are no error messages in the logs either, the action listener in the managed bean is being called and I have verified that the outcome is the same as the control flow case.
    Could you give me some pointers for debugging where the control flow case is evaluated and redirected to the appropriate page fragments?
    Thanks,
    Suneetha

  • JSF in Jdeveloper - navigation case not working

    code in my faces-config.xml:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/here.jsf</from-view-id>
    <navigation-case>
    <from-outcome>goThere</from-outcome>
    <to-view-id>/there.jsf</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/there.jsf</from-view-id>
    <navigation-case>
    <from-outcome>goHere</from-outcome>
    <to-view-id>/here.jsf</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    When I create a command button on the two pages and set the Application Action correctly, when I run the app the button does not take me to the other page. No error messages.

    MSorbera here, thanks - just tried that, still doesn't work, here's the code in adfc-config.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="here">
    <page>/here.jsf</page>
    </view>
    <view id="there">
    <page>/there.jsf</page>
    </view>
    <control-flow-rule id="__1">
    <from-activity-id>here</from-activity-id>
    <control-flow-case id="__2">
    <from-outcome>goThere</from-outcome>
    <to-activity-id>there</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__3">
    <from-activity-id>there</from-activity-id>
    <control-flow-case id="__4">
    <from-outcome>goHere</from-outcome>
    <to-activity-id>here</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    </adfc-config>
    And here's the command button code on one page:
    <h:commandButton value="Go There" id="cb1" action="goThere"/>
    And the other:
    <h:commandButton value="Go Here" id="cb1" action="goHere"/>

  • How to set a navigation case as the action for a CoreCommandButton

    Hi all,
    I dynamically display a CoreCommandButton on my jspx using code in the backing bean.
    I want to set a navigation case to this button so that I can navigate to a separate page when clicking the button.
    CoreCommanButton has a setAction method which needs a methoBinding. If my navigation case is "goMaintainPr", how do I set this as the action of my button? Can I create a methodBinding for my navigation case? If so how?
    Cheers.
    Kaz.

    I am creating my CoreCommanButton in the backing bean like:
              CoreCommandButton editElemBtn = new CoreCommandButton();
              editElemBtn.setId(elemCd + "-edit");
              editElemBtn.setText("Edit");
    and then add it to the page from the backing bean. So I need to be able to set the action to the above button like:
              editElemBtn.setAction(action); -- here, action needs to be a methodBinding. So i cannot just assign my navigation case as a String.
    How do I create a methodBinding with my navigation case ?

  • Accessing the "outcome"  value used in the navigation case

    I would like to dynamically create a view based on the outcome value used in the navigation case.
    How can I reference the outcome value from a backing bean?
    For example assume that a page (mypage.faces) can be accessed via outcomeA and outcomeB. I want to know which outcome was used in the navigation case.

    Not without implementing a custom navigationhandler.
    Alternatively you can also set the known outcome in a bean property and use it instead.
    public String submit() {
        this.outcome = "foo";
        return this.outcome;
    <h:outputText value="Outcome was: #{bean.outcome}" />

  • Unable to find matching navigation case from view ID.  Error 404

    Hi All,
    I basically wanted to jumpstart my ADF exploration so I am following the tutorial at this link. [http://www.oracle.com/technetwork/developer-tools/jdev/ccset22-all-099343.html]
    Everything looks good but when I click the Edit Button, I am encountering an error. What I did was I change the logging mechanism into a FINER in my WLS and from the logs,
    it prints below messages.
    <NavigationHandlerImpl> <getViewId> "JSF1013: Unable to find matching navigation case from view ID '/orders-flow/editOrders' for outcome 'save' and action 'save'
    <ViewHandlerImpl> <executePageToBuildView> About to execute view /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> Before dispacthMessage to viewId /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> After dispacthMessage to viewId /orders-flow/editOrdersI checked out the taskflow and it is basically calling a task-flow-return component.
    I followed everything but I cant make this example work... Any idea why? I checked out the DB and I notice that it has commited my Edit Transaction but I am getting a 404 on my page. Please help. Thanks.

    Hi Frank,
    I think I got the save control flow case.
    Can you help me check please if I miss something? I uploaded my project at this link. [http://www.4shared.com/file/QFcofTfj/BrowseEditApp.html]
    I am quite not sure if I miss something but I have done this project twice already but got the same result.
    Thanks
    Edited by: Marky on 13.4.2011 5:59

  • Add url parameter in navigation-case

    Hi All,
    We need to add a param to the URL when doing navigation, the param value is come from a session bean. I tried following, but not working, the param showed in URL is just what I typed in the <to-view-id>, i.e. not runtime replaced by the session bean attribute value... does any one know how to do this?
    <navigation-rule>
    <from-view-id>/user/PODList.jspx</from-view-id>
    <navigation-case>
    <from-outcome>detail</from-outcome>
    <to-view-id>/user/PODDetail.jspx?crmid=#{userInfo.userId}</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    Thanks so much.

    An update on this:
    I tried what Simon suggested. Turns out that it works perfectly !! It does exactly what I need. Thanks so much Simon. You are really an expert and great helper !!
    Thanks so much for your help. !!
    One more question to Simon and thread that this ViewHandler.getActionURL works perfectly with all those navigations that specified in Navigation case. Our app is also using a welcome-file-list in web.xml which specify the page to call when the app directory is called. e.g we have value like:
    <welcome-file-list>
    <welcome-file>/faces/user/firstpage.jspx</welcome-file>
    </welcome-file-list>
    So question is how to get this page also have the parameter appended?
    Thanks so much for any help.

  • ADF navigation lockup problem

    We are using ADF10133.We are experiencing navigation lockup problem.
    If the application idle for 30sec then navigation wont work.I have enter again application homepage url and go ..on. Of course user session still exist.
    Recently, Quarterly CPU patch applied to App server10133.Did any body experienced these kind of navigation lockup problems?
    Thanks in advance
    kaleem

    Sorry for being a bit annoying...
    But .... no one has answered my question yet......though you promised...
    Eventually I’ve somehow solved the trouble by replacing the “ panelBinding.releaseDataControl ” with
    “ panelBinding.release(DCDataControl.REL_VIEW_REFS)
    panelBinding.getBindingContext().remove(panelBinding.getName());”
    In the doDefaultCloseAction() method
    it seems like it works good now.
    I reconstructed a bit my code
    Now I’m invoking the internal frames this way:
    private void jMenuDeptVoc_actionPerformed(ActionEvent e) {
    FormCreateDeptView deptVoc = new FormCreateDeptView();
    this.getJMenuDeptVoc().setEnabled(false);
    deptVoc.setBindingContext(panelBinding.getBindingContext());
    this.deskTopPane.add(deptVoc);
    I looked through the following how to:
    http://www.oracle.com/technology/products/jdev/howtos/10g/jcmultiform/index.html
    there is an additional method there, which is invoked before creating a new frame where the binding container for the panel binding is created:
    private void createDetailBinding()
    String detailBCName = "DetailFormUIModel";
    if (panelBinding.getBindingContext().get(detailBCName) == null)
    DCBindingContainerDef bcdef = (DCBindingContainerDef)JUMetaObjectManager.getJUMom().findLoadedObject("sample.DetailFormUIModel");
    DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
    bc.setName(detailBCName);
    panelBinding.getBindingContext().put(detailBCName, bc);
    But since createBindingContainer(BindingContext) method has been deprecated in 10.1.3 i skipped this step.
    Nevertheless my program is working now I still wonder if the way I’m doing it is right.
    Thanks. Alex.
    Edited by: Timin on Apr 2, 2009 8:28 AM

  • Getting the error message The content of element type "navigation-case" mus

    I am getting this error message when I start the Jboss server ,,
    What could be reason , I have checked in and out , Everything is correct it seems,.
    The content of element type "navigation-case" must match "(description*,display-name*,icon*,from-action?,from-outcome?,to-view-id,redirect?)"
    Please respond
    Thanks
    Suresh

    That's an XML validation error for faces-config.xml. What is the content of that file?

  • How to Force JHS do not generate navigation cases for Groups?

    Hello
    I have already seen "Overwrite faces-config and navigation rules " property for Group in JhsApp deff .But It does not work .How Force JHS do not generate navigation cases for Groups? and another question is that how can I customize navigation case generation in JheadStart?
    Thanks

    Hi,
    You are right: the navigation rules in the main faces-config file are overwritten, even if you uncheck these flags. Here is the solution:
    If you want to preserve some of the navigation rules in the main faces config: alter the velocity template for faces-config. You can only switch off the entire generation of faces-config.xml; not individual parts.
    If you want to add a special navigation rule: add it to the group faces config file.
    If you want to preserve post-generation changes to the group faces config file: uncheck 'generate controller group?' or put it in the templates for that group.
    Note: the flag 'Overwrite Faces-Config beans and Navigation Rules?' has become obsolete, you should only use 'Generate Controller Group?'.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

  • User home folders Upper and Lower case problem in FPN

    Hi Sdn,
    I am facing a wiered problem in FPN. I configured FPN between EP and BI portal.
    EP is using UME as LDAP
    BI portal is using UME as ABAP
    configured KM folders on to EP using Webdav scenario
    now when I try to save KM book marks, it is saving perfectly in EP
    the problem is saving bookmarks in the userfolder with Uppercase like USER
    the KM favorites iView with the path (/alias/userhome/<user.id>/favorites)is trying to look into the userfolder with lowercase like user and displaying nothing
    plese help me in solving this for KM iView to ignorie case
    Thanks!
    Regards
    Srinivas

    Hi Simon,
    I understand that this problem is because of UME as LDAP and ABAP .
    I tried to create a KM Navigational iView for favorites folder /alias/userhome/<user.id>/favorites.
    but here problem is I am not able to convert user.id to Ucase
    As per your suggestion, it is not possible to create one KM navigational iView to peep into multiple folders
    for this the solution might be in two ways. creating KM iView to ignore case and look into the user home folder
    if so, How to make the iView to ignore case
    second option is to configure BEx broadcaster to publish in USER.lower folder
    is so, How to achieve this
    being people started using FPN most frequently and moving BI to seperate Portal and use ABAP as ume.
    users will start encounter this problem most often. SAP has to come out with solution for this
    Srinivas

  • Master-Detail Navigation Behavior Problem

    Hello,
    I am having problem in navigating from Master to Detail.
    Scenaio:
    Master1 ---> Master2 ---> Detail
    Problem and Requirement
    I navigate to Master2 from Master1 properly.
    When I click list item of Master2 and navigate to Detail, my master page automatically navigates to Master1.
    There is no error or such. Detail page gets loaded perfectly but navigation from Master2 ---> Master1 is not required which is happening automatically.
    I am using this.oRouter.navTo() method.
    Any idea how to deal with this?
    Kind regards,
    Rauf

    Hi Sakthivel,
    We solved it . And you guessed right, using scaffolding and it was related to routes only.
    Modified routes as follows:
    masterPageRoutes:{
            "master":{
            pattern:"",
            view:"master",
                subroutes: [
        pattern: "master/{contextPath}/detail",
        name: "detail3",
        view: "detail"
            "master2" : {
            pattern : "master2/{contextPath}",
            view : "master2",
            subroutes: [
      pattern: "master2/{contextPath}/detail",
      name: "detail2",
      view: "detail"
    Referred DEMO APP and following URL:
    SAPUI5 SDK - Demo Kit
    Thanks for your kind attention to my problem. Keep it up
    Regards,
    Rauf

  • Navigational Attribute Problem in Input Query

    Hi,
    I am having a problem in input query implementation which uses a navigational attribute. I have, for eg, only one char 'customer' in rows; i want to exclude the customers with the status D (deleted) from displaying (Status is nav. attr. of customer).  I tried this by restricting in filter, Status D-"exclude". But as soon as I do this, query no longer remains input ready! (I also tried putting the same restriction in Default Values area rather than Filter, but ended with the same result )
    I discovered that if, furthermore, I put Status in rows (with the above said restriction still remaining), query is again input ready.
    Can't we exclude values in the filter on an input query? I want to know if this is a restriction with IP or a bug?

    Hi Gregor,
    Thanks for the explanation. But this makes me wonder, because due to this restriction one of the BIG advantages queries had over the planning layouts of BPS, seems to be gone. I mean, using navigational attributes for filtering; if we have to always have a single value restriction on a nav. attr., this will really be restricting. Is it expected that this will be changed in a later SP?
    And there is another problem that is coming due to this. When I use the exclude filter and also the nav. attr. Status in rows, then the query becomes input ready, but there are warning messges displaying when the query opens saying -
    Characteristic Customer has no master data for "C1"
    Characteristic Customer has no master data for "C2"
    etc... (these are the customers with status D). We are on SP15.
    Please suggest what should I do to get rid of these messages?
    Edited by: Mayank Gupta on Apr 10, 2008

Maybe you are looking for

  • Spreadsheet component - bottom grid line not displaying in swf file

    Hi, I'm having an issue with the spreadsheet component. I'm using the "Ignore blank cells in Values" option on the behavior tab. This works fine. The problem I'm having is the bottom grid line in the spreadsheet table is not displaying in the swf fil

  • How read data from *.LB File in LabVIEW?

    Hi dear specialist, How I can read data from  *.LB File in LabVIEW? Thanks` Hovo

  • Whats the purpose of reason codes?

    Hi Experts, In many scenarios we add reason codes e.g. all the actions like terminations, new hire, rehire, change in position etc. Now our organization is adding a new reason code for termination action with reason code "termination due to LOA".  An

  • Maximum image size with createImage() in applet

    hi, I am making a simple Horizontal scrolling stocks ticker. I made an offscreen image with all the companies,prices etc on the image and just change the x position of the image. My problem is that when the data increases the applet fails to create t

  • RE-FX - Transaction RERAPP - No cash flow planned records found in selected

    Hi everybody. I am running the transaction RERAPP - periodic posting: contracts, and the following message is returned: No cash flow planned records found in selected period Message no. RERAPP012 Someone knows how to solve? Thank you. Lucas