Re: PrettyFaces and Dynamic Sitemap Generation

Splash Forums PrettyFaces Users PrettyFaces and Dynamic Sitemap Generation Re: PrettyFaces and Dynamic Sitemap Generation

#21775

clemmonsm
Participant

Thanks Christian. Below is the approach I am taking at the moment. I am planning on retrieving the param names from the patterns via regex and exploding the urls dynamically for each mapping. Wish me luck!

PrettyConfig config = PrettyContext.getCurrentInstance().getConfig();
listOfMappings = config.getMappings();

for (UrlMapping mapping : listOfMappings) {
// get values
String id = mapping.getId();
String pattern = mapping.getPattern();

// parse pattern, get possible param values & create dynamic urls here

}