You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (Resolved) (JIRA)" <de...@myfaces.apache.org> on 2012/04/01 16:00:33 UTC
[jira] [Resolved] (EXTCDI-278) allow multiple redirects via
view-configs
[ https://issues.apache.org/jira/browse/EXTCDI-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved EXTCDI-278.
-------------------------------------
Resolution: Fixed
> allow multiple redirects via view-configs
> -----------------------------------------
>
> Key: EXTCDI-278
> URL: https://issues.apache.org/jira/browse/EXTCDI-278
> Project: MyFaces CODI
> Issue Type: Improvement
> Components: JEE-JSF12-Module, JEE-JSF20-Module
> Affects Versions: 1.0.4
> Reporter: Jose Luis Cetina
> Assignee: Gerhard Petracek
> Priority: Minor
> Fix For: 1.0.5
>
>
> see http://mail-archives.apache.org/mod_mbox/myfaces-users/201203.mbox/%3CCAPyf0geF3aQkhqrCi-7EE293FAai76fzC7t90ehE%3D8NLyPQUrw%40mail.gmail.com%3E
> workaround without redirect - example:
> //...
> public class CustomPageBean
> {
> @Inject
> private ViewConfigResolver viewConfigResolver;
> @PreRenderView
> protected void showCustomView()
> {
> ViewConfigDescriptor viewConfigDescriptor = this.viewConfigResolver.getViewConfigDescriptor(CustomView.class);
> FacesContext facesContext = FacesContext.getCurrentInstance();
> ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
> UIViewRoot targetView = viewHandler.createView(facesContext, viewConfigDescriptor.getViewId());
> facesContext.setViewRoot(targetView);
> }
> }
> //+ configure CustomPageBean as page-bean
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira