Hi, I’m trying to pass parameters to a screen I’ve built using the ScreenBuilders bean by calling a function and passing parameters to the function. It’s the same method that’s used here and it worked fine for me before, but after refactoring some code it doesn’t work anymore. Does anybody know why? Here’s what my code looks like right now:
@Inject
private ScreenBuilders screenBuilders;
private void goToForm() {
FormScreen form = screenBuilders.screen(this)
.withScreenClass(FormScreen.class)
.build();
form.setParams("foo");
log.debug("Made it this far!");
form.show();
}
“foo” doesn’t get passed to FormScreen and “Made it this far!” doesn’t show up in the log, so I’m assuming this code stops being executed after .build(); is called, but then why did this work before and why does the wiki claim this should work?