1 package org.andromda.cartridges.jsf.taglib;
2
3 import javax.el.ExpressionFactory;
4 import javax.faces.context.FacesContext;
5 import javax.servlet.jsp.PageContext;
6 import org.andromda.cartridges.jsf.converters.JSFDateTimeConverter;
7
8
9
10
11
12
13
14 public class ConvertDateTimeTag
15 extends org.apache.myfaces.taglib.core.ConvertDateTimeTag
16 {
17
18
19
20 private static final long serialVersionUID = 1L;
21
22
23
24
25
26
27
28 @Override
29 public void setPageContext(PageContext context)
30 {
31 super.setPageContext(context);
32 ExpressionFactory expressionFactory =
33 FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
34 setConverterId(expressionFactory.createValueExpression(context.getELContext(),
35 JSFDateTimeConverter.CONVERTER_ID, String.class));
36 }
37 }