Pages

Friday, September 6, 2013

Attaching Converter with InputDate programmatically

Thank Timo !
http://www.serkey.com/oracle-attaching-converter-with-inputdate-programmatically-bfuyfa.html
https://forums.oracle.com/message/10061981
http://docs.oracle.com/html/E18745_01/apidocs/oracle/adf/view/faces/convert/DateTimeConverter.html
snippet code
RichInputDate rid = new RichInputDate();
DateTimeConverter converter = (DateTimeConverter)FacesContext.getCurrentInstance().getApplication().createConverter("javax.faces.DateTime");
converter.setPattern("MM-DD-yyyyy");
rid.setConverter(converter);
binding_pflContents.getChildren().add(rid);

1 comment:

  1. I cannot set the properties of the converter for example: setPattern,setDateStyle, nothing...
    It is working just with the default properties.

    ReplyDelete