incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Commented: (ADFFACES-434) Dynamic View Handeling from a ValueChangeEvent(SelectOneChoice or Similar)
Date Sun, 15 Apr 2007 22:46:15 GMT

    [ https://issues.apache.org/jira/browse/ADFFACES-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488983
] 

Adam Winer commented on ADFFACES-434:
-------------------------------------

Did you set "autoSubmit" on the selectOneChoice?  I've just checked in a
demo showing exactly this technique working (on trunk, see
trinidad-demo/src/main/webapp/demos/pprDemos.jspx,
and PartialDemoUtilBean.navigate())

> 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.


Mime
View raw message