[ https://issues.apache.org/jira/browse/ADFFACES-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin McKay reopened ADFFACES-434: ----------------------------------- Adam I have reopened the issue as even if I take your sample code and put it into my environment I get the same results as before. The one thing that i can see that we are doing different is we are using *.xhtml as the DEFAULT_SUFFIX and we are using facelets so our ALTERNATE_VIEW_HANDLER is com.sun.facelets.FaceletViewHandler. > Dynamic View Handeling from a ValueChangeEvent(SelectOneChoice or Similar) > -------------------------------------------------------------------------- > > Key: ADFFACES-434 > URL: https://issues.apache.org/jira/browse/ADFFACES-434 > Project: MyFaces ADF-Faces > Issue Type: Bug > Environment: I have tried with the nightly build as well as 1.0 and > 1.0.1 versions of Trinidad. State Saving on the client side > Reporter: Justin McKay > > Dynamic navigation from a ValueChangeEvent(selectOneChoice). This did work > with Oracle's ADF but is > not working with Trinidad. It seems like the page is created(backing beans > are called > and the page seems to be generated), we are just not actually moving to that > page. One thing to note is this code does work from an ActionEvent(Button > or Link). > String path = "/misc/finder.xhtml"; > FacesContext fContext = FacesContext.getCurrentInstance(); > ViewHandler vh = fContext.getApplication().getViewHandler(); > UIViewRoot uroot = vh.createView(fContext, path); > fContext.setViewRoot(uroot); > I also tried to use the external context to redirect to a new page: > FacesContext context = FacesContext.getCurrentInstance(); > HttpServletResponse response = > (HttpServletResponse)context.getExternalContext().getResponse(); > response.sendRedirect("http://www.google.com"); > > This code does not work either. > The strange thing is if I try and say click an unrelated button on the page > afterwards, the browser then goes to the page we tried to go to from the > Value Change Event. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.