Reply To: Dynaview ID using Rewrite

Splash Forums Rewrite Users Dynaview ID using Rewrite Reply To: Dynaview ID using Rewrite


Hmmm, well. You probably don’t need to create a custom Rule. You could, but you can probably achieve the same result simply by combining a few rules and EL methods. Depending on the scope of your bean, you may not even need to use EL at all, and you could possibly just inject it into the configuration directly.

For that you will need to include the rewrite-integration-cdi.

@Inject ViewBean bean;

.perform(new HttpOperation() {
   public void performHttp(HttpServletRewrite event, EvaluationContext context) {, context);

Does that make sense?

Otherwise, you can implement something like this (using FacesContext instead of PrettyContext):

If you wanted to convert this to a rule, we could probably add it to the Rewrite Integration-Faces module.