There are situations where you can not start a JSF (2.2) flow in the usual way by simply redirecting to the flow’s start page from your button action.
If you need a ReST endpoint which returns kind of a default page when a client accesses a unmapped path, you need an implementation like the one shown below.
When you are working with a @ConversationScoped bean you may want to read JSF’s conversation ID (cid) from another request parameter such as for example a pa...
On This Page
This article shows a basic implementation of a Java enumeration type that you can use to do a switch on Strings for example.