I am using JSF 1.2 + Facelets + Apache My Faces without Tomahawk or other libs. I use a customized container. I have a scenario to implement but I am not sure How to achieve the same using JSF + Facelets. These are my questions : Appreciate any help you can provide. Thanks!
Scenario : I have only one page + one backing bean , By default , the request is sent to that only one page and so everything is okay. Based on some data in the backing bean once the request has come, I determine whether the user should be allowed to see the page or not. If he should not, I should send the user to other page or an error page.
1) Is it mandatory to use a template in Facelets? 2) How to achieve if and else conditionals using Facelets ? Is it possible? 3) Is this correct ?- The Backing Bean constructor always returns to the page for which the request has come - This one is little confusing as Constructors cannot return a "String" 4) How do i send the user to a different page or where to place to code to send him to a diff page ?