title: Binding DatePicker
body: <p>I want to bindBiderectional() DatePicker. Here is what I did</p>
  
  <pre><code>@FXMLController("title.fxml")
  public class Controller {
  @FXML
  private DatePicker dp_date_from;
  @Inject
  private Model model;
  ...
  @PostConstruct
  public void init(){
  ...
  dp_date_from.valueProperty().bindBidirectional(model.dateFromProperty());
  ...
  }
  </code></pre>
  
  <p>Model Class</p>
  
  <pre><code>@FlowScoped
  public class Model {
  private ObjectProperty&lt;LocalDate&gt; dateFrom;
  
  public ObjectProperty&lt;LocalDate&gt; dateFromProperty() {
          return dateFrom;
      }
  ...
  }
  </code></pre>
  
  <p>It throws an error:</p>
  
  <pre><code>io.datafx.controller.FxmlLoaderException:java.lang.reflect.InvocationTargetException
  </code></pre>
  
  <p>What can be the reason for that?</p>
  
  <p>Error, is thrown in application itself, it doesn't write anything in a console. I've debegged the code, and when it comes to line <code>dp_date_from.valueProperty...</code> it goes here for throwing an exception:</p>
  
  <pre><code>public &lt;T&gt; ViewContext&lt;T&gt; createByController(Class&lt;T&gt; controllerClass, String fxmlName, ViewConfiguration viewConfiguration, Object... viewContextResources) throws FxmlLoadException {
  try {
      Object e = controllerClass.newInstance();
      ViewMetadata metadata = new ViewMetadata();
      FXMLController controllerAnnotation = (FXMLController)controllerClass.getAnnotation(FXMLController.class);
      if(controllerAnnotation != null &amp;&amp; !controllerAnnotation.title().isEmpty()) {
          metadata.setTitle(controllerAnnotation.title());
      }
  
      if(controllerAnnotation != null &amp;&amp; !controllerAnnotation.iconPath().isEmpty()) {
          metadata.setGraphic(new ImageView(controllerClass.getResource(controllerAnnotation.iconPath()).toExternalForm()));
      }
  
      FXMLLoader loader = this.createLoader(e, fxmlName, viewConfiguration);
      Node viewNode = (Node)loader.load();
      ViewContext context = new ViewContext(viewNode, e, metadata, viewConfiguration, viewContextResources);
      context.register(e);
      context.register("controller", e);
      this.injectFXMLNodes(context);
      context.getResolver().injectResources(e);
      Method[] var11 = e.getClass().getMethods();
      int var12 = var11.length;
  
      for(int var13 = 0; var13 &lt; var12; ++var13) {
          Method method = var11[var13];
          if(method.isAnnotationPresent(PostConstruct.class)) {
              method.invoke(e, new Object[0]);
          }
      }
  
      return context;
  } catch (Exception var15) {
      throw new FxmlLoadException(var15);
  }
  </code></pre>
  
  <p>}</p>