I have one drop down and one tag picker in my dialogue. Root path of tag picker depends on drop down value, so when i change the value of drop down root path of tag picker should be change accordingly and when i click on tag picker it should point to the appropriate root path.
1. Drop down has list of countries.
2. Tag picker shows the list of languages.
When i select country USA, then language tag picker should have root path as /etc/tags/language/us
When i select country India, then language tag picker should have root path as /etc/tags/language/ind
Add a listener to the dropdown which updates the rootPath property let this listner call some servlet which updates the cq:tags property of jcr:content node. you can use CQ http call in classic ui and a simple ajax call for touch ui listener.