[Jsf4portlets-devel] SF.net SVN: jsf4portlets:[56] trunk/jsf4portlets-api/src/main
Status: Alpha
Brought to you by:
alonsoft
From: <alo...@us...> - 2009-04-30 15:24:26
|
Revision: 56 http://jsf4portlets.svn.sourceforge.net/jsf4portlets/?rev=56&view=rev Author: alonsoft Date: 2009-04-30 15:24:22 +0000 (Thu, 30 Apr 2009) Log Message: ----------- Repaired bugs at spec API Modified Paths: -------------- trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/Bridge.java trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/GenericFacesPortlet.java Added Paths: ----------- trunk/jsf4portlets-api/src/main/resources/META-INF/ trunk/jsf4portlets-api/src/main/resources/META-INF/portlet1.0_bridge_faces1.2_faces-config-extension.xsd Modified: trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/Bridge.java =================================================================== --- trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/Bridge.java 2009-04-30 08:38:37 UTC (rev 55) +++ trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/Bridge.java 2009-04-30 15:24:22 UTC (rev 56) @@ -73,6 +73,20 @@ + "MAX_MANAGED_REQUEST_SCOPES"; /** + * Context initialization parameter that defines the policy the bridge uses + * for rendering. Parameter value is the string representaiton of one of the + * <tt>BridgeRenderPolicy</tt> enum values. + * <p> + * Allows a portlet to control render delgation. A value of + * <tt>ALWAYS_DELEGATE</tt> indicates the bridge doesn't render itself, it + * merely delegates. A value of <tt>NEVER_DELEGATE</tt> indicates the bridge + * never delegates, rather it always overrides and renders. A value of + * <tt>DEFAULT</tt> indicates the bridge will delegate first and only render + * if the delegatee throws an exception/throwable. + */ + public static final String RENDER_POLICY = BRIDGE_PACKAGE_PREFIX + "RENDER_POLICY"; + + /** * Context initialization parameter that defines the lifecycle ID used to * identify the Faces Lifecycle used for this application */ @@ -143,20 +157,6 @@ */ public static final String PRESERVE_ACTION_PARAMS = "preserveActionParams"; - /** - * Context initialization parameter that defines the policy the bridge uses - * for rendering. Parameter value is the string representaiton of one of the - * <tt>BridgeRenderPolicy</tt> enum values. - * <p> - * Allows a portlet to control render delgation. A value of - * <tt>ALWAYS_DELEGATE</tt> indicates the bridge doesn't render itself, it - * merely delegates. A value of <tt>NEVER_DELEGATE</tt> indicates the bridge - * never delegates, rather it always overrides and renders. A value of - * <tt>DEFAULT</tt> indicates the bridge will delegate first and only render - * if the delegatee throws an exception/throwable. - */ - public static final String RENDER_POLICY = "renderPolicy"; - // Following are the names of request attributes set by the bridge during // its own request/response processing. Modified: trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/GenericFacesPortlet.java =================================================================== --- trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/GenericFacesPortlet.java 2009-04-30 08:38:37 UTC (rev 55) +++ trunk/jsf4portlets-api/src/main/java/javax/portlet/faces/GenericFacesPortlet.java 2009-04-30 15:24:22 UTC (rev 56) @@ -417,7 +417,7 @@ final String defaultViewId = getDefaultViewIdMap().get( request.getPortletMode().toString()); - return (defaultViewId != null); + return (defaultViewId == null); } private void setBridgeRequestContext(final PortletRequest request) { Copied: trunk/jsf4portlets-api/src/main/resources/META-INF/portlet1.0_bridge_faces1.2_faces-config-extension.xsd (from rev 51, trunk/jsf4portlets-impl/src/main/resources/META-INF/portlet1.0_bridge_faces1.2_faces-config-extension.xsd) =================================================================== --- trunk/jsf4portlets-api/src/main/resources/META-INF/portlet1.0_bridge_faces1.2_faces-config-extension.xsd (rev 0) +++ trunk/jsf4portlets-api/src/main/resources/META-INF/portlet1.0_bridge_faces1.2_faces-config-extension.xsd 2009-04-30 15:24:22 UTC (rev 56) @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + JSF 4 Portlets - JSF Portlet Bridge (JSR-301) + Copyright (C) 2009 A. Alonso Dominguez + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + A. Alonso Dominguez + alo...@us... +--> + +<xs:schema id="bridge" xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://jsf4portlets.sf.net/jsfportlet" + attributeFormDefault="unqualified" elementFormDefault="qualified"> + + <xs:element name="excluded-attributes"> + <xs:annotation> + <xs:documentation> + Portlet 1.0 Bridge specific application extension + intented to collect specific attribute names or + namespaces that this bridge shouldn't manage + </xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:sequence> + <xs:element name="excluded-attribute" type="xs:string" + minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation> + Specific attribute name or namespace that + shouldn't be managed by this bridge instance. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + +</xs:schema> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |