BrowserWindowOpener opens UI without Injection

Hi everbody,

I have the same problem as this guy:
http://stackoverflow.com/questions/22663385/ejbs-is-not-injected-in-vaadin-browseroepener-window-ui

I want to create a Popup, but the Injection-Points for a CDIView and an EJB remain null. Unfortunately the question on stackoverflow is unanswered.

A small example:

@CDIUI(value = “feedback”)
public class FeedbackPopupUI extends UI {

@Inject
private FeedbackPopupView feedbackPopupView;

@Override
protected void init(VaadinRequest request) {
    if (feedbackPopupView == null) {
        System.out.println("feedbackPopupView is null");
    } else {
        System.out.println("feedbackPopupView is not null");
    }
    setContent(feedbackPopupView);
}

}

@CDIView
public class FeedbackPopupView extends FormLayout {

@Inject
private TicketBehaviour tb;

@PostConstruct
public void initialize() {

    final TextField subjectTf = new TextField("Thema");
    addComponent(subjectTf);
    final TextField noteTf = new TextField("Feedback");
    addComponent(noteTf);

    addComponent(new Button("Absenden", new Button.ClickListener() {
        private static final long serialVersionUID = -6600021975006685393L;

        @Override
        public void buttonClick(ClickEvent event) {
            Ticket ticket = new Ticket();
            ticket.setSubject(subjectTf.getValue());
            ticket.setNote(noteTf.getValue());

            tb.add(ticket);
        }

    }));
    setSizeFull();
}

}

public class AccountBarComp extends HorizontalLayout {

  [...]


 @PostConstruct
 public void initialize() {
       [...]

       BrowserWindowOpener feedbackO = new BrowserWindowOpener(
                FeedbackPopupUI.class);
        feedbackO.setFeatures("height=200,width=300,resizable");
        Button feedbackB = new Button("Feedback");
        feedbackO.extend(feedbackB);
        addComponent(feedbackB);
 }

}

It just prints out “feedbackPopupView is null” and opens an empty popup :frowning:

Could you please help me?

Thanks in advance,

Sven