jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdaw...@apache.org
Subject cvs commit: jakarta-taglibs/i18n/examples/web message.jsf
Date Tue, 16 Oct 2001 04:26:44 GMT
tdawson     01/10/15 21:26:44

  Modified:    i18n/examples/web message.jsf
  Log:
  updated example to show support for messageArg in message tag's body
  when the body is used as the default (i.e. the key is not found)
  
  Revision  Changes    Path
  1.2       +6 -4      jakarta-taglibs/i18n/examples/web/message.jsf
  
  Index: message.jsf
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/i18n/examples/web/message.jsf,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- message.jsf	2001/06/13 03:24:39	1.1
  +++ message.jsf	2001/10/16 04:26:44	1.2
  @@ -36,14 +36,16 @@
   The <i>message</i> tag with a defined body provides a default in case a particular
locale doesn't have the key defined. This is also useful to <ul><li>provide some
text during development</li><li>allow the JSP's to be laid out using standard
html editing tools</li><li>provide "if not" JSP processing</li></ul><br>
   
     <pre>
  -  &lt;i18n:message key="test3"&gt;
  +  &lt;i18n:message key="no.such.key"&gt;
        This text would be displayed if a language neglected to
  -     define a value for test3.
  +     define a value for no.such.key.  Arguments are supported {0,date,short}
  +    &lt;i18n:messageArg value="&lt;%= dateArg %&gt;"/&gt;
     &lt;/i18n:message&gt;
     </pre>
     <i>
  -  <i18n:message key="test3">
  +  <i18n:message key="no.such.key">
        This text would be displayed if a language neglected to
  -     define a value for test3.
  +     define a value for no.such.key.  Arguments are supported {0,date,short}
  +    <i18n:messageArg value="<%= dateArg %>"/>
     </i18n:message>
     </i>
  
  
  

Mime
View raw message