[Jsf4portlets-devel] SF.net SVN: jsf4portlets:[79] branches/jsf4portlets-2.0/jsf4portlets-ext
Status: Alpha
Brought to you by:
alonsoft
From: <alo...@us...> - 2010-03-26 16:43:37
|
Revision: 79 http://jsf4portlets.svn.sourceforge.net/jsf4portlets/?rev=79&view=rev Author: alonsoft Date: 2010-03-26 16:43:30 +0000 (Fri, 26 Mar 2010) Log Message: ----------- branding for a new release Modified Paths: -------------- branches/jsf4portlets-2.0/jsf4portlets-ext/pom.xml branches/jsf4portlets-2.0/jsf4portlets-ext/src/main/java/net/sf/jsf4portlets/ext/facelets/FaceletPortletViewHandler.java Modified: branches/jsf4portlets-2.0/jsf4portlets-ext/pom.xml =================================================================== --- branches/jsf4portlets-2.0/jsf4portlets-ext/pom.xml 2010-03-26 16:43:05 UTC (rev 78) +++ branches/jsf4portlets-2.0/jsf4portlets-ext/pom.xml 2010-03-26 16:43:30 UTC (rev 79) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- - JSF 4 Portlets - JSF Portlet Bridge (JSR-301) - Copyright (C) 2008 A. Alonso Dominguez + JSF 4 Portlets - JSF Portlet Bridge (JSR-301/329) + Copyright (C) 2010 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 @@ -22,82 +22,82 @@ alo...@us... --> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>net.sf.jsf4portlets</groupId> - <artifactId>jsf4portlets-project</artifactId> - <version>2.0-beta-SNAPSHOT</version> - </parent> - - <artifactId>jsf4portlets-ext</artifactId> - <packaging>jar</packaging> - - <name>JSF 4 Portlets Extensions</name> - - <description> - This is the extensions module of JSF 4 Portlets. This module brings some - additional features to the bridge implementation like Facelets support and more. - </description> - - <dependencies> - <dependency> - <groupId>javax.el</groupId> - <artifactId>el-api</artifactId> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - </dependency> - <dependency> - <groupId>javax.servlet.jsp</groupId> - <artifactId>jsp-api</artifactId> - </dependency> - <dependency> - <groupId>javax.faces</groupId> - <artifactId>jsf-api</artifactId> - </dependency> - <dependency> - <groupId>javax.annotation</groupId> - <artifactId>jsr250-api</artifactId> - </dependency> - <dependency> - <groupId>javax.portlet</groupId> - <artifactId>portlet-api</artifactId> - </dependency> - - <dependency> - <groupId>commons-digester</groupId> - <artifactId>commons-digester</artifactId> - </dependency> - - <dependency> - <groupId>com.sun.facelets</groupId> - <artifactId>jsf-facelets</artifactId> - </dependency> - - <dependency> - <artifactId>container</artifactId> - <groupId>com.sun.portal.portletcontainer</groupId> - </dependency> - <dependency> - <artifactId>portletcontainer</artifactId> - <groupId>com.sun.portal.portletcontainer</groupId> - </dependency> - <dependency> - <artifactId>portletappengine</artifactId> - <groupId>com.sun.portal.portletcontainer</groupId> - </dependency> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>net.sf.jsf4portlets</groupId> + <artifactId>jsf4portlets-project</artifactId> + <version>2.0-beta-SNAPSHOT</version> + </parent> + + <artifactId>jsf4portlets-ext</artifactId> + <packaging>jar</packaging> + + <name>JSF 4 Portlets Extensions</name> + + <description> + This is the extensions module of JSF 4 Portlets. This module brings some + additional features to the bridge implementation like Facelets support and more. + </description> + + <dependencies> + <dependency> + <groupId>javax.el</groupId> + <artifactId>el-api</artifactId> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + </dependency> + <dependency> + <groupId>javax.servlet.jsp</groupId> + <artifactId>jsp-api</artifactId> + </dependency> + <dependency> + <groupId>javax.faces</groupId> + <artifactId>jsf-api</artifactId> + </dependency> + <dependency> + <groupId>javax.annotation</groupId> + <artifactId>jsr250-api</artifactId> + </dependency> + <dependency> + <groupId>javax.portlet</groupId> + <artifactId>portlet-api</artifactId> + </dependency> <dependency> + <groupId>commons-digester</groupId> + <artifactId>commons-digester</artifactId> + </dependency> + + <dependency> + <groupId>com.sun.facelets</groupId> + <artifactId>jsf-facelets</artifactId> + </dependency> + + <dependency> + <artifactId>container</artifactId> + <groupId>com.sun.portal.portletcontainer</groupId> + </dependency> + <dependency> + <artifactId>portletcontainer</artifactId> + <groupId>com.sun.portal.portletcontainer</groupId> + </dependency> + <dependency> + <artifactId>portletappengine</artifactId> + <groupId>com.sun.portal.portletcontainer</groupId> + </dependency> + + <dependency> <groupId>jsf-extensions</groupId> <artifactId>jsf-extensions-run-time</artifactId> </dependency> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> </dependency> <dependency> @@ -107,36 +107,36 @@ <dependency> <groupId>net.sf.jsf4portlets</groupId> <artifactId>jsf4portlets-impl</artifactId> - </dependency> - </dependencies> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> + </dependency> + </dependencies> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> - </plugin> - <plugin> - <groupId>net.sourceforge.maven-taglib</groupId> - <artifactId>maven-taglib-plugin</artifactId> </plugin> <plugin> + <groupId>net.sourceforge.maven-taglib</groupId> + <artifactId>maven-taglib-plugin</artifactId> + </plugin> + <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jdepend-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - </plugins> + </plugin> + </plugins> </reporting> - + </project> Modified: branches/jsf4portlets-2.0/jsf4portlets-ext/src/main/java/net/sf/jsf4portlets/ext/facelets/FaceletPortletViewHandler.java =================================================================== --- branches/jsf4portlets-2.0/jsf4portlets-ext/src/main/java/net/sf/jsf4portlets/ext/facelets/FaceletPortletViewHandler.java 2010-03-26 16:43:05 UTC (rev 78) +++ branches/jsf4portlets-2.0/jsf4portlets-ext/src/main/java/net/sf/jsf4portlets/ext/facelets/FaceletPortletViewHandler.java 2010-03-26 16:43:30 UTC (rev 79) @@ -36,37 +36,35 @@ public class FaceletPortletViewHandler extends FaceletViewHandler { - public FaceletPortletViewHandler(final ViewHandler parent) { - super(parent); - } + public FaceletPortletViewHandler(final ViewHandler parent) { + super(parent); + } - @Override - protected ResponseWriter createResponseWriter(final FacesContext context) - throws FacesException, IOException { - final ExternalContext extContext = context.getExternalContext(); - final RenderKit renderKit = context.getRenderKit(); + @Override + protected ResponseWriter createResponseWriter(final FacesContext context) + throws FacesException, IOException { + final ExternalContext extContext = context.getExternalContext(); + final RenderKit renderKit = context.getRenderKit(); - final RenderRequest request = (RenderRequest) extContext.getRequest(); - final RenderResponse response = (RenderResponse) extContext - .getResponse(); + final RenderRequest request = (RenderRequest) extContext.getRequest(); + final RenderResponse response = (RenderResponse) extContext.getResponse(); - String contentType = request.getResponseContentType(); - if (contentType == null) { - contentType = "text/html"; - } + String contentType = request.getResponseContentType(); + if (contentType == null) { + contentType = "text/html"; + } - String encoding = response.getCharacterEncoding(); - if (encoding == null) { - encoding = "ISO-8859-1"; - } + String encoding = response.getCharacterEncoding(); + if (encoding == null) { + encoding = "ISO-8859-1"; + } - ResponseWriter writer = renderKit.createResponseWriter( - new StringWriter(), contentType, encoding); - contentType = writer.getContentType(); - response.setContentType(contentType); + ResponseWriter writer = renderKit.createResponseWriter( + new StringWriter(), contentType, encoding); + contentType = writer.getContentType(); + response.setContentType(contentType); - writer = writer.cloneWithWriter(response.getWriter()); - return writer; - } - -} \ No newline at end of file + writer = writer.cloneWithWriter(response.getWriter()); + return writer; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |