0

Here is the scenario: My application has a home page which contains different regions. The page loads all the regions instead of one which is running with separate thread and taking long time. Now during the execution of long running task, if user wants to navigate to another page by clicking on a command link or goLink then it works on google chrome and IE but doesn't work with Firefox. In case of firefox once it seems to redirecting to desired url for a while but then it redirects back to same page. Surprisingly, It works perfectly once the execution of long running task is finished. So it seems problem with firefox's handling of asynchronous requests. I tried FacesContext.getCurrentInstance().getExternalContext().redirect(url) and setting the URL as destination for goLink to navigate. Below is the code for goLink and commandLink:

af:goLink id="pt_g22" text="#{node.title}" destination="#{contextroot}/faces/test.jsp" styleClass="#{node.selected ? 'ln_active' : ''}"/>

af:commandLink id="pt_c21" text="#{node.title}" action="pprnav" clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}" styleClass="#{node.selected ? 'ln_active' : ''}" actionListener="#{MyBean.navigateToHere}" partialSubmit="true">

in commandLink's actionListener method i am just having : FacesContext.getCurrentInstance().getExternalContext().redirect(url)

Any help or suggestion is appreciated.

0 Answers0