I have the following view:
@Component
@Scope("prototype")
@Route(value = "jobs", layout = JobsLayout.class)
@PageTitle("Jobs")
@AnonymousAllowed
public class AllJobsView extends VerticalLayout implements LocaleChangeObserver {
with route = "jobs"
. Such page is available via /jobs
url
Now, I'd like the following pages:
/jobs/{job_id}/{job_name_slug}
for example
/jobs/123/solutions-architect
where I'll show the job description
also:
/jobs/123/edit
/jobs/123/apply
As you may see, the website may have tons of "dynamic" pages like
/jobs/123/solutions-architect
/jobs/4567/program-manager
and so on.
And also a few "static" pages like
/jobs/123/edit
/jobs/123/apply
All of them ("dynamic" and "static") are located under pretty much the same URL pattern.
How to properly configure such routes with Vaadin framework?