Browser URL and current page

I dunno if it's a bug or something in my j2ee configuration, but the URL that i see in my browser is always of the page i last visited, not the current one. I see that in srdemo too so it couldn't be my fault. This is an issue,for example, when i use a specific css for a page and to see this working i have to change the page and then go back. Thanks in advance for help

Hi,
the reason for this is that the default navigation behavior in JSF uses postback, which performs page navigation on the server side. You can changes this behavior by setting the navigation case to perform a page redirect instead (declarative option on the navigation case)
Frank

Similar Messages

  • CSS Rollover Menu with Images and Current Page Indicator

    Hello.
    I have found a very interesting video here: http://www.youtube.com/watch?v=vv8cRYGCvIY about creating a CSS Rollover Menu with Images and Current Page Indicator (I tested it and it is working fine).
    I have a web site with 15 pages based on a template and I want to use that video sample to do the same thing on my web site.
    Please tell me if I can use the sample from the link above to do that.
    What should I change in the css file (what new class should I make) to make this work on a web site based on a template  ?
    Thank You !

    I don't know about that video tutorial but a sitewide persistent menu indicator ('you are here' highlighting) is very simple to do with CSS classes.
    Details and code examples below:
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Spry Menu Bars, Templates and Current Page Indicators

    Hello,
    If you have a spry menu bar in your design, then create a template, how do you then go about making the menu bar have a current page indicator on each page created from the template?
    Thanks,
    Ferg.

    Can I send you on a different path? This solution will only be required in a non-editable area of the DWT.
    First we write a function to initialse the page
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"activeMenuItem");
    The function compares the URL of the page with the link in the menubar and if they are both the same, it will add an 'activeMenuItem, class to the menuitem.
    Next we nee a trigger to activate the function. This is done with a load listener as per
    Spry.Utils.addLoadListener(InitPage);
    Now we need to ensure that our active menuitem looks different, by assigning a couple of style rules as in the following. The !important needs to be there to override the JS.
    .activeMenuItem a {
        background:#a59a84 !important;
        color:#ffffff !important;
    And lastly we need to add SpryDOMUtils.js as the JS script that we based our JS scripts on
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    The whole thing will look like
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    <style>
    .activeMenuItem a {
        background:#a59a84 !important;
        color:#ffffff !important;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
            <ul>
              <li><a href="#">Item 3.1.1</a></li>
              <li><a href="#">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="#">Item 3.2</a></li>
          <li><a href="#">Item 3.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 4</a></li>
    </ul>
    <script src="SpryAssets/SpryMenuBar.js"></script>
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    <script>
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"activeMenuItem");
    Spry.Utils.addLoadListener(InitPage);
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    Or see it live here http://shoguncarco.com.au/index.php where the function has been externalised in http://shoguncarco.com.au/js/plugins.js
    Gramps

  • Pagination Displaying Count of Total Records available and Current Page

    Hi,
    I need to implement paging in one of our pages.
    The problem is we need to display the count of total number of records the search has resulted and the search results that fall into the current page.
    For e.g. If the search resulted in 100 records total and we are in page 5 (with 10 records per page), I need to display the count 100 on the top and records 51-50 in the page.
    How to get the count of fetched results without running a second SELECT COUNT(1) FROM ... clause.
    Is there a way to do this in a optimized way?
    Thanks

    How to get the count of fetched results without running a second SELECT COUNT(1) FROM ... clause.
    SQL> select cnt "Total", rn "Line", empno, ename, job
      from (select count (*) over () cnt, row_number () over (order by empno) rn,
                   empno, ename, job
              from emp)
    where rn between 4 and 6
         Total       Line      EMPNO ENAME      JOB     
            14          4       7566 JONES      MANAGER 
            14          5       7654 MARTIN     SALESMAN
            14          6       7698 BLAKE      MANAGER 

  • URGENT: Need help reading URL of current page

    Hello kind people!
    I need help, and its very simple:
    How do i read the URL of a web page?
    For example, the URL of this page is:
    http://forums.sun.com/thread.jspa?threadID=5327796
    So how can i be able to read in this URL in my java program?
    thanks SO MUCH
    P.S. I HAVE searched the java docs and everything, the closest thing i found was request.getRequestURL().? but i have no idea how to use it. you have NO IDEA how appreciative i would be if you could simply show me exactly how to read in the URL of a given page.
    thanks SO MUCH
    Edited by: homegrownpeas on Aug 31, 2008 5:19 PM

    Going by what I understand here is a simple version of how you can read data from over HTTP.
    This expects the "page" to be text (hence an InputStreamReader instead of an InputStream.)
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.HashMap;
    * GPLv2.
    * @author karlm816
    public class HomeGrownPeas {
          * @param args
         public static void main(String[] args) {
              HashMap<String, String> params = new HashMap<String, String>();
              params.put("threadID", "5327796");
              System.out.println(loadHttpPage("http://forums.sun.com/thread.jspa", params));     
         public static String loadHttpPage(String sUrl, HashMap<String, String> params) {
              // Build the HTTP request string
              StringBuilder sb = new StringBuilder();
              if (params != null) {
                   for (String key : params.keySet()) {
                        if (sb.length() > 0) {
                             sb.append("&");
                        sb.append(key);
                        sb.append("=");
                        sb.append(params.get(key));
              System.out.println("params: " + sb.toString());
              try {
                   URL url = new URL(sUrl);
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   connection.setRequestProperty("Content-Length", "" + sb.length());
                   connection.setUseCaches(false);
                   if (connection instanceof HttpURLConnection) {
                        HttpURLConnection conn = (HttpURLConnection) connection;
                        conn.setRequestMethod("POST");
                   OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream());
                   osw.write(sb.toString());
                   osw.close();
                   // Now use sb to hold the resutls from the request
                   sb = new StringBuilder();
                   BufferedReader in = new BufferedReader(
                         new InputStreamReader(
                         connection.getInputStream()));
                   String s;
                   while ((s = in.readLine()) != null) {
                        sb.append(s);
                        // To make it more "human readable"
                        sb.append("\n");
                   in.close();
             } catch (IOException e) {
                  e.printStackTrace();
                  return null;
            return sb.toString();
    }

  • Question about "Get Web Drawing URL and Page Name From" for Visio Web Access

    I am trying to get both the web drawing URL and the page name from a list through Share Point Designer 2013, but it doesn´t work.
    It looks fine when a do the web part connection wizard. I select from which columns to get the URL and the page name. But on the final web part page nothing happens. It just shows the URL that is selected in the Visio Web Access Web part. I had hoped that
    that value should be overrided by the SPD-settings.
    I have googled for hours..

    Hello,
    I have now saved the Visio-file in .vdw-format, but it says Visio 2010 Web Drawing (*.vdw). Is there a .vdw-format for 2013? Isn´t that the .vsdx-format?
    Still doesn´t work with the .vdw-format, but maybe I am doing something wrong.
    Any ideas?

  • WebDav Server Access: Workgroup vs. Browse URL

    Greetings,
    I am trying to set up WebDav access for a distributed authoring group.  Reading the user guide, it appears that the "Browse URL" approach is the newer and preferred access method.  The Workgroup functionality is older.
    When I attempt to use "Browse URL" and I enter in the URL of my WebDav server, it immediately says, "Cannot find the URL path..."  Using the Workgroup approach with the exact same URL works great with no problems.  I've tried other WebDav servers and in each case I get exactly the same result--Workgroup works fine and Browse URL says it cannot find the URL path.  I would prefer to use the Browse URL approach because it seems more streamlined, but there appears to be some kind of issue.
    Has anyone else experienced this issue?  Does anyone have any other suggestions?
    Thank you,
    Adam
    FM 9.0p255
    WinXP, SP3

    Hi Adam,
    Browse URL approach is the newer and the more preferred method to access WebDAV enabled CMS's starting from FrameMaker 9. The Browse URL functionality should work fine for IIS, Tomcat, Alfesco CMS and Documentum WebDAV configurations.
    - What WebDAV server configuration are you trying to access?
    - Please check whether you are able to browse the same WebDAV URLs in a browser as well.
    However unrelated it may seem, as you have been successful in connecting through the Workgroup route, you might try to map the WebDAV directory to a network drive. I am aware of a Microsoft update for Windows Vista (I notice that the applicable OS include WinXP as well) which enables access to mapped Web folders. Might be helpful.
    Here's the link:
    http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1 D64&displaylang=en
    Regards,
    Nakshatra

  • When i try and open a tab that is the same as the page im currently on i closes it self. not when i type the full address, but when i use the arrow keys to select the url and press enter

    when I try and open a tab that is the same as the page I'm currently on it closes it self. Not when I type the full address, but when I use the arrow keys to select the url and press enter. I just don't like typing in the same address 5 times, when the older Firefox worked.

    Hi
    AutoPunch enabled? Command click in the bottom half of the Bar Ruler to turn it off
    CCT

  • Update a browser URL without reloading the page

    Is there any way to update the browser url from flash without
    reloading the page?
    My main interest is in being able to use flash to change the
    url variables to reflect what is currently being displayed in the
    swf.
    ie.
    http://www.blah.com?frame=0 might be set to
    http://www.blah.com?frame=10 when the swf reaches frame 10,
    allowing the user to go directly to frame 10 if they return to the
    page later.
    Thanks
    Rick

    You can try a technique that is used by web designers to
    prevent back button actions. Through JavaScript you can write
    strings after hash "#" - like bookmarking (anchors) and then read
    this variables. The advantage is that page doesn't reload and
    bookmarks are saved in the browser history (back button issues).
    Hope it helps.

  • Open URL in current browser window

    I'm developing an application that works side-by-side with the user's default web browser. The browser communicates with the app through a proxy, and that works great. The issue I'm having is going the other way. So far, I've only been successful opening a new browser window each time. However, it would be much better to be able to open a page in the current window/tab. I mainly want this to work with Firefox (or anything other than IE). Has anyone ever done this, and is this even possible with Java?
    Thanks in advance.

    Desktop.getDesktop().browse() is what I'm using currently. I don't think you understood my problem. Currently it is opening in a new browser window. In Firefox, it's opening in a new tab, since I have it set to open in a new tab instead of new window. But, what I want it to do is open in the CURRENT tab. In other words, navigate from the current page to a new page, just as if the user had typed in an address into the address bar and pressed enter, or just as if he had clicked a standard link on the webpage.

  • When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    Did you have the Google Toolbar installed?
    * http://www.google.com/support/toolbar/bin/answer.py?answer=115561 Web-browsing tools : Google new tab page and most visited websites
    Other extension that have a similar feature:
    *Speed Dial: https://addons.mozilla.org/firefox/addon/4810
    *Fast Dial: https://addons.mozilla.org/firefox/addon/5721

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • I just updated to Firefox 3.6.12 and now every time I click anything online a new tab opens. How do I return to normal (clicking a link opens it in current page and tab)?

    I'm used to clicking a link on a news story or any searched link on google and having my current page go there. Now my current page stays the same and any link I click opens in a new tab. This is very annoying. I just want my browser to go there.

    Google Toolbar Options, in the Search tab, make sure that '''Enable the Google new tab page''' is check-marked. If that doesn't fix it for you, see this for support information about the Google Toolbar. <br />
    [http://www.google.com/support/toolbar/?hl=en] <br />
    Or visit the Google Toolbar forum. <br />
    [http://www.google.com/support/forum/p/Toolbar?hl=en]
    As far as your UserAgent showing Firefox 3.0.11, see this: <br />
    https://support.mozilla.com/en-US/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser
    You might want to consider getting rid of that '''desktopsmiley''' program that has messed up your UserAgent, it is known as Malware.

  • Collecting the URL for the current page..

    I'd like to collect the complete URL that created the current page. I'd like to pas this information to a succeding dynamic page, so that I can return to the current page.
    I have tries using the OWA_UTIL.get_cgi... routines but they seem to be lacking the parameter list to make them complete. The path and page, but no parameters.
    Is there an API routine or a technique to accomplish this in PL/SQL?
    Thanks,
    Stuart

    We had the same problem at a project, we solved it with the use of javascript. If you want an example mail me at [email protected]
    arny

  • Some times firefox does not opens facebook and google pages and this does not happen for other sites. Iam Currently using windows xp and using 3.6.3 Firefox version.Please help.

    Some times the fire fox does not open google and facebook pages but it does not happen for other sites. Iam currently using Windows xp and iam using Mozilla Fire fox 3.6.3 .Please help
    == URL of affected sites ==
    http://www.facebook.com,www.google.com

    You can try a direct connection and select No Proxy in the connection settings.
    You can find the connection settings in "Tools > Options > Advanced : Network : Connection"
    Also do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

Maybe you are looking for

  • Select multiple options in safari or firefox

    Hello to all, I am trying to select multiple options in web form on safari or firefox. I am trying with ctrl and mouse but is not working. This fields are not in order so I can not use shift it must be Manuel selection. Thank you in advance for fast

  • I frequently get a "url is not valid and cannot be loaded" when I know the URL is valid

    When searching or using previously validated bookmarks I frequently get an error message "url is not valid and cannot be loaded" How do I fix this?

  • Cannot save a file

    I recently upgraded my OSX. I am not certain if that is the cause of this behaviour or not, but here is what is happening... I am trying to save a file to my MacBook hard drive and the save button in my finder dialog box is greyed out. I do not know

  • How to delete a student in Campus Management?

    How to delete students in Student File that were created accidentally and therefore there's no point in keeping that data? Usually all objects in SAP can be removed without any problems - either directly or through the Object Manager but it looks lik

  • Memo pad not showing memos

    When i write a note in the memo pad- save it- its not there. When i go to options it is showing the number of the entries but no notes. What can i do? Is there any update for that?