I'm discovering the pe:masterdetail component, a great one for many of my app's screens.
I wonder if it was possible for this component to dynamically change the browser URL when clicking on a link and changing of level.
Example :
I am on
Code: Select all
http://localhost/myApp/myView.jsf
When I click on a country, the masterdetail component refresh and show me the list of cities of the country.
So, for better integration with browser, I would like that, when I click on the country, the URL of my app dynamically change for something like
Code: Select all
http://localhost/myApp/myView.jsf?country=2
Is there a way to do that with the component ?
The only way I see for now is to use JS with something like
Code: Select all
window.history.pushState('', '', '/myApp/myView.jsf?country=2)
Thanks in advance for your answer !