voyent
URL not shown  XML
Forum Index -> General Help
Author Message
chouaffe

Joined: 08/May/2014 04:28:39
Messages: 3
Offline


Hi guys,

this is my first post on this forum. A few weeks ago I took over a jsf project that is built with icefaces.
I find it very inconvenient that the URL of the current page is never displayed in the bar address. In fact only the domain can be seen. As an example, www.test.com/icesoft.jspx would merely be shown as www.test.com, and this applies for all the pages which are part of the application.

Is there someting that I need to do in order to disable that behavior, so that every page gets its URL shown in the bar address of the browser?

Thanks in advance.

chouaffe
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


If the URL is completely hidden, the main page may be within an iframe; is that the case?
[Email]
chouaffe

Joined: 08/May/2014 04:28:39
Messages: 3
Offline


Hi ted.goddard.

No, it is not the case. What do you mean actually by "main page"?
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


You're not referring to the fact that some browsers, such as iOS 7 safari, hide part of the URL are you?

ICEfaces doesn't customize the URL in any way. Perhaps it's possible that your app is using a JSP welcome page that does a FORWARD request (<jsp:forward/>) to the starting JSF page. In that scenario the servlet container wouldn't REDIRECT from the context root to the welcome page (declared in web.xml) and then JSF would (by default) use FORWARDs for navigation as well, leaving the original context root as the current URL shown in the browser.

Try adding <redirect/> to any navigation rules declared in in your faces-config.xml. You can learn more about JSF navigation and REDIRECTs here:

http://www.mkyong.com/jsf2/jsf-page-forward-vs-page-redirect/

.
chouaffe

Joined: 08/May/2014 04:28:39
Messages: 3
Offline


Hi Philip.breau.

You advice to adding <redirect /> to any navigation rules solved the problem.

Thanks.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team