myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdud...@apache.org
Subject cvs commit: incubator-myfaces/src/myfaces/org/apache/myfaces/taglib/core ConvertDateTimeTag.java ConvertNumberTag.java
Date Mon, 22 Nov 2004 16:13:08 GMT
bdudney     2004/11/22 08:13:08

  Modified:    src/myfaces/org/apache/myfaces/taglib/core
                        ConvertDateTimeTag.java ConvertNumberTag.java
  Log:
  added code to make sure the converterId is set in WebLogic8.1sp3.
  
  Revision  Changes    Path
  1.7       +16 -5     incubator-myfaces/src/myfaces/org/apache/myfaces/taglib/core/ConvertDateTimeTag.java
  
  Index: ConvertDateTimeTag.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/taglib/core/ConvertDateTimeTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ConvertDateTimeTag.java	13 Oct 2004 11:51:00 -0000	1.6
  +++ ConvertDateTimeTag.java	22 Nov 2004 16:13:08 -0000	1.7
  @@ -15,6 +15,8 @@
    */
   package org.apache.myfaces.taglib.core;
   
  +import java.util.Locale;
  +import java.util.TimeZone;
   import javax.faces.context.FacesContext;
   import javax.faces.convert.Converter;
   import javax.faces.convert.DateTimeConverter;
  @@ -22,13 +24,15 @@
   import javax.faces.webapp.ConverterTag;
   import javax.faces.webapp.UIComponentTag;
   import javax.servlet.jsp.JspException;
  -import java.util.Locale;
  -import java.util.TimeZone;
  +import javax.servlet.jsp.PageContext;
   
   /**
    * @author Manfred Geiler (latest modification by $Author$)
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.7  2004/11/22 16:13:08  bdudney
  + * added code to make sure the converterId is set in WebLogic8.1sp3.
  + *
    * Revision 1.6  2004/10/13 11:51:00  matze
    * renamed packages to org.apache
    *
  @@ -54,7 +58,8 @@
   
       public ConvertDateTimeTag()
       {
  -        setConverterId(DateTimeConverter.CONVERTER_ID);
  +      super();
  +        //setConverterId(DateTimeConverter.CONVERTER_ID);
       }
   
       public void setDateStyle(String dateStyle)
  @@ -85,6 +90,12 @@
       public void setType(String type)
       {
           _type = type;
  +    }
  +
  +    public void setPageContext(PageContext context) 
  +    {
  +        super.setPageContext(context);
  +        setConverterId(DateTimeConverter.CONVERTER_ID);
       }
   
       protected Converter createConverter() throws JspException
  
  
  
  1.7       +13 -3     incubator-myfaces/src/myfaces/org/apache/myfaces/taglib/core/ConvertNumberTag.java
  
  Index: ConvertNumberTag.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/taglib/core/ConvertNumberTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ConvertNumberTag.java	13 Oct 2004 11:51:00 -0000	1.6
  +++ ConvertNumberTag.java	22 Nov 2004 16:13:08 -0000	1.7
  @@ -15,6 +15,7 @@
    */
   package org.apache.myfaces.taglib.core;
   
  +import java.util.Locale;
   import javax.faces.context.FacesContext;
   import javax.faces.convert.Converter;
   import javax.faces.convert.NumberConverter;
  @@ -22,10 +23,13 @@
   import javax.faces.webapp.ConverterTag;
   import javax.faces.webapp.UIComponentTag;
   import javax.servlet.jsp.JspException;
  -import java.util.Locale;
  +import javax.servlet.jsp.PageContext;
   
   /**
    * $Log$
  + * Revision 1.7  2004/11/22 16:13:08  bdudney
  + * added code to make sure the converterId is set in WebLogic8.1sp3.
  + *
    * Revision 1.6  2004/10/13 11:51:00  matze
    * renamed packages to org.apache
    *
  @@ -117,6 +121,12 @@
       public void setType(String type)
       {
           _type = type;
  +    }
  +
  +    public void setPageContext(PageContext context) 
  +    {
  +        super.setPageContext(context);
  +        setConverterId(NumberConverter.CONVERTER_ID);
       }
   
       protected Converter createConverter() throws JspException
  
  
  

Mime
View raw message