How to redirect to home page (/) in p:menuitem

UI Components for JSF
timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

21 Jul 2010, 10:01

@oleg
it works on mozilla, but not on ie7/ie 8. On IE, it's considered as if I want to save some file instead of opening page. Is this IE-specific?
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

21 Jul 2010, 10:28

I don't know. It works on my PC :-)
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

heidarzadeh
Posts: 22
Joined: 24 Oct 2011, 09:22

13 May 2012, 10:39

Oleg wrote:Welcome file should be index.html

Code: Select all

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>
with the following content as example

Code: Select all

<html>
<head>
    <meta http-equiv="refresh" content="0; URL=views/main.jsf">
</head>
</html>
Thanks Oleg.
I used this code but it is just refreshing the page continuously!

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

13 May 2012, 12:36

What page? index.html or main.jsf? It works for us.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests