craigmcc    2004/07/07 15:08:56

  Modified:    contrib/struts-faces README.txt
               contrib/struts-faces/src/conf faces-config.xml
  Added:       contrib/struts-faces/src/java/org/apache/struts/faces/application
                        ViewHandlerImpl.java
  Log:
  Make locale changes performed in the usual Struts manner (session attribute
  Globals.LOCALE_KEY) affect JSF component rendering as well.  This is done in
  a custom ViewHandler implementation that decorates the standard one.
  
  PR: 26895
  Submitted by:  Arthur Fitt <arthur.fitt AT netregulus.com>
  
  Revision  Changes    Path
  1.14      +7 -1      jakarta-struts/contrib/struts-faces/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/struts-faces/README.txt,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- README.txt        7 Jul 2004 19:40:29 -0000       1.13
  +++ README.txt        7 Jul 2004 22:08:56 -0000       1.14
  @@ -75,6 +75,12 @@
     web application.  For example, the converted "Mail Reader" example includes
     using the <h:dataTable> for multi-row input as well as output.
   
  +* If your Struts application stores a Locale in the session attribute
  +  named Globals.LOCALE_KEY (i.e. using the usual Struts technique for
  +  establishing a user specific locale), this setting will be copied to
  +  the UIViewRoot of the corresponding JSF view, which will therefore
  +  cause it to change the Locale used by JSF components and renderers also.
  +
   This release of the Struts-Faces Integration Library (Version 1.0) has the
   following revised features relative to the previous (0.4) release:
   
  
  
  
  1.5       +4 -1      jakarta-struts/contrib/struts-faces/src/conf/faces-config.xml
  
  Index: faces-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/struts-faces/src/conf/faces-config.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- faces-config.xml  8 Mar 2004 03:07:35 -0000       1.4
  +++ faces-config.xml  7 Jul 2004 22:08:56 -0000       1.5
  @@ -31,7 +31,7 @@
   <faces-config>
   
   
  -  <!-- Custom Application ActionListener and PropertyResolver -->
  +  <!-- Custom JSF Lifecycle and Evaluator Objects -->
   
     <application>
       <action-listener>
  @@ -40,6 +40,9 @@
       <property-resolver>
         org.apache.struts.faces.application.PropertyResolverImpl
       </property-resolver>
  +    <view-handler>
  +      org.apache.struts.faces.application.ViewHandlerImpl
  +    </view-handler>
     </application>
   
   
  
  
  
  1.3       +87 -171   
jakarta-struts/contrib/struts-faces/src/java/org/apache/struts/faces/application/ViewHandlerImpl.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to