You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Justin McKay (JIRA)" <ad...@incubator.apache.org> on 2007/04/03 20:56:32 UTC

[jira] Updated: (ADFFACES-434) Dynamic View Handeling from a ValueChangeEvent(SelectOneChoice or Similar)

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

Justin McKay updated ADFFACES-434:
----------------------------------

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


  was:
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);


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