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

Automatic validation of Pages in PostConstruct by Context Path #16

Open
slu-it opened this issue Jul 8, 2016 · 1 comment
Open

Automatic validation of Pages in PostConstruct by Context Path #16

slu-it opened this issue Jul 8, 2016 · 1 comment

Comments

@slu-it
Copy link
Member

slu-it commented Jul 8, 2016

In a similar fashion as with @Mapping for PageFragement subclasses we could validate if a Page was initialized for a valid context path / url.

Examples

@ContextPath("/html/index")
public interface LandingPage extends Page {
    // implementation
}
  • If the currently displayed page had the URL http://localhost/html/index and an instance of LandingPage is created there would be no problem since the context path matches the expectation.
  • If the currently displayed page had the URL http://localhost/html/main an exception would be thrown as soon as a LandingPage instance is being created.
  • For page definitions without @ContextPath every URL is valid
@slu-it slu-it changed the title Automatic validation of Pages in PostConstruct by Context Path Idea: Automatic validation of Pages in PostConstruct by Context Path Aug 10, 2016
@slu-it
Copy link
Member Author

slu-it commented Aug 10, 2016

This should be discussed before somebody starts implementing it...

@slu-it slu-it added the idea label Aug 31, 2016
@slu-it slu-it changed the title Idea: Automatic validation of Pages in PostConstruct by Context Path Automatic validation of Pages in PostConstruct by Context Path Aug 31, 2016
@slu-it slu-it added the blocked label Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant