Reply To: [solved] How do I use the outcome parameter with Rewrite? (Ans: use annotations)

Splash Forums Rewrite Users [solved] How do I use the outcome parameter with Rewrite? (Ans: use annotations) Reply To: [solved] How do I use the outcome parameter with Rewrite? (Ans: use annotations)

#25931

austinian
Participant

Alright, I’m not sure why, but this is what ended up working:

I added this annotation to RegistrationBean.java
@Join(path="/register", to="/Web/NewVolunteer.xhtml")

commented out this line in the HttpConfigurationProvider
.addRule(Join.path("/register").to("/Web/NewVolunteer.xhtml"))

and used this line in the facelet
<p:button value="Register" outcome="/NewVolunteer.xhtml" />

and now the URL shows up as expected. I’m going to just use annotations everywhere now, as it’s both how I’m used to working with this stuff, and it seems to be the way that’s working best. Thanks for your help with troubleshooting, not sure how useful this is as a test case for you, since I’m unsure as to whether this is expected behavior.