Reply To: Recommended approach for multi language with ReWrite

Splash Forums Rewrite Users Recommended approach for multi language with ReWrite Reply To: Recommended approach for multi language with ReWrite

#26370

icordoba
Participant

Note: I found the silly mistake in the wrong parenthesis placement. I leave the post in case someone else gets to the same error. Thanks.

Hello,
I’m trying to implement the example in the document you refer but I’m getting the following error:

ConfigurationBuilder.begin().addRule(Join.path("/").to("/index.xhtml").perform(Invoke.binding(El.retrievalMethod("userSessionView.setLanguage('en')"))))

The method perform(Rewrite, EvaluationContext) in the type Join is not applicable for the arguments (DefaultOperationBuilder)

And if I do:

ConfigurationBuilder.begin().addRule(Join.path("/").to("/index.xhtml").perform(PhaseOperation.enqueue(Invoke.binding(El.retrievalMethod("userSessionView.setLanguage('en')"))).after(PhaseId.RESTORE_VIEW)));

I get:

The method perform(Rewrite, EvaluationContext) in the type Join is not applicable for the arguments (capture#1-of ?)

thanks for any directions,
Ignacio

  • This reply was modified 7 years, 4 months ago by  icordoba.
  • This reply was modified 7 years, 4 months ago by  icordoba.
  • This reply was modified 7 years, 4 months ago by  icordoba.