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 18:40:32 UTC

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

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Justin McKay (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: test.xhtml

Here is my test.xhtml file

> 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
>         Attachments: test.xhtml
>
>
> 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.


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

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer closed ADFFACES-434.
-------------------------------

    Resolution: Cannot Reproduce

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


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

Posted by "Justin McKay (JIRA)" <ad...@incubator.apache.org>.
     [ 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.


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

Posted by "Justin McKay (JIRA)" <ad...@incubator.apache.org>.
     [ 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.


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

Posted by "Justin McKay (JIRA)" <ad...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/ADFFACES-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486719 ] 

Justin McKay commented on ADFFACES-434:
---------------------------------------

Another user recommended that I try using the handleNavigation method within the navigation handler:

FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), currentActionMethod, redirectActionMethod);

I got the same exact behavior as the above methods

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


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

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
    [ 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.