Reply To: JSF actions using Rewrite

Splash Forums Rewrite Users JSF actions using Rewrite Reply To: JSF actions using Rewrite

#23837

Will Durman
Participant

Very good, I am using the sample code you provided to replace my PrettyFaces xml configuration.

I have a followup question, is there a way to pass a matched portion of the URL directly to the action method? I am using JSF 2.

I tried passing a hard-coded value like this:

.perform(PhaseAction.retrieveFrom(El.retrievalMethod("#{expressionLanguageBean.action('hardCodedText')}"))

which worked just fine. I tried passing

.perform(PhaseAction.retrieveFrom(El.retrievalMethod("#{expressionLanguageBean.action(name)}"))

attempting to pass the value matched by

.when(Path.matches("/name/{name}"))

but it fails.

If not, I can create a field and getter/setter on the class which will work fine, but I’d like to understand what the problem is.

  • This reply was modified 8 years, 8 months ago by  Will Durman.
  • This reply was modified 8 years, 8 months ago by  Will Durman.