Same JSF page being shown for different command links

Hi
I have two command links and as per navigation-rules, both of them go to the same page "Common.jsp" which has a <jsp:include> to include another file which is gets from session.
Each command link specifies its own JSP page to be included (in common.jsp) and adds them to the sesion.
After selecting one command link the desired page is showing up fine...
However if I come back and select the second command_link, it shows the same page again.
It does not even go to the action_listener of the second command_link.
Is there any way to force it go to the actionlistener of the command_link where I can specify a different page in the session... ?
Thanks

Hi
I have two command links and as per navigation-rules,
both of them go to the same page "Common.jsp" which
has a <jsp:include> to include another file which is
gets from session.
Each command link specifies its own JSP page to be
included (in common.jsp) and adds them to the sesion.
After selecting one command link the desired page is
showing up fine...
However if I come back and select the second
command_link, it shows the same page again.
It does not even go to the action_listener of the
second command_link.
Is there any way to force it go to the actionlistener
of the command_link where I can specify a different
page in the session... ?
What do you mean by "specify a different page in the session"? An <h:command_link> always goes back to the page it was originally rendered from, and expects the action invoked by the command to determine where to go next. If you really want to go to different pages, you should either make the action method return different results (i.e. trigger different navigation rules) or consider using <h:output_link> instead, where you can define the destination URL yourself.
Craig McClanahan
Thanks

Similar Messages

  • Same JSF page is being displayed after submitting form

    I have a situation where some of my JSF pages occassionally misbehave. For example, sometimes when I click a <h:commandButton/> (which is located within a <h:form> tag) the action which the button is wired to is not executed. Instead the same page is displayed.
    Please note that this glitch happens intermittently with no fixed pattern.
    It is also interesting to note that the data which the user enters (prior to clicking the button) on the JSF form is also lost and has to be re-entered again by the user.
    Functionally, this is only a minor problem however from a usability perspective this is a major major problem!
    I have tried:
    Adding <h:messages /> components to jsp pages in order to see if there are any errors.
    Verified the spelling of the outcomes ("success", "cancel") in my navigation rules and in the action methods.
    Verified the spelling of my bean in the definition as a managed bean in the faces-config.xml file and in the jsp page.
    Verified the name of my action method, in the jsp and in the backing bean.
    Checked by logging if the action method is reached.
    Used the jsf phase tracker to print life cycles phases. However, when the page "misbehaves" this misses out all the application level phases i.e only phases restore view and render response are actually passed.
    Created getters and setters for all bean attributes
    I am desperate to fix this. Has anybody found a solution to this problem? Please let me know!
    Thank you.

    I am using JSF version 1.1 and the application server I am using is BEA WebLogic Server 9.1.
    The page is one in a series like a "bread crumb" trail or in the style of a wizard if you like. The user goes from one page to the next and can go back if he so wishes.
    I have a user form. One part of the form requests the user to enter an email address and then click an "Add" command button. However, sometimes instead of adding the email address to the data table the same JSF page is displayed when the button is clicked and all the data is lost, resulting in the user having to re-enter all the information on the form again!
    Hope this helps.

  • Re: Running the same (Forte) application multiple times -for different

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Number range userexit same type of PR but  for different Plant

    I would like to have the same type of PR but  for different Plant, I would like to have different Number range.
    The exit  MM06E003 M06B0003 Mo=06B0004  not work for ME51N.
    Any other  exits help for this

    HI
    Put this code in  EXIT_SAPLMEREQ_009
    DATA pr_header TYPE mereq_header.
    DATA pr_items  TYPE mmpur_requisition_items.
    DATA pr_item   TYPE mmpur_requisition_item.
    DATA: l_item   TYPE mereq_item.
    DATA: l_zmm_numrange    TYPE zmm_numrange.
    MOVE-CORRESPONDING eban TO l_item.
    CALL METHOD im_req_header->get_items
      RECEIVING
        re_items = pr_items.
    READ TABLE pr_items INTO pr_item INDEX 1.
    CALL METHOD pr_item-item->get_data
      RECEIVING
        re_data = l_item.
    CHECK l_item-werks = '6301'.
    CALL METHOD im_req_header->get_data
      RECEIVING
        re_data = pr_header.
    SELECT SINGLE * INTO l_zmm_numrange
       FROM zmm_numrange
       WHERE  werks EQ l_item-werks
         AND doc_type EQ 'PR'
         AND bsart EQ pr_header-bsart.
    IF sy-subrc EQ 0.
      ex_range   =  l_zmm_numrange-numki.
    ENDIF.

  • Can the same Bank Key number be for different SWIFT codes?

    Can the same Bank Key number be for different SWIFT codes?

    hi
    once u have cancelled the challan this number will not be avaiable for the posting.
    when u repost a different number will be avaiable for the posting.
    hope this is clear assign some points.
    with regards
    Krishna Singareddy

  • I want to refresh my jsf page on the click of command button.

    Hi all,
    i m using JDEV 11.1.2.1.0
    i have created one jsf page with fragment i want to refresh my whole page on the click of command button which is present in fragment page.Besause i want to refresh some field but those are present in jsf page so i cant apply partial trigger because command button property in fragment page backing bean class and those attribute which i want to refresh its property in other class.
    thanks.
    Rafat

    i didnt get you from your content so i go with subject for giving your answer
    refreshing some of the fields
    BindingContainer bindings = getBindings();
    DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("xIterator");
    ViewObject vo = dciter.getViewObject();
    Row row = vo.getCurrentRow();
    vo.executeQuery();or else drop execute operation as button to execute vo.
    to refresh a page
    partial trigger nice options.
    to performs instant refresh
    af:poll component
    so if you don mine give me some scenario using hrschema i may give a liitle try to my small brain :)

  • Pages.  Shorcut for "Duplicate" command from the "archive" menu ?

    When i make a keyboard shortcut for the "Duplicate" command from the "Archive" menu, it only works once, because when I close Pages and open it again, the shortcut disapears from the command "Duplicate" in the archive menu and it is reasigned to the "Duplicate" command from the "Edit" menu.  How can i fix this?

    I recommend sending feedback to Apple. I have sent feedback for Pages, Numbers & OS X.The more people who send feedback, the more likely changes will be made.
    Feedback works. When iWork '09 first came out there was a lot of ranting about the move of Export to the Share menu. With the first update Export was added back to the File menu & was also left in the Share menu.  
    Here's what I sent to the OS X feedback.
    The loss of Save As… in Numbers 2.1, Pages 4.1 & Preview in Lion is extremely frustrating, particularly since there is no keyboard command for File > Duplicate. Trying to assign ⌘ ⇧ S in System Preferences doesn't work because OS X "decides" to then assign that to Edit > Duplicate which, by default is ⌘ D.  I have to take my hands off the keyboard, go to the File menu & then select Duplicate in order to create a new document with the same basic content. Having a keyboard command for File > Duplicate would go a long way in solving this problem for me & many others who complain in Apple Support Communities.

  • Same work center  being used  in different routings

    Hi
    I have requirement  like this:
    Workcenter  WC1  works in two shifts  Shist A  & B.
    It is being used in two routings for different products  X & Y.
    Product X will be prodiced in shift A.
    Product Y will be produced in Shift B.
    How to schedule it  for different shifts for different products.
    Thankls in advance.
    Regards
    YMREDDY

    since workcentre is not working on the material based.
    but the routing worked on the material based
    give the shifting timing and the break timing in the work center alone
    you have to select the matrl product x in the routing and the sequence of operation for the product is mentioned that the product that be there for the working in the
    shift A .
    product Y is to be sequenced to work at that w.c at shift B

  • JSF Page Access Denied for Jdeveloper 12 C

    I had using J developer 12 C and Created one JSF page with Displaying two tables on that page... The content not displaying it shows Access Denied.

    Is it related webcenter portal.I don't think so. If it is pure ADF problem.You can post this in jdeveloper forum too.
    Is there any security restriction on the table by adf security or some other security.
    In the table source code in empty text property it is mentioned as
    <af:table   emptyText="#{bindings.abcTable.viewable ? 'No data to display.' : *'Access Denied.'*}"

  • Purchasing Apps for different non-linked iPhones with one iTunes account

    Hi:
    Is it possible to use my iTunes account to purchase apps for different iPhones without linking those phones to my iTunes account?
    I am trying to purchase a specific application (WhatsApp) for some friends who have iPhones but not iTunes accounts. I don't want to link those phones to my iTunes account, just buy this specific app for them.
    When I try to purchase directly from their iPhones, I get a wrong password message. Is Apple blocking this purposely?
    Thanks,

    All 3rd party apps - paid and free apps include DRM protection which is tied to the iTunes account used to purchase/download the app, so the answer is no.

  • Page setup changes for different users

    We had recently experienced page formatting changes all of a sudden. These reports were not modified nor changed but all of a sudden when users run the reports or if a developer open it in design the page setup was changed from landscape to portrait.  Also, for the same object if another developer open it, it is fine for that one person.
    Is there a individual setting or local setting for page setup?

    after you have changed the print setting in the .rpt itself and if you are still experiencing the same behaviour:
    1) first, try to see if just the .rpt itself is changing...i.e. send the report with saved data to someone that is experiencing the issue that also has crystal reports installed. if it is still happening in the crystal reports designer itself, then it is an issue for this forum.
    2) if it is only happening in the web application, then you will want to repost to the appropriate sdk forum.
    jw

  • Why all of a sudden is what I do on web pages being tracked for ads to show me?

    I detest ad tracking and all of a sudden any page I go to as a consumer gets tracked. Ads showing in safari ,  products I have looked days earlier. Safari also has been on a crash cycle, closing it's self when I try going to a new page or follow a link. Have never found a way to get a fresh copy of Safari, this is most frustrating!

    I'm a bit unclear on what you're seeing with regard to these ads. Are you seeing ads that are normal for the page in question, or are you seeing ads where there shouldn't be any?
    Regarding the browser crashes, that's not normal. It could be a result of visiting a malicious page. There is a long-standing bug where a maliciously-crafted (or just plain corrupt) image file can cause Safari on iOS to crash. It does nothing more than that, though, so I'd be surprised if you see that sort of thing with any regularity. If you're seeing it on more than one particular page, this is unlikely to be the cause.
    Beyond that, you probably just have something wrong with the system on your iPad. First, try resetting your device. Press and hold both the home button and the sleep/wake button for about 10 seconds, until the screen turns off. Ignore the slider that will appear. Release the buttons, then press and hold the sleep/wake button until the Apple logo appears. This is the equivalent of a reboot, and should not affect your data or apps.
    If that doesn't help, try restoring your device from backups, and if that doesn't help, restore it to factory settings (ie, do not restore a backup). See:
    http://support.apple.com/kb/ht1414
    If none of that helps, the issue is caused by some kind of hardware problem, and the device will need to be repaired or (more likely) replaced.

  • How to assign a class for different colored links

    Hi. I'm new to CSS and HTML and Dreamweaver. I'm trying to
    get links to be different colors within the same page. I have a
    navbar with a CSS style that I've assigned colors to all my links
    there. They work. But if I attempt to change the links in the main
    content it screws up the navbar links.
    So, now, I'm trying to assign the different colors to the
    links in the main content. I have the link color down but I can't
    seem to get the visited, hover, active to work.
    So, I read somewhere you have to assign a class to be able to
    have different colors for your links on the same page. There is a
    class assigned to the links I want to change but it only assigns
    the link color, not the visit,hover,active colors. I don't know
    where I am supposed to put the code so that only the main content
    links are changed. Here is what I came up with from reading and
    studying. Can somebody tell me what's wrong with it and where I am
    supposed to put what in each page? This is just a CSS style page I
    made and I have no idea if I even did that right. Then, I can't
    figure out how to tell each page to include it for that class only.
    Thanks.
    @charset "utf-8";
    /* CSS Document */
    <class="style49"
    <style type="text/css">
    a:link {color: #3333FF}
    a:visited {color: #009900}
    a:hover {color: #6600CC}
    a:active {color: #FF0000}
    </style> </class>

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Newbie744" <[email protected]> wrote in
    message
    news:fn3***$m6q$[email protected]..
    > Hi. I'm new to CSS and HTML and Dreamweaver. I'm trying
    to get links to
    > be
    > different colors within the same page. I have a navbar
    with a CSS style
    > that
    > I've assigned colors to all my links there. They work.
    But if I attempt
    > to
    > change the links in the main content it screws up the
    navbar links.
    >
    > So, now, I'm trying to assign the different colors to
    the links in the
    > main
    > content. I have the link color down but I can't seem to
    get the visited,
    > hover,
    > active to work.
    >
    > So, I read somewhere you have to assign a class to be
    able to have
    > different
    > colors for your links on the same page. There is a class
    assigned to the
    > links
    > I want to change but it only assigns the link color, not
    the
    > visit,hover,active
    > colors. I don't know where I am supposed to put the code
    so that only
    > the
    > main content links are changed. Here is what I came up
    with from reading
    > and
    > studying. Can somebody tell me what's wrong with it and
    where I am
    > supposed to
    > put what in each page? This is just a CSS style page I
    made and I have no
    > idea
    > if I even did that right. Then, I can't figure out how
    to tell each page
    > to
    > include it for that class only.
    >
    > Thanks.
    >
    > @charset "utf-8";
    > /* CSS Document */
    > <class="style49"
    > <style type="text/css">
    > a:link {color: #3333FF}
    > a:visited {color: #009900}
    > a:hover {color: #6600CC}
    > a:active {color: #FF0000}
    > </style> </class>
    >
    >
    >

  • Centering a jsf page

    I am trying to center my jsf page to cater for different screens of different screen resolutions.I have tried
      <table> <td align="center"> page body....</td> </table> but this doesnt work.Can someone help?

    This is not a JSF issue. This is a HTML/CSS issue. To center a block HTML element, set the CSS 'margin' property to '0 auto'. To center an inline HTML element, set the CSS 'text-align' property to 'center'. You can learn HTML and CSS at w3schools.com.

  • Find all beans referenced on a JSF page for PhaseListener

    I am trying to implement a PhaseListener to do some application specific stuff just before the render response phase. I am trying to find all of the managed beans referenced in the currently executing JSF page. So for example, if I had this in a page:
    <h:selectOneListBox id="foo" value="#{foo.bar}">
      <f:selectItems value="#{bazz.list}"/>
    </h:selectOneListBox>I would want to be able to locate both the beans "foo" and "bazz" (both are managed beans) inside the PhaseListener without using their names (unless I can first discover all the names referenced on the page).
    Basically, I am looking for a generic way to process all managed beans that are used on a page just before the response is rendered.. Anyone have any ideas on this?

    Do something likepublic class MyPhaseListener implements PhaseListener {
        public void beforePhase(PhaseEvent event) {
            // Do nothing.
        public void afterPhase(PhaseEvent event) {
            List children = (List) ((ArrayList) event.getFacesContext().getViewRoot().getChildren()).clone();
            List bindings = new ArrayList();
            for (Iterator iter = children.iterator(); iter.hasNext();) {
                UIComponent component = (UIComponent) iter.next();
                children.addAll(component.getChildren());
                ValueBinding binding = component.getValueBinding("value"); // Get the "value" attribute.
                if (binding != null) {
                    bindings.add(binding.getExpressionString()); // Get the EL string, eg. #{myBean.value}.
            // Do your thing with the bindings.
        public PhaseId getPhaseId() {
            return PhaseId.RENDER_RESPONSE;
    }

Maybe you are looking for

  • How do I get personal movies onto my iPad without using iTunes

    Hi, I have several "movies" - like ones my kids made using iMovie on their their ipods, clips of my kids playing their sports, and other non-tradional films that i would like to keep and add or subtract to my liking from my iPad (3rd Gen). In iTunes

  • Error while deploying objects

    I try to deploy dimension to target database, but deployment fails with "java.lang.ArrayIndexOutOfBoundsException" message. Table, index and dimension are created physically without any problem, but general result is "Failed" because of this error. I

  • My ipad isnt restoring, error code 1611, is there a fix for this?

    Itunes no longer recognizes my ipad on my computer, I used my friends computer and it gets as far as restoring but says unable to restore rror 1611 Any help is much appreciated - windows 7- desktop - Ipad 1st gen

  • Movement of Position from Oganization Unit not reflecting in IT0001

    Hi,   We moved some positions from one Organization unit to other using Staff assignment change trasaction PPOS_OLD. Although the relationships for these positions are updated with correct date delimitors when checked in transaction PO13, PO10 etc, w

  • Can't see certain things (invisible) when using internet on Windows 7.

    I think this is a Windows 7 issue I am having.  I just got my Ideapad with Windows 7.  When using both Internet Explorer and Firefox, certain text, image, and boxes are invisible..or so faint I can barely see them.  Fox example, as I type this, I see