2 Replies Latest reply on Oct 28, 2013 12:05 PM by Babur Duisenov

    can't figure out what causes the UnsatisfiedDependenciesException.

    Babur Duisenov Newbie

      Hi there!

       

      I've got a simple @Templated class and the .html file. Everything worked fine a few hours ago, but now it throws an error

      java.util.concurrent.ExecutionException: org.jboss.errai.ioc.rebind.ioc.exception.UnsatisfiedDependenciesException:  @> kz.bas.client.local.view.skeleton.Footer - field org.jboss.errai.codegen.meta.MetaField:kz.bas.client.local.view.skeleton.Footer.input could not be satisfied for type: com.google.gwt.user.client.ui.TextBox   Message: cannot resolve injectable bean for type: com.google.gwt.user.client.ui.TextBox; qualified by:  @Any  @Default

       

      this is my .java class:

      @Templated
      @ApplicationScoped
      public class Footer extends Composite implements FooterPresenter.Display {
      
      
          @Inject
          @DataField
          private Label label;
      
      
          @Inject @DataField("footer-input") private TextBox input;
      
      
          @Inject
          @DataField
          private Button button;
      
      
          @Override
          public HasClickHandlers getButton() {
              return button;
          }
      
      
          @AfterInitialization
          private void init() {
              RootPanel.get("footer").add(this);
          }
      
      
      }
      

       

      and .html file:

      <div class="container">
          <label data-field="label">Label</label>
          <input data-field="footer-input" type="text">
          <button data-field="button">click me</button>
      </div>
      

       

      I'm using Intellij Idea with Errai plugin.

       

      I don't have any idea what could be wrong.

      Please help! )