Navigation Rule for multiple Links

Hi,
I am using Eclipse & JSF.Now my problem is i having multiple links on a single JSF page. Suppose A,B & C.
Now A calling a page called AA.jsp through a backing bean.
Simmillarly, B calling a page called BB.jsp through a backing bean.
Simmillarly, C calling a page called CC.jsp through a backing bean.
I have defined a navigation rule also for that. But ,what happens is when A calls AA.jsp it gets redirected to CC.jsp.
I dont know how it is going.
My faces-config.xml is..
<navigation-rule>
         <display-name>
         Maintanance1</display-name>
         <from-view-id>
         /Maintanance1.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Assign_Case.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
    <navigation-rule>
         <display-name>
         Assign_Case</display-name>
         <from-view-id>
         /Assign_Case.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Maintanance1.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
    <navigation-rule>
         <display-name>
         Maintanance1</display-name>
         <from-view-id>
         /Maintanance1.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Close_Case.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
    <navigation-rule>
         <display-name>
         Maintanance1</display-name>
         <from-view-id>
         /Maintanance1.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Cancel_Case.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
    <navigation-rule>
         <display-name>
         Close_Case</display-name>
         <from-view-id>
         /Close_Case.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Maintanance1.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
    <navigation-rule>
         <display-name>
         Cancel_Case</display-name>
         <from-view-id>
         /Cancel_Case.jsp</from-view-id>
         <navigation-case>
              <to-view-id>
              /Maintanance1.jsp</to-view-id>
         </navigation-case>
    </navigation-rule>
   Plz suggest me...
Regards.
Shrikant

You need to differentiate the navigation cases using from-outcome or from-action. You now say to JSF roughly: If the from view id is "maintenance.jsp" then you should go to "page1.jsp" AND "page2.jsp" AND "page3.jsp". This isn't going to work, you should tell JSF roughly: If the from view id is "maintenance.jsp" AND the outcome is "page1" then you should go to "page1.jsp" and so on. You can also just leave away the from-view-id and use from-outcome and/or from-action only, as I suggested before. This way you can go everything from everything: If the outcome is "page1" then you should go to "page1.jsp".
E.g.<h:commandLink action="page1">
<navigation-rule>
    <navigation-case>
        <from-outcome>page1</from-outcome>
        <to-view-id>page1.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
        <from-outcome>page2</from-outcome>
        <to-view-id>page2.jsp</to-view-id>
    </navigation-case>
    ... (etc)
</navigation-rule>Edited by: BalusC on 28-apr-2009 11:20 (sorry, a typo in the navigation cases)

Similar Messages

  • 'Activation error..' message when uploading rules for multiple territories

    Hi All,
    When trying to upload rules for multiple territories using Excel, only a few territories get activated and for the rest an error saying 'Activation Error for Function <hexadecimal values>...N: see following message for details' is displayed. It was found that this is due to the territories getting locked.
    The create_rule() and save_rule() methods of CL_CRM_FDT class and FM  CRM_TERRMAN_LINK_BUFFER_UPDATE are used for this functionality.
    Kindly suggest some ways to unlock or any other alternatives.
    Thanks & Regards
    Jagathshree

    Hi Leonie,
    Thanks for your reply.
    Error message below. The preview is fine . I can discount the first 2messages as its a new computer so plenty of disk space and upload doesn't seem to be interrupted. I have uploaded to iphoto before. have tried to upload 3times with the same error message. I had to photo my slides with a Kaiser Baas photo maker , which apparently doesn't scan but takes photos in megapixels of the slides. I am wondering now if the format is incompatible though they are jpg files or the colour type wrong. The image files are  around 1-3 mb each and  72 ppi. I think  I will now scan them properly with a scanner to 300dpi anyway to improve quality.
    Apple  talks about image files not being too big for uploading but gives no sizing of what too big is?
    Error message
    1. Upload Error. Loss of connection or file corruption during order upload may cause an incomplete order. Resubmitting your order usually resolves this issue.
    2. Low Disk Space. If your computer is running on low disk space, your files may be assembled incorrectly. Create more space by deleting unused files.
    3. Unreadable PDF file or image files. Files are sometimes assembled incorrectly due to CMYK or Grayscale color space. Use the RGB color space for best results.

  • How ti write BRF+ rule for multiple outputs?

    1.I have to get 3 outputs in ruleset.
    2.Created one descion table and displayed 3 outputs.
    3.For Function binded one table with 3 out puts.
    4.I have to pass values from descion tbale to function output through rule set?
    How can i write the rule?

    i CREATED NEW APPLICATION AND TRY TO CREATE NEW RULE.
    ITS SHOWING SAME ERROR.
    AOA (Data Object) : Multiple use of identical objects (AOA and STAMP_DUTY_TABLE-SD_STRUCTURE-AOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    FORM2_2 (Data Object) : Multiple use of identical objects (FORM2_2 and STAMP_DUTY_TABLE-SD_STRUCTURE-FORM2_2) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    MOA (Data Object) : Multiple use of identical objects (MOA and STAMP_DUTY_TABLE-SD_STRUCTURE-MOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help

  • Navigation rule for selectoneradio

    this my problem.
    i have a set of radio buttons.
    when user click on one then i need to naviagte to another new page.
    if any one have clue plz respond me..
    thanks,

    Page ?
    Is this Java related or DHTML related?

  • Multiple Use of Navigation-Rule

    Hi!
    Is it possible to use the navigation rules in the faces-config multiple times or must i create one rule for each link?
    I thought about this way:
    <navigation-rule>
       <from-view-id>/Page1.jsp</from-view-id>
       <from-view-id>/downloads.jsp</from-view-id>
       <navigation-case>
          <from-outcome>login</from-outcome>
          <to-view-id>/Login.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>The Page1.jsp redirects as well as the downloads.jsp to the Login.jsp. Both are in a navigation bar.
    Is there any workaround possible or must i add several navigation rules?

    The <from-view-id> is optional. Just remove them.
    By the way, I would rather use plain vanilla links (<h:outputLink> or just <a>) for plain navigation. Navigation by POST isn't always a good idea.

  • Navigation and Creating  a navigation rule at runtime

    Hi all,
    How can I create a navigation rule at runtime?
    I got all my pages (names and locations) stored in a database table.All my pages are jspx format.
    I don't want to create navigation rules for each page, Instead I want to use the location stored in the database and create a navigation rule to navigate to.
    I tried navigating using ServletRequest :
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpServletRequest  request = (HttpServletRequest)ectx.getRequest();
            request.getRequestDispatcher("/faces/Titles.jspx").forward(request,response);But it blows after the first call.
    is it possible to create a navigation rule in a Bean or is there another way to call jspx pages from a Bean without loosing the session.
    Can someone help me please.
    thanks in advance,
    Ahmad Esbita

    Ahmad,
    I don't know of any way to programatically create navigation cases at runtime. However, perhaps you could try creating a NavigationHandler decorator. Let's assume you have a function called "getViewIDforAction" that does the database lookup and returns the view ID for a given action code. You could do something like this:
    package my.code;
    import javax.faces.application.NavigationHandler;
    import javax.faces.context.FacesContext;
    public class MyNavigationManager extends NavigationHandler
       NavigationHandler _base;
       public NavigationManager (NavigationHandler base)
          super();
          _base = base;
       public void handleNavigation(FacesContext fc, String actionMethod, String actionName)
          String viewID = getViewIDforAction(actionName);
          if (viewID != null && ! "".equals(viewID))
             fc.getViewRoot().setViewId(viewID);
          else
             _base.handleNavigation(fc, actionMethod, actionName);
    }You'll also need this in faces-config.xml:
    <application>
      <navigation-handler>my.code.MyNavigationManager</navigation-handler>
    ...any other stuff...
    </application>Note: I haven't tested this or anything - just to give you an idea...
    Regards,
    john

  • Dynamic navigation - reading specified Navigation rules -how?

    Hi!
    for my application I need to read in the navigation rules which are specified in faces.xml. Depending on which data to show I want to check if there is a specific navigation rule for this object. If yes, this naviation rule is used, otherwise I want to use a generic template.
    E.g. if the object "order" should be displayed I want to check if there a navation rule named "templ_order". If so, I return this navigation rule, if not, I want to use "templ_generic".
    How can this be done?
    Or is there another way to do this ?
    Thanks for your help

    you have to override the NavigationHandler class

  • Procedure for multiple DB Links

    Hi Everybody,
    Hope everyone is doing fine. I am working on oracle 11g R2. I have one scenario on which i need your help guys. We need to have one one stored procedure which has comma seprated Database Links as IN parameter. This procedure has one update statement. So whatever multiple database links we will pass, this update statement needs to run only on those databases . Can you please help for options we can do to solve this scneario?
    It will something like this:
    CREATE OR REPLACE PROCEDURE TEST_SP(DB_LINKS_IN VARCHAR2, E_MGR_IN VARCHAR2, E_ID_IN NUMBER)
    AS
    V_SQL VARCHAR2(400);
    BEGIN
    V_SQL: = 'UPDATE EMPLOYEE@'||DB_LINKS_IN
    SET EMP_MANAGER='||''''||E_MGR_IN||''''||'
    WHERE EMP_ID ='||E_ID_IN||;
    EXECUTE IMMEDIATE (V_SQL);
    END TEST SP;
    Above update statement needs to run in loop for Database links coming as comma seprated value from IN parameter DB_LINKS_IN. Can you please help in how to modify above procedure for DB links coming as comma seprated value?
    I will greatly appreciate your comments and responses.
    Regards
    Dev

    You could try the following steps:
    1. Create type
    CREATE OR REPLACE TYPE MYSTRTABLETYPE AS TABLE OF VARCHAR2 (255);
    2. Create function to parse comma-delimited list of db links:
    CREATE OR REPLACE FUNCTION IN_STRLIST( P_STRING IN VARCHAR2 ) RETURN MyStrTableType
    AS
    L_STRING VARCHAR2(32000) DEFAULT P_STRING || ',';
    L_DATA MyStrTableType := MyStrTableType();
    N NUMBER;
    BEGIN
    LOOP
    EXIT WHEN L_STRING IS NULL;
    N := INSTR( L_STRING, ',' );
    L_DATA.EXTEND;
    L_DATA(L_DATA.COUNT) :=
    LTRIM( RTRIM( SUBSTR( L_STRING, 1, N-1 ) ) );
    L_STRING := SUBSTR( L_STRING, N+1 );
    END LOOP;
    RETURN L_DATA;
    END;
    3. Modify your procedure as follows:
    CREATE OR REPLACE PROCEDURE TEST_SP(DB_LINKS_IN VARCHAR2, E_MGR_IN VARCHAR2, E_ID_IN NUMBER)
    AS
    V_DB_LINK MYSTRTABLETYPE := MYSTRTABLETYPE ();
    V_SQL VARCHAR2(400);
    BEGIN
    V_DB_LINK := IN_STRLIST(DB_LINKS_IN);
    for i in 1..V_DB_LINK.count
    loop
    V_SQL: = 'UPDATE EMPLOYEE@'||V_DB_LINK(i)||
    ' SET EMP_MANAGER='||''''||E_MGR_IN||''''||
    ' WHERE EMP_ID ='||E_ID_IN||;
    EXECUTE IMMEDIATE (V_SQL);
    end loop;
    END TEST SP;
    Please note I have not tested the code. Also you might want to consider using bind variables for the EMP_ID and EMP_MANAGER values.

  • How to Define Multiple Notification Rules for Different E-Mail Channels?

    In C4C we can define a notification rule for New tickets, for example, that provides an acknowledgement of receiving the customer's e-mail. 
    This works great for a single support team, but what if we have multiple support teams, each with their own e-mail address, and each with unique requirements for their auto-acknowledgement?
    When setting up a new notification rule, there doesn't appear to be any option to define the e-mail channel, service and support team value, or a "from" e-mail address.
    We're on-boarding over a dozen e-mail teams, and I'd hate to tell them that they'll all have to share one auto-acknowledgement template from a single do-not-reply address.
    Does anyone know if this is possible to:
    Define the e-mail channel or service and support team as an condition in the notification rules.
    Define the outgoing "from" e-mail address for a notification rule.
    Thanks for any insight the community might have!
    Mike
    T-Mobile USA

    Hi Mike,
    As of release 1402, your analysis is correct.  The out-of-the-box notification rules do not include the "incoming email channel" as one of fields on which to build condition, and all notifications are sent from a common do-not-reply address.
    You can easily overcome the first limitation by using the SDK.  For example, when the ticket is created you could set an extension field based on the email channel, and then use the extension field to define different notification rules, using different templates.  All extension fields are automatically available to be used as conditions.
    Thank you for your feedback and for bringing this item to our attention.  We will definitely keep this in mind as we plan for future releases.
    Kind regards,
    Gabriele Bodda
    Product Management

  • Alert Rules vs Alert Category - Is there any limitations for multiple rules

    I have an alert configuration implemented already and i want to add few more rules for the same alert category.  While creating the rules for new set of scenarios, I am able to create only one rule . Is there any limitations for having the rules per category ?

    Hi,
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    There is no limitation of creating alert rule for a particular alert category.
    Check out the steps of Alert rule configuration.
    Creating Alert Rules
    To create an alert rule in which you use a defined alert category, proceed as follows:
           1.      Give the rule a name (Description).
           2.      Select the alert category that you want to use by clicking the corresponding category in the alert category table.
           3.      If necessary, specify conditions for the sender or receiver, or both.
    &#9675;       If your rule results in alerts that must be assigned to a specific message, select the option Yes for the Bound to Message condition.
    &#9675;       If your rule results in alerts that are not assigned to a message, that is, they are caused by errors that occurred before the message was sent, select the option No for the Bound to Message condition.
    In this case you cannot enter any further details about the sender or receiver.
    &#9675;       If the rule is to cover both cases, select the Not Relevant option.
           4.      If required, restrict the errors further to:
    &#9675;       Errors reported from the Integration Engine (with or without error category or error code)
    &#9675;       Errors reported from the Adapter Engine (with or without adapter type)
    You can enter an asterisk (*) in steps 3 and 4. You can enter just the asterisk, or enter it at the start, end, or start and end of a string.
           5.      To add the new rule to the list of alert rules, choose Add Rule.
    If the Rule Activated check box is selected (default setting), the rule is automatically activated when you add it and is displayed as active.
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    Once you have created a rule, it is automatically displayed in the list of alert rules. If you want to display the conditions of a rule, select a rule in the list and choose Show Conditions.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward point if helpful

  • Can't find delete button for quick link address in my inbox navigation pane !

    Hi,
    There is no delete button for quick link which I mistakenly added in my inbox navigation pane. In fact, the link I added for quick link was a mistake and it was a different page address, and the missing delete button is for this specific link only; other than it is alright. How can I remove or delete it from my inbox quick link ?
    Thanks,
    Regards,
    Cyberkhan

    There does seem to be a close/delete button present that is hidden under the 'm' from 'google.com' that is probably not clickable.
    I don't know if there should be such a long link visible in that list item or that something else is wrong.
    You can try to right-click that area and use Inspect Element to open the Inspector.
    *https://developer.mozilla.org/Tools/Page_Inspector

  • Multiple alert rules  for alert category?

    Hi,
    I have created Alert Categories and assigned Alert Rules for them. <b>Can I assign multiple Alert rules for the same alert category?</b> I mean RTW--> Alert Configuration lets me do it. But when I test it by running report RSALERTTEST, I could get only error for one alert rule, even though I defined multiple alert rules. I haven't tested with real error out scenarios. Any update on this would be helpful.
    Thanx&Regards
    Navin

    Hi Navin,
    1) the report requires authorization object S_XMB_AUTH with area MONCONFIG and activity 02. It's actually part of the standard role SAP_XI_ADMINISTRATOR_ABAP.
    2) sorry, don't know that, but you might want to check SAP Note 913858 for troubleshooting the alerting. it contains the following statement:
    <i>Q10: Why are sometimes certain error categories (e.g. SXMS_TO_ADAPTER_ERRTXT) not filled?
    A10: This is due to an error in the Business Object Repository when the value of a container variable exceeds 255 characters. Please implement the correction described in note #947738.</i>
    3) You can configure alert rules for the way from the sender to the BPM and from the BPM to the sender. If anything happens in that communication you will get an alert. However as far as i know, the only way to trigger an alert for something that happens within the BPM is by using an according control step.
    Regards
    Christine

  • I had an older version of Firefox with a toolbar that allowed me to view multiple links at once. Is that toolbar avaiable for the current version of Firefox?

    When viewing an email with multiple links, I would click an icon in the toolbar which looked like a vertical multi-colored bar and all the links would open on the same page. I cannot find this (add-on) now that I have downloaded the current version of Firefox. Is there something which works similarly available?
    Some of the other icons on this tool bar were red arrows.

    Maybe I just don't know how to make it work but It doesn't open all the links in at once in the same tab. I will read more about to see if I can figure this out. It is a challenge to learn new programs. I should have saved the old Firefox program which downloaded along with Firefox as I remember.

  • Applying rules manually doesn't work for multiple messages

    I've been using Mail for some time now and love rules. Love 'em. A few months ago I started having touble and have not been able to figure it out.
    The rules get applied to new incoming messages properly, as they should. However, I used to be able to select all the messages in my inbox (Command + A) and then 'Apply Rules' (Option + Command + L). That command no longer works. It still works if I go and select a bunch of eBay-related e-mails, for example, and then Apply Rules. Those message are moved accordingly. But if I select all message and Apply Rules, those same 4 or 5 messages remain put in the inbox even though there's a perfectly functioning rule for them that should be applied.
    NOTE: NONE of my rules work when I select all and Apply Rules.
    Any suggestions?

    The reason there are messages in my inbox to which rules haven't been applied is because when I'm at work I check my mail via the web (I use FastMail.fm). At home, using Mail, I access my mail via IMAP. When I receive and read new messages via the web and then go home and open Mail, all the messages in my inbox are no longer new, incoming messages so Mail doesn't process them as such. But just because they're not new incoming messages doesn't mean they belong in my inbox.
    Does that make sense?
    Most of the rules are to Move messages to folders based on categories (Shopping, Forums, Hosting, etc.).

  • EBS - Electronic Bank Statement Multiple Posting Rule for One External Transaction Type NTRF

    hello SAP Gurus,
    I'm configuring EBS - Electronic Bank Statement. My requirement is for Bank External Transaction Type NTRF <for Incoming Payment> I want to assign 2 posting rules for Posting Area 2 that is Sub-Ledger posting viz. <1> For the payments received from Customer which should clear the Customer Open item since it is bill to bill exactly matching the open line item and <2> For the payments which should not clear the Customer Open item since i know that they are not bill to bill and only partial against the original line item
    Is this possible? if yes then how?
    Currently, SAP allows only one assignment like one external transaction type NTRF => one Posting Rule <either clear the sub-ledger-system picks FB05 or just post on Sub-ledger so that not to clear - system uses FB01 >
    Journal for Posting Area 2:
    Bank Clearing Account Dr
       To Customer Account Cr  <either set this to clear with original invoice / or just post on customer so as to clear/handle it manually later on once paid fully>
    So, what is the solution; how can i differentiate my incoming whether fully payment or partial payment; since bank statement always tag it to external transaction type NTRF always for any incoming payments !
    regards,
    `raj. 

    Hi,
    You cannot create separate rule with sub ledger postings while executing electronic bank reconciliation.The reason is your bill to bill transfers should posted to bank sub ledger account first and then you can write a BDC to clear sub ledger account.Otherwise use F.13 to clear the sub ledger account.
    Regards
    Chrishantha

Maybe you are looking for

  • Questions on BDC program statements.....

    Hi, Currently i am checking below BDC program for packing material use. But there is a statement that i am not very clear what it is for...     PERFORM bdc_field       USING 'BDC_CURSOR'                                   'V51VE-EXIDV(01)'. For the  '

  • Is it possible to find the transaction code via table name ??

    Hi Can any body please let me know is it possible to find the transaction code via table name ?? Thanks in advance Sesh Edited by: seshu_sapfico on Dec 8, 2009 12:21 PM

  • Mac and Bluetooth

    Hi. None of my bluetooth equipments works with my Mac Book Pro. This really a problem. My Macbook does even not find my iPhone 4s. It does not fiind my iPad an not my daugthers iPad. Both iPads does not find my Logitech's Keyboard folio. My older Pow

  • Why wont a link open the web pages in 3.6.13?

    os snow leopard hyper links when clinked dont open in firefox 3.6.13

  • Installing LR3 on MacBook Pro OSX Lion 10.7.3

    hello folks, having troubke installing Lightroom 3 on my new MacBook Pro running OSX 10.7.3. Reciev error dialouge box after setting serial etc that says'An error occurred when attempting to change modules. Any bright ideas out there? cheers, Mike