Commits

Anonymous committed c70a09f

Issue number: WW-924
Obtained from:
Submitted by:
Reviewed by:
Snippet based docs

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@925e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits a74ddad

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/LocalizedTextUtil.java

 /**
  * Provides support for localization in XWork.
  *
+ * <!-- START SNIPPET: searchorder -->
+ * Resource bundles are searched in the following order:<p/>
+ * <p/>
+ * <ol>
+ * <li>ActionClass.properties</li>
+ * <li>BaseClass.properties (all the way to Object.properties)</li>
+ * <li>Interface.properties (every interface and sub-interface)</li>
+ * <li>ModelDriven's model (if implements ModelDriven), for the model object repeat from 1</li>
+ * <li>package.properties (of the directory where class is located and every parent directory all the way to the root directory)</li>
+ * <li>search up the i18n message key hierarchy itself</li>
+ * <li>global resource properties (webwork.custom.i18n.resources) defined in webwork.properties</li>
+ * </ol>
+ * <!-- END SNIPPET: searchorder -->
+ *
+ * <!-- START SNIPPET: packagenote -->
+ * While transversing the package hierarchy, WW will look for a file package.properties.
+ * <!-- END SNIPPET: packagenote -->
+ *
  * @author Jason Carreira
  * @author Mark Woon
  * @author Rainer Hermanns