Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-278

allow multiple redirects via view-configs

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            maxtorzito José Luis Cetina (maxtorzito)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: