It's a breach of good usage. That's because JSF uses postbacks. Unlike traditional techniques, in JSF, the same View may go back and forth between client and server multiple times, since one of JSF's primary functions is to support forms with validation. Although an HTTP GET may pull the form up initially, subsequent requests will employ HTTP post. And, just to further confuse things, the URL used (and displayed in the browser navigation control) may not always match the resource name of the View being displayed.
If you want to set a background color and keep that color while all this is happening, your best bet would be to make it a property of a backing bean. If you expect to reach this JSF page from another JSF page, you pretty much HAVE to do that, since JSF does its navigation based on beans, not on URLs and doesn't employ HTTP GET for navigation.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Jun 03, 2004
Thanks so much, that explains why there was so little on the topic on the net.