You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2005/02/10 21:28:00 UTC
cvs commit: incubator-myfaces/doc portlet_quick_start.txt release-notes.txt
matzew 2005/02/10 12:28:00
Modified: doc release-notes.txt
Added: doc portlet_quick_start.txt
Log:
closed MYFACES-106 in Jira; Thanks to Stan Silvert (JBoss Group)
Revision Changes Path
1.168 +3 -0 incubator-myfaces/doc/release-notes.txt
Index: release-notes.txt
===================================================================
RCS file: /home/cvs/incubator-myfaces/doc/release-notes.txt,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- release-notes.txt 9 Feb 2005 17:41:30 -0000 1.167
+++ release-notes.txt 10 Feb 2005 20:27:59 -0000 1.168
@@ -8,6 +8,7 @@
* new selectOneCountry component
* added forceId to <x:inputText for better reuse of legacy JavaScript
* added russian i18n.
+* added HOWTO Portlet-API (MYFACES/docs/portlet_quick_start.txt)
* closed MYFACES-85 in Jira
* closed MYFACES-96 in Jira (Jason Hoo)
* closed MYFACES-91 in Jira
@@ -20,6 +21,8 @@
* closed MFACES-76 in Jira
* closed MFACES-74 in Jira
* closed MFACES-104 in Jira
+* closed MYFACES-101 in Jira
+* closed MYFACES-106 in Jira
----------------------------------------------------------------------
Changes in Release 1.0.8 beta_RC2
* added a new RenderKit, that renders WML. Thanks to Jiri Zaloudek for his contribution
1.1 incubator-myfaces/doc/portlet_quick_start.txt
Index: portlet_quick_start.txt
===================================================================
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
How to create a JSF Portlet using MyFaces:
1. Make sure your JSF MyFaces application runs as a stand-alone servlet.
2. Remove any redirects from your faces-config.xml. Portlets can not handle these.
3. Create a Portlet WAR as per the instructions for your Portlet container. Make sure it contains everything that was included in step 1.
4. Update your portlet.xml file as follows:
<!-- 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>