Reply To: Can PrettyFaces be used in Quartz job?

Splash Forums PrettyFaces Users Can PrettyFaces be used in Quartz job? Reply To: Can PrettyFaces be used in Quartz job?

#24793

I think the PrettyConfig is available as a servlet context attribute. So something like this could also work:


ServletContext context = ...;
PrettyConfig config = context.getAttribute(PrettyContext.CONFIG_KEY);
UrlMapping mapping = config.getMappingById(mappingId);
PrettyURLBuilder builder = new PrettyURLBuilder();
String targetURL = builder.build(mapping, false, params);

Perhaps a bit simpler. But I’m not sure if this also works. πŸ™‚