[jboss-cvs] jboss-seam/src/main/org/jboss/seam/theme ...

Gavin King gavin.king at jboss.com
Thu Mar 8 21:14:15 EST 2007


  User: gavin   
  Date: 07/03/08 21:14:15

  Modified:    src/main/org/jboss/seam/theme  ThemeSelector.java
  Log:
  fix another bug in natural conversation ids
  
  Revision  Changes    Path
  1.16      +2 -1      jboss-seam/src/main/org/jboss/seam/theme/ThemeSelector.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ThemeSelector.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/theme/ThemeSelector.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- ThemeSelector.java	28 Feb 2007 06:19:02 -0000	1.15
  +++ ThemeSelector.java	9 Mar 2007 02:14:15 -0000	1.16
  @@ -25,6 +25,7 @@
   import org.jboss.seam.core.Events;
   import org.jboss.seam.core.Locale;
   import org.jboss.seam.core.Messages;
  +import org.jboss.seam.core.Pages;
   import org.jboss.seam.core.Selector;
   import org.jboss.seam.log.LogProvider;
   import org.jboss.seam.log.Logging;
  @@ -81,7 +82,7 @@
      {
         Contexts.removeFromAllContexts( Seam.getComponentName(Theme.class) );
         FacesContext facesContext = FacesContext.getCurrentInstance();
  -      String viewId = facesContext.getViewRoot().getViewId();
  +      String viewId = Pages.getViewId(facesContext);
         UIViewRoot viewRoot = facesContext.getApplication().getViewHandler().createView(facesContext, viewId);
         facesContext.setViewRoot(viewRoot);
         
  
  
  



More information about the jboss-cvs-commits mailing list