JSF navigation rules sent me to different page, with same URL

Hello everybody,
Have a newbie question on JSF, if anyone can help me. I am using JSF for a web application, and i have a small problem.
If i define a navigation rule, from one page to another, and i am having a button that should send me to another page,
the browser URL remains the same, although the page content IS correctly changed.
Thanks,
Andrei

You're welcome.
Though I should have added that the advantage of the redirect after a POST request is that refreshing the request or navigating back and forward by browser history doesn't cause a re-submit of the POST request anymore. This way you avoid duplication of submitted data. This is called POST-redirect-GET pattern. Refreshing the request after a redirect (which is always a GET request) would only cause the redirect being refreshed, not the initiating POST request.
The disadvantage of a forward is less or more obvious: the URL remains the same and it is not really good for the user experience. If one copypasted the URL in a new window (a new GET request), one wouldn't see the forwarded page, but the originating page. That's why I would recommend to avoid navigation cases and just use the same page to postback the POST request to. For normal page-to-page navigation within a website, I would recommend just using outputlinks and not commandlinks with navigation cases. It's all better for the user experience.

Similar Messages

  • Different portal logon pages with same url.

    Hi all,
    Im doing portal logon page customization . My requirement is when a user give the portal link in his browser he should get the portal logon page according to the country language..for example if he opens the portal from india he should get English text and if he opens the portal from japan he should get the japanese text in the portal logon page.
    thanks
    Rajeev B

    Rajeev,
    Its possible to have the different logon pages for the same portal.
    Its also possible for the same ulr but different parameters.
    You can do customization on portal logon page.
    For example:
    Consider that the url http://myep:50000/irj/portal is currently using to access the portal.
    You can pass addintional parameter on this url and fetch them into logon page, display the pages based on the values that you have fetched.
    for example http://myep:50000/irj/portal/myparam
    Have a lot at this link,
    Displaying Different Login Pages Based On The Sales Organization
    Ram

  • 2 main windows in 2 different pages with different layouts

    Hi Guru's,
    I'm working on Smartforms.
    My problem is, i have 2 different pages with 2 diiferent main windows.
    The First Page lasts after 7 pages of Data Printing.
    It is coming corrctly.
    I've assign the Next Page as Second Page in the First Page and i'm maintaining a condition in the First Page to go to the Second page.
    Everything is working fine, but in the second page i'm not getting the Main Window.
    What could be the Problem??? Why the control is not going to main window of second page???
    Thanks in advance.
    Regards,
    Adi.

    Try like this:
    1. Set the Next page of the FIRST as FIRST
    2. In the MAIN window of the FIRST, after completing the TABLE, create a command which calls the SECOND PAGE.
    3. In SECOND page, create a MAIN window, with differnet name. If you create a same name, system will automatically refer the MAIN window in the FIRST page.
    4. Set the next page of the SECOND as SECOND.
    Regards,
    Naimesh Patel

  • How do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    how do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    The operating system may be the same but the Numbers applications are likely different.  You need to get the apps in sync.  Unfortunately, the Numbers (and Pages as well) saga is pretty confusing (and frustrating).  Here's some info from the iWork resident version expert (PeterBreis0807):
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs.

  • Term-Driven Page with Friendly URL doesn't work with a page in another Site Collection

    Hi all,
    It appears that the Term-Driven Page with Friendly URL does not work when it is referencing a page in another Site Collection. When I set my Managed Navigation to use a term that points to another Site Collection page, the link shows in my navigation, but
    gives the error:
    "Sorry, something went wrong"
    This does not happen if I link to a page in the same site.
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    i got similiar (i am not sure whether the same) issue recently:
    I have a site collection (address http://spserver/) which use managed navigation, and term-driven page with friendly url. The address of the term-driven page is set as /pages/teamsitehome.aspx . A friendly url takes the form such as http://spserver/menulevel1/submenu1
    I create a new site collection http://spserver/sites/newsitecollection and i want it to have the same navigation menu as the other site collection. Since i cannot use the same termset for the two site collection, i have to create a new term set
    for the new site collection, "pin term with chidrem" or "reuse term" to the old term set. The friendly url in newly created site collection and term set takes the form such as http://spserver/sites/newsitecollection/menulevel1/submenu1, and still
    points to /pages/teamsitehome.aspx. Notice that the term-driven page here in the new site collection still points to the old site collection.
    Actually, it works! I mean, when i click the navigation menu, friendly url http://spserver/sites/newsitecollection/menulevel1/submenu1 appears in the browser address. And SharePoint knows to load /pages/teamsitehome.aspx for this url. If this is a simple
    blank page, it just open fine here.
    However, my custom page teamsitehome.aspx calls TaxonomyNavigationContext.Current.NavigationTerm in its page load event, it should returns a valid NavigationTerm for the friendly url. But it returns null here. I traced the code to find that it calles
    internal static NavigationTerm GetNavigationTermFromTargetUrlGuids(SPWeb contextWeb, Guid termStoreId, Guid termSetId, Guid termId, bool includeInheritedSettings, bool enableExclusions)
    The passed in contextWeb points to http://spserver/ , since the term-driven page is in this web. But the termSetId points to the new termset. TermId won't be problem, since its the same in both new and old term set for pinned term. The combination of contextWeb
    and termSetId just make the output NavigationTerm null. I think its simply because the termset is not associated with this spweb.
    My workaround is create a copy of /pages/teamsitehome.aspx in new site collection. The term-driven page address is set to ~sitecollection/pages/teamsitehome.aspx in term management. This time, all works. Just because the contextWeb parameter i mentioned
    above now points to the root web at new site collection, where the term driven page resides.

  • Can I run 2 different domains with same name but on 2 different machines?

    I am trying to setup 2 domains with same name (sharedcds1) on 2 different machines (Machine1 and Machine2).
              When I start the weblogic managed server 1 (sharedcds1managedserver1) on Machine2, it throws an error saying it has some conflicts with the managed server 1 running on Machine1. How did the managed server of one machine know about the other server. Can I run 2 different domains with same name but on 2 different machines?
              Here is the error in the log -
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 4596206652609838848S:130.170.61.153:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 8842351474821025197S:130.170.61.154:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              Thanks
              Satish

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

  • The report displays more than 3000 pages with same content.

    Respected Sir
    I have a report with form letter layout.
    The report contains only one page,but while running the paper layout ,the report displays more than 3000 pages with same content.
    please anyone give a solution to this problem

    I think there is no bad joining. b'se when the querry is executed in sql, it is working properly(means returns only one record) . This problem is not for a particular report. Any report using the "form layout", the same problem occurs.
    Why this problem occurs. How can we solve it.
    Bye

  • Requesting license for two different ssystem with same SID

    Hello,
    Is it possible to request 2 license for two systems with same SID. The systems are on different machines and their HW key are different but both have same SID. While requesting license, will it permit to create 2 different license with SAME SID.
    Regards
    Deb

    Hi Anil,
    The one for which the license is already requested is the main development portal with SID EP2. I have installed one local version of SAP EP with the same SID EP2. Now we need a license for the second system.
    If we change the HW key of the original license which is already applied in the main development portal under SMP and apply for a new license for the new local version, can it have any future implications, if any.
    What is the best way to deal with the situation. Is there a full proof way to change the SID of the EP system, which I can try in the local EP system.
    Regards
    Deb

  • Hi, face issue that can not activate iPhone but can log in iCloud wed page with same Apple ID and Password after Iphone been update to IOS 8. Need Help. Thanks

    Hi, face issue that can not activate iPhone but can log in iCloud web page with same Apple ID and Password after iPhone been update to IOS 8.1.2
    Also in the iCloud 'Find my iPhone" , no Device been found.
    Been raise this incident, got the Case ID and call to Apple Support but it seems like out of office hour
    Need Help Thanks

    Yes, able to make a call to Apple Support but in the end still keep on going to try the Apple ID and Password.
    And it seems like the iPhone ID  in this device been locked
    May to know is that possible to ask the Apple Technician to unlocked the ID so i could activate the iPhone without log in any Apple ID?

  • Change JSF navigation-rule not begin with "root"

    Dear all,
    I have a web application, call myApp, run in PC1. There is a navigation rule to control page1 jump to page2.
    normally, after deploy and run my application, url for it is: [ http://{color:#0000ff}pc1:8080{color}/{color:#008000}myApp{color}/*{color:#ff6600}page1.jsf{color}* ], and click something in my page1, it will go to [ http://{color:#0000ff}pc1:8080{color}/{color:#008000}myApp{color}/*{color:#ff6600}page2.jsf{color}* ].
    I have another machine, named PC2, and create a mapping and forward request to PC1. Therefore, if anyone type the url: [ http://*{color:#0000ff}pc2{color}*/subSection/{color:#008000}myApp{color}/{color:#ff6600}*page1.jsf*{color} ] , actuality, they are looking for [ http://{color:#0000ff}*pc1:8080*{color}/{color:#008000}myApp{color}/*{color:#ff6600}page1.jsf{color}* ].
    Now, I have a problem is that, when people browse a page [ http://{color:#0000ff}*pc2*{color}/*{color:#ff00ff}subSection{color}*/{color:#008000}myApp{color}/*{color:#ff6600}page1.jsf{color}* ] and click something, it will go to another page [ http://{color:#0000ff}*pc2*{color}/{color:#008000}myApp{color}/*{color:#ff6600}page2.jsf{color}* ], not go to [ http://{color:#0000ff}*pc2*{color}/*{color:#ff00ff}subSection{color}*/{color:#008000}myApp{color}/*{color:#ff6600}page2.jsf{color}* ]. Therefore, it makes "404 Not Found" exception.
    Does anyone help me?
    Thank you
    Kevin Tang.

    SuperCEO wrote:
    My application server is Apache Tomcat.
    May be my problem is related to Tomcat context path problem.
    I wanna to know can I modify my program, such as faces-config.xml, to fix my problem, or I need to modify my Tomcat setting ?I am suggesting you do not need to modify your program, but the configuration of whatever is doing the forwarding.

  • How to navigate to different page with different user name

    Hi,
    I have created a DB application....
    My application consist of 4 pages.......
    But if the first user logs into an application means, he needs to see only 3rd page
    If the second user logs into an application means, he needs to see only 4th page.......
    (i.e) 3rd page couldnot been accessible by the second user........
    and 4th page couldnot been accessible by the first user.......
    How to achieve this, i think i need to set some validation in the login page.....if so how to do that.....
    it is an urgency....help me friends....
    Regards,
    Harry...

    Hi,
    Thanks for your reply, so i need to create a post authentication for redirecting to different page as you said....
    Since these are my two pages(in the application)
    *) issues page.
    *) analyst page.
    Suppose if the User A login to the issues page(via. login page) he needs to see only the issues page
    if the User B login to the analyst page(via. login page) he needs to see only the analyst page...
    Since User A and B have access to the application.....
    But A should login only to issues page in my application and he should not login to the analyst page...
    and B should login only to analyst page in my application and he should not login to the issues page...
    For that where i need to define the post authentication...whether in login page i need to define.....
    if so, whether i need to define sql query for restricting the users to the particular page in the post authentication...
    Regards,
    Harry...

  • Import multiple Word docs to multiple pages with same master page?

    Hi, I should start by saying I have no scripting experience.  However, I am wondering if there is a simple script available for the following issue:
    I have set up a master page with three linked text boxes. Right now, I use Cmd+D to select a word file, and then Shift+click in the first box to place the text on the page. But I have 125 pages that are exactly the same layout, just different Word files to be imported. I could repeat this process 125 times, but I am wondering if there is a way to tell InDesign to create 125 pages using Master Page X and import one file for each?
    I am using InDesign CS5 v 7.0.4 on Mac OSX Snow Leopard v 10.6.7
    Thank in advance for any help you can offer,
    NW

    I was able to import the word documents as long as there was only one text frame on the master page. However, when I created multiple text frames (the text in the word document needs to flow from frame 1 to frame 2), it always imported into frame 2 and skipped frame 1. In case it is helpful to understand what I mean, I attach two screenshots. The first (sans text) is the master page, and the second is Page 1 after running the script. I added the labels Frame 1 and Frame 2 to Page 1, not the Master, because otherwise the text gets imported into the frame with the words "Frame 2". I suspect I have to label the frames in InDesign and then add something to the script that says insert into the Frame 1, but I'm not sure how to do that.
    It wasn't clear from your narrative in June that the text frames were linked, and that the text needed to flow between frames.
    The script, as implemented, only overrides one text frame, (textFrames[0],  which is the top-most text frame in the stacking order), and then places the text in it. Clearly that's not correct for your scenario.
    You mention 3 frames but only mention flowing between 2 frames.
    Anyhow, it sounds like you want the script to override all 3 text frames, and then to place in the first textframe.
    The first is easy, the question is really what should happen when there are more than 3 text frames -- should it override all text frames, or only some. You could specify which ones with a Script Label, or you could do something more clever. For the moment, let's just override all text frames.
    Then you have to specify which one to place into. You could just select the frame you want and Arrange > Bring To Front. Or we could specify frames[2], which should be the 3rd-from-the-top (after frames[0] and frames[1]). I'll do the latter, but feel free to keep the script the same and do the former:
    var
        d=app.activeDocument,
        p=d.pages,
        i, frames;
    for (i=0; i<p.length; i++) {
        frames = p[i].appliedMaster.textFrames.everyItem().override(p[i]);
        frames[2].place(new File("/path/to/page"+p[i].name+".doc"));

  • Bug: Application Express - Multiple pages with same name

    In my APEX application, I have mulltiple pages with the same name (user requirement). In SQL Developer, it shows the pages with the same name under the MAX Page ID. For instance, I have pages 18, 21 and 22 with the name of "Binder". In SQL Developer I see 3 APEX Page entries for Page 22. And it shows all of the page items for Page 22 in all of the entries.
    Thanks,
    Dan

    If I delete extra .ipa files when two different applications have the same name, then I need to keep track of which is the current version of what. "Sudoku 4.ipa" might be the latest version of one program, and "Sudoku 7.ipa" could be the latest version of another.
    I wish Apple would create a naming scheme where every application has a unique name, and sequential generations are not used. This would make it much cleaner, and there would be no ambiguity as to either which program is which, or which version is which.
    I find the safest way to get rid of all the dups is to just delete them all and re-download the app. The bugs in iTunes still make a mess of things, though.

  • Different cpuspeednw on two different hosts with same cpu config. Why?

    Hi,
    there are two hosts.
    They are different, but have same CPU configuration (I guess it from the output below).
    Host1: Solaris 10, 4 cpu, 4 core in each cpu.
    psrinfo -v
    Status of virtual processor 0 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:23.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Status of virtual processor 15 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:25.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Host2: CentOS 5.3. Also 4 cpu, 4 cores in each spu
    cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : 2133.413[b]
    cache size : 2048 KB
    physical id : 0
    siblings : 4
    core id : 0
    cpu cores : 4
    apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca c
    mov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constan
    t_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4270.09
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    processor : 15
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : [b]2133.413
    cache size : 2048 KB
    physical id : 6
    siblings : 4
    core id : 3
    cpu cores : 4
    apicid : 27
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4266.82
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    Edited by: user10944480 on Mar 14, 2010 7:22 AM
    Edited by: user10944480 on Mar 14, 2010 7:24 AM

    user10944480 wrote:
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    The CPUSPEEDNW is measured in "millions of Oracle operations per second" - but we don't know what "operation" Oracle is using for measuring. Since you have two difference operating systems, it's possible that the "operation" that Oracle uses is one that makes use of the "OSD" (operating system dependant) code and has a very different code path on the two machines that results in a very different speed of completion.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    +"Science is more than a body of knowledge; it is a way of thinking"+
    +Carl Sagan+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Lightroom reinstallation on different mac with same serial number.

    im using lightroom on my mac air.
    and im planning to buy a mac pro soon.
    in that case, is it possible to use lightroom on my new mac pro with the same serial numbers that im using now on mac air?
    (im not going to use lightroom on mac air)

    Adobe allows two installations of Lightroom on different computers with the proviso that only one can be used at any one time. (There is no on-line activation/de-activation process, only your honesty.)
    Just install on the new mac pro with the same serial number.
    Note: If the Mac Air has an "update" version installed (for example -you upgraded from LR3 to LR5) then you will need both Serial Numbers for LR3 & the LR5-update, to install on the new Mac pro.

Maybe you are looking for

  • Can't arrange apps on iPad 2

    Just got my new iPad 2 but I can move apps from screen to screen. When I get it moved to the edge it just bounces back to it's original spot. I can rearrange using iTunes. Any help ?

  • Lack of performance on 290X 4G

    So I have a MSI R9 290X 4G gaming series and my performance is heavily lacking compared to others on similar setups. I get hardly 1200 points in heaven while someone with a lesser cpu than me and the same GPU and driver (14.4) gets 100 - 200 points m

  • Clarify me

    Hi experts        In one of the smartforms, my collegues has used the following coding.            I don't know what about this IS_BIL_INVOICE, whether its a structure or a internal table.           please clarify me, its done used with output type.

  • Alerts: How to accomodate complete error text of Adapter in Alerts?

    Hi ,           I am using alerts to raise the errors in adapters. I have configured the Alerts with containers and long text to catch the error. My concern is : How we can accomodate whole error text in it. Standard text allowed is only 70 Char but w

  • Code128 shows dots

    in this new instance of adobe reader 11.0.6 the font code128CF show dot instead of barcodes... I have gone back to version 11.0.3 and it shows barcode.. can you please fix this?