Reply To: Can I pass an Object to a viewscoped bean?

Splash Forums Rewrite Users Can I pass an Object to a viewscoped bean? Reply To: Can I pass an Object to a viewscoped bean?

#26478

Yeah, just FYI, typically what you are doing would be done (in JSF) by simply using a join, then handling this using the tag of the XHTML page itself. Then you can forward/send to 404/or handle navigation a little more smoothly, since you’re already in an initialized JSF environment:

	<f:metadata>
		<f:viewParam name="id" value='#{artistBean.artistUrl}' />
		<f:event type="preRenderView" listener='#{artistBean.retrieve}' />
	</f:metadata>

(If the retrieve method doesn’t find anything, then you send to artist 404 page.)

Of course you can do this in rewrite, using things like Subset to split .perform() clause functionality into nested rules:

https://github.com/ocpsoft/redoculous/blob/master/app/src/main/java/org/ocpsoft/redoculous/config/LocalFilesystemConfigurationProvider.java#L63