2 Replies Latest reply on Jun 22, 2007 5:04 PM by avbentem

    URL in address bar

    dkane

      Hello

      When I try booking example online, and put cursor over "Book hotel" link, I see the URL in status bar looking like
      http://seam.demo.jboss.com/main.seam?actionMethod=hotelBooking.selectHotel&dataModelSelection=hotels%5B0%5D

      If I click this link, browser address bar displays something like
      http://seam.demo.jboss.com/hotel.seam?conversationId=21671 , without all these "actionMethod", etc.

      In my own Seam application the picture is different : the long URL with all parameters is displayed in browser address bar.

      I am unable to find the option, configuration parameter or code responsible for that. Could anyone please explain how to make URL in address bar short ?

        • 1. Re: URL in address bar
          christian.bauer

          This is just a normal HTTP redirect response from the server, triggering the client browser to send a new HTTP GET request on a given URL.

          • 2. Re: URL in address bar

             

            "christian.bauer@jboss.com" wrote:
            This is just a normal HTTP redirect response from the server, triggering the client browser to send a new HTTP GET request on a given URL.

            ...which might indicate that your WEB-INF/pages.xml is set up different than the one from the online demo:
            <navigation from-action="#{hotelBooking.selectHotel(hot)}">
             <redirect view-id="/hotel.xhtml"/>
            </navigation>