Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of @CDIView supportsParameters #196

Open
heruan opened this issue Feb 13, 2017 · 0 comments
Open

Use of @CDIView supportsParameters #196

heruan opened this issue Feb 13, 2017 · 0 comments

Comments

@heruan
Copy link
Member

heruan commented Feb 13, 2017

Does CDIView.supportsParameters affect view resolution in any way? It defaults to false, but whether or not I set its value the view provider behaves the same, i.e. provide the view with parameters. For example:

@CDIView(supportsParameters = true)
public class UserDetailView extends VerticalLayout implements View {

    @Override
    public void enter(ViewChangeEvent event) {
        String parameters = event.getParameters();
        this.addComponent(new Label(parameters));
    }

}

with this navigating to user-details/foo/bar show a label with a value of foo/bar, but the same happens with supportsParameters = false where I would expect the view not to match in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant