Redirect « IceFaces « JSF Q&A





1. JSF Page Navigation Not Working    stackoverflow.com

I have the following navigation rules defined in faces-config.xml. I am able to navigate to second page, however from second page to first, I am not able to navigate. What could ...

2. Redirect does not work anymore after installing IceFaces    stackoverflow.com

In my JSF 2.0 project I've got an index.xhtml page where I implemented a login. After a successful login I want to redirect to EditFile.xhtml. This worked always successfully. <h:commandButton value="Login" action="EditFile.xhtml"/> Now ...

3. Redirect after table row selection    icefaces.org

I have a page with a table displaying a number of devices, when i select a row i want to redirect to another page that will show detail infomration for that specific device. How can i accomplish this? I'm using iceFaces 1.7.1 with netbeans 6.1. With the page navigation I can only create a redirect for buttons, the rowSelection doesn't appear. ...

5. icefaces redirecting problem    icefaces.org

6. Redirection error    icefaces.org

Hi Ice people! I'm developing an application using IceFaces deployed on OC4J, and I'm getting a very strange exception, basically what I'm doing is going from page A to page B using a normal action function, then page B returns to page A, but in the return process the exception occurs. This happened other time and I thought that the problem ...

7. How to use command link binded action method to redirect a page to target frame    icefaces.org

Hi! I have a requirement. Currently i am using to open a page by specifying the target frame. it is working fine. But i want to simulate the same by . When i click the commandLink it has to call a method in the bean class. basing on the return type of the method, the corresponding page should be ...

8. Forward not working, redirect only works    icefaces.org

Hi After introducing Icefaces to JSF ap, all the navigation rules need to be changed to have , without which screens are not working. So far we put redirect tag, but now we want to handle exceptions, by forwarding to a common error page and display the error message which was set in the catch block. Unfortunately global messages are displayed ...

9. Redirect from a iceface page.    icefaces.org





10. Losing session on external redirect    icefaces.org

We have a view that has a standard HTML form that makes a submission off to another site direct from the users browser via a standard form submit. Therefore, the users browser follows that new URL. That page in turn, processes some information and redirect's them back to my icefaces application. Through all of this, I'm loosing all of the users ...

12. multiple tabs \ pages redirect render bug    icefaces.org

Hi, I have a site with two pages, both with a set of tabs. On the first page there is a link to the second page (via spring security login). Once redirected to the second page, the page is rendered with the tabs of the first page in addition to the new tabs. The new tabs of the new page don't ...

13. dont redirect on javascript disable    icefaces.org

14. Redirect with iceface    icefaces.org

but when I try to put this code in mye page1.jsp with the framework iceface, I just get the error: The content of elements must consist of well-formed character data or markup but when I try to put I also get error, so what shall I do??do it from the java instead?

16. Avoid NoJavacript redirect of Icefaces    icefaces.org

Hi everybody. Firstly, sorry for my poor english, because I don't practice it as much as i should... Well, making long story short, we are trying to disable in some way, the automatic redirection that Icefaces does when detects that javascript is no enabled (the "Javascript is blocked. ICEfaces cannot run." page). Does anyone know any way to do it? Thanks ...





17. PhaseListner and .    icefaces.org

We are facing an issue: After loging to our application, we traverse to create page on click of a button. We use auto save in our create page using javascript and phaselistener. And we use icefaces components. Then from there; if we refresh, it takes us back to main page after suffixing rvn=2. But it is supposed to stay in the ...

18. Using redirects my pages    icefaces.org

Hi I am building an application that requires me to build a tree. Now when i am using in that Tree its page gets redirected and i get the following exception Servlet.service() for servlet Persistent Faces Servlet threw exception java.lang.Exception: javax.faces.FacesException: No request available for dispatch. at com.icesoft.faces.context.View.servePage(View.java:142) at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52) at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160) at ...

19. Icefaces Session Expired in Internet Explorer accesing by domain redirect with mask    icefaces.org

Hi, The session expires when access to my application by domain redirect with mask only with Internet Explorer 6.x and 7.x. I've tried with Firefox and Opera and the redirect works fine. when access by ip address, it works fine including IE. Does exist a form to make a new session or renew it? I tried modifying the session timeout in ...

23. redirect is not working in 1.8.2    icefaces.org

Hi i have a working application in 1.8.1.when i am migrating it o 1.8.2 the redirect is not working properly. public class Controller implements PhaseListener{ public void afterPhase(PhaseEvent phaseEvent) { FacesContext fc = phaseEvent.getFacesContext(); HttpSession session=(HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true); System.out.println("in after phase"); if(session.getAttribute("username")==null){ try { HttpServletResponse httpServletResponse = (HttpServletResponse)fc.getExternalContext().getResponse(); HttpServletRequest httpServletRequest = (HttpServletRequest)fc.getExternalContext().getRequest(); String redirect = httpServletRequest.getServerName(); InitialContext context = new InitialContext(); if(!httpServletRequest.getRequestURI().contains("main/login.jspx")) PersistentFacesState.getInstance().redirectTo((new ...

25. It's possible to use c:redirect or jsp:forward with icefaces-facelets.jar?    icefaces.org

Hi, I using ICEFaces (1.8.1) with icefaces-facelets.jar and I need to implement a redirect (or forward) in a JSP/JSF page. I have following simple JSF page (look at the c:redirect and jsp:forward statements): Code:

26. Problem with OpenSessionInView and Navigation (without redirects)    icefaces.org

I have a basic IceFaces 1.8.2 + Spring 3.0.x application up and running and a couple of pages making use of Hibernate to display and update information in the database. I am using the OpenSessionInView Phase Listener, described by Rick Hightower, I have seen it mentioned in other threads in this forum and the code for it is available here - ...

27.  tag in web.xml not redirecting    icefaces.org

28. no redirect from login-page to the following pages    icefaces.org

Hello everybody, I stuck with my little project, because I can't figure it out why my redirect to the next page is not working. I did a tutorial (http://www.vogella.de/articles/JavaServerFaces/article.html#jsf_mainfeatures), point 5 for JSF. And there it is working. Then I created a new Icefaces-project and now every page is working, I can view them in the explorer and there are no ...

30. Redirect / forward after effect finished or how to create a custom effect    icefaces.org

Hi guys, recently I started to use icefaces v2 and I really like it. Theres just one thing I'm missing and that's a way to redirect a user after an effect finished. What I want to do: - user submits a form - validate everything - fade in a window that tells him that everything went good - redirect after the ...

31. navigation rules dont redirect HELP    icefaces.org

hi , i have problem with navigation rules, doesnt work icefaces 1.8.1 , jsf 1.2 , tomcat 6 --backing bean package view.managedBeans; import services.UsuarioService; import businessObjects.Usuario; public class PrincipalBean { private UsuarioService usuarioService; private Usuario usuario; private String navigationRule="principal"; public Usuario getUsuario() { if (usuario == null){ usuario = new Usuario (); } return usuario; } public void setUsuario(Usuario usuario) { ...

33. index.jsp redirect to welcome.jspx    icefaces.org

35. navigation only works with     icefaces.org

36. POST redirect GET question    icefaces.org

38. IceFaces Navigation Redirect    icefaces.org

39. Redirect to page    icefaces.org

40. Dynamic Menubar < redirect/ > problem (solved)    icefaces.org

Hi everybody, I am developping a webapp with ICEfaces 2.0.2 , Mojarra JSF 2.1.1 I have found a problem for which I need your help.. In my app I build a Menubar dynamically as follows.. ... private List menuModel; public List getMenuModel() { return this.build_menu_content(); } public List build_menu_content() { MenuItem TL = new MenuItem(); TL.setId("mainmenu1topLevel1"); TL.setValue("Home"); MenuItem sub1_1 = new ...

41. Redirect link in menu bar    icefaces.org

43. Redirect from session expired    icefaces.org

44. problem to redirect external pages    icefaces.org

46. Navigation: Why does ICEfaces break when I don't have the redirect tag?    icefaces.org

Why does ICEfaces break when I don't have the redirect tag inside my navigation rule in my faces-config.xml? For example: I have a page with: Go When I use the following navigation rule in my faces-config.xml, everything *does* work: next /page/nextpage.iface And all of the ICEfaces components are rendered with their respected Persistent ...

49. Redirect after session invalidation?    icefaces.org

Hi, I'm trying to logout from my application by clearing the Acegi security context and killing the session in order to clear my session-scope spring-based application beans but the navigation back to the login page doesn't (perhaps not that surprising) work after that. Is there any way of redirecting from within ICEfaces? I trided some trick with getting the externalcontext and ...

50. [BUG ???]redirect close de session    icefaces.org

51. page redirect    icefaces.org

Hi Philip thanks for your reply...PersistentFacesState.getInstance().redirectTo(url); did not work. What could be the reason for these "freezing" state? Do I have to forward somehow or does it just not work out with the server push? What I want to do is start java webstart from a commandButton (I alos tried commandLink)! thanks in advance, regards, phil

52. Redirect problem when using inputFile in popup    icefaces.org

Hi, I use an inputFile component in a popup panel. I want to close the popup after the file is uploaded. To achieve this I use an action listener with the inputFile. I modify the backing bean boolean property which is used to show the popup. However, the popup does not close by doing that. Any idea why? Also, tried redirecting ...

54. Redirect on Java script blocked    icefaces.org

55. Disable Redirect on Java script blocked?    icefaces.org

well, actually I want to redirect to a site which shows information for search engine crawlers. Since they do not follow javascript links they would not see any content otherwise. To show the data I have to access my managed beans etc. This also works. It just does an redirect over and over again, as the page I redirect to also ...

56. Redirect to previous page, back button    icefaces.org

I will tell you in a few words what I have done in my application. To code is not difficult, but also it can get non-trivial, depending on the functionality. First of all you need the session-scoped bean philip was talking about (in my case it's called BackNavigationBean). Second ... if all you need is just a back from that page ...

57. Anyway to redirect on Exception?    icefaces.org

58. rowSelector forward or redirect to page with parameters    icefaces.org

I am currently working on just that same process (to integrate into the icefaces-seam-gen templates). I have the rowSelector working and am just going to try to set the page parameter and have my selectionListener for my rowSelector doing the redirection.....Seems to me the simplest way, but maybe you have another (better?) idea???

59. An issue with JSF Redirect    icefaces.org

com.sun.faces.validateXml true com.sun.faces.verifyObjects false com.icesoft.faces.uploadDirectory upload com.icesoft.faces.uploadMaxFileSize 4048576 javax.faces.STATE_SAVING_METHOD server com.icesoft.faces.concurrentDOMViews false com.icesoft.faces.synchronousUpdate false com.icesoft.faces.standardRequestScope false com.icesoft.faces.util.event.servlet.ContextEventRepeater Persistent Faces Servlet com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet 1 Blocking Servlet com.icesoft.faces.webapp.xmlhttp.BlockingServlet 1 uploadServlet com.icesoft.faces.component.inputfile.FileUploadServlet 1 Persistent Faces Servlet /xmlhttp/* Persistent ...

60. Redirect Page Error    icefaces.org

65. Problem with facelets, and request scope    icefaces.org

Hi, I'm very new to ICEfaces, but have some experience with JSF. In my test ICEfaces application, using facelets, my request scoped backing bean goes out of scope when navigating between pages. Apparently a is required for navigation to work properly with facelets, and a redirect 'clears' any pre-existing request scope. Is there a work around for this? Thanks Jarvis ...

67. JS error on redirect    icefaces.org

I have a command button on a page that redirects to a different page. I also have a connection indicator on both the from and to pages. They do not share a common layout, so we have to use different indicators. Everytime I click on this button, I get a javascript error: "'form' is null or not an object". Opening the ...

68. browser back button and redirect    icefaces.org

70. page flow issue and redirect    icefaces.org

I tried to post this question before and have not got any response yet. But I do desperately need help here. So let me re-state my problem again. I have a menu page and it uses the ice:commandLink to point to calllist.xhtml page. callList.xhtml page displayes a list of items. At each row of the item list, there is a column ...

72. redirect reuqest scope    icefaces.org

I have one problem and one question: 1. When I redirect to the same page the request is not destroyed. How can I destroy the request? The request scoped bean hase survived the redirect. 2. In order to destroy the bean I set the standartRequestScope to true. But then on avery actionListener executed a new request bean is created. Is this ...

74. Navigation without     icefaces.org

75. Redirect and RVN number    icefaces.org

76. error redirecting - pages.xml    icefaces.org

Thanks for your reply! The web.xml solution worked, at least in Firefox anyway. In good ol' IE of course the the app just appears to freeze for a second or two then you're presented with a white-screen again. So in conclusion it appears that certain errors are slipping through pages.xml? I wonder if theres anything the iceFaces team can do to ...

77. Without redirect tag in navigation-case tag my application doesn't work?    icefaces.org

I'm also facing the same problem with WebSphere 6.1. Application works (but slower) with a tag in each navigation case. As soon as I take out the tags, I can no longer navigate from page to page. Internet explorer displays "page cannot be displayed". When I run my application on Websphere Application Server Community Edition (Geronimo), the application works ...

78. Managed bean runtime exceptions and page forwarding (or redirect)    icefaces.org

I am wondering if there is a good way of handling runtime exceptions thrown from methods within a managed bean not thrown as a result of a direct user action in ICEfaces? This is somewhat of a general question in regards to JSF, but I'd like to know if there are any features in ICEfaces that may make this easier to ...

79. Session Times out - redirect to login page    icefaces.org

It's not what I'm looking. I want solution for situation if user does not touch the screen for some time it's brings Iceface message session expired, then you click OK and it's bring back page but session info about user is lost. I would like to redirect to my login page when session expired to make user login again. To my ...

81. Redirect Problem in Icefaces    icefaces.org

83. Navigation redirect to previous page    icefaces.org

Hello again, after a while of working on another project i am now back to this issue. For better testing and demonstrating I created a war file. So I hope my problem will become more clear. Like I said this navaigation case worked in a previous version of icefaces. but I was not able to create also a war file with ...

85. Page redirect hangs system    icefaces.org

88. Problem with redirect pages    icefaces.org

89. Problem with server redirect    icefaces.org

90. redirect and browser back    icefaces.org

I used the advice suggested on this forum by adding "redirect" in the navigatio, so it solved the browser back button issue. The redirect does make the browser back button works. But it introduces another problem. I have a page which contains the dataTable. Inside the dataTable, one of the cell is commandLink. This commandLink will let the user go to ...

92. commandLink in dataTable cause a redirect    icefaces.org

I have a simple dataTable with commandLinks. By clicking on a Link the method in the managedBean checks the params. If there is an error the method add a htmlMessage to the FacesContext and return null. Code: #{contact.projects}

93. Redirect page.......!! HELP MEEEE!!!    icefaces.org

The "rvn" parameters is appended by ICEFaces to keep track of the view on page redirect. We are planning to remove the use of this parameter since it sometimes interferes with the rest of the application. For now the workaround would be to use absolute URLs in the redirect navigation rule...if your deployment allows it.

94. Forward/Redirect Bug causing applications to crash    icefaces.org

com.icesoft.faces.concurrentDOMViews true com.icesoft.faces.synchronousUpdate false com.icesoft.faces.debugDOMUpdate false com.icesoft.faces.standardRequestScope false com.sun.faces.validateXml true com.sun.faces.verifyObjects true com.icesoft.faces.uploadMaxFileSize 4048576 javax.faces.STATE_SAVING_METHOD server com.icesoft.faces.util.event.servlet.ContextEventRepeater Persistent Faces Servlet com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet 1 Blocking Servlet com.icesoft.faces.webapp.xmlhttp.BlockingServlet 1 uploadServlet com.icesoft.faces.component.inputfile.FileUploadServlet 1 Faces Servlet javax.faces.webapp.FacesServlet 1 Persistent ...

95. Icefaces redirect while impersonating    liferay.com

Im doing page redirects form my IceFaces portlets with the following code: FacesContext fc = FacesContext.getCurrentInstance(); ExternalContext externalContext = fc.getExternalContext(); try { externalContext.redirect(parentRedirect); } catch (IOException e) { s_log.error(e.getMessage(), e); } This works fine but if Im impersonating another user in Liferay I get switched back to me. I imagine the FacesContext knows nothing about my impersonation. Does anyone know anyway ...