How to create a JSF Portlet using MyFaces:
<!-- You must use this Portlet impl class -->
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
<!-- The "home page" of your JSF application -->
<!-- This is a required param. -->
<init-param>
{{ <name>default-view</name>}}
{{ <value>/some_view_id_from_faces-config</value>}}
</init-param>
<!-- A class name that implements org.apache.myfaces.portlet.DefaultViewSelector -->
<!-- This optional param is used if your want to choose different default views -->
<!-- based on some condition. You still must specify default-view above, but -->
<!-- this impl will take precedence. -->
<init-param>
{{ <name>default-view-selector</name>}}
{{ <value>com.foo.MyViewSelector</value>}}
</init-param>
Caution: Option 1 can work inside/outside portlet, and Option 2 can't work standalone, unless remove the bridge jar. I think it is a bug.
reference: http://portals.apache.org/bridges/multiproject/jsf-demo/index.html