[jboss-cvs] JBossBlog SVN: r54 - in trunk-esial/blog-core: src/java/org/jboss/blog and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 2 13:58:25 EST 2007


Author: acrignon
Date: 2007-03-02 13:58:25 -0500 (Fri, 02 Mar 2007)
New Revision: 54

Removed:
   trunk-esial/blog-core/build.xml
Modified:
   trunk-esial/blog-core/src/java/org/jboss/blog/recommendBlog.java
   trunk-esial/blog-core/src/web/WEB-INF/faces-config.xml
   trunk-esial/blog-core/src/web/views/blog_view.xhtml
Log:
 - implementation of the template manager
 - changes in build.xml to take in charge the freemarker lib
 - still a problem ("template not found") to fix

Deleted: trunk-esial/blog-core/build.xml
===================================================================
--- trunk-esial/blog-core/build.xml	2007-02-28 15:04:30 UTC (rev 53)
+++ trunk-esial/blog-core/build.xml	2007-03-02 18:58:25 UTC (rev 54)
@@ -1,148 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<project name="JBoss Blog" default="build">
-    <!-- Configuration of deployment -->
-    <property name="jboss.home" value="/home/adamw/jboss/jboss-test" />
-    <property name="jboss.conf" value="default" />
-    <!-- Unset this property if jboss portal is deployed -->
-    <property name="jboss.portal.present" value="true" />
-
-    <!-- Configuration of source/ target directories -->
-    <property name="src" value="src"/>
-    <property name="src.java" value="${src}/java"/>
-    <property name="src.meta" value="${src}/etc"/>
-    <property name="src.web" value="${src}/web"/>
-    <property name="build" value="build"/>
-    <property name="dist" value="dist"/>
-
-    <!-- Name of the service archive which will contain the blog application -->
-    <property name="sar.name" value="jboss-blog.sar" />
-    <!-- Name of the web application that will be contained in the sar -->
-    <property name="war.name" value="jboss-blog.war" />
-
-    <!-- Helper properties: built using the above ones -->
-    <property name="dist.main.dir" value="${dist}/${sar.name}" />
-    <property name="dist.lib.dir" value="${dist.main.dir}/lib" />
-    <property name="dist.war.dir" value="${dist.main.dir}/${war.name}" />
-    <property name="deploy.dir" value="${jboss.home}/server/${jboss.conf}/deploy" />
-
-    <!-- Dependency jars filesets definitions -->
-    <fileset id="rome.jars" dir="../lib/rome"><include name="**/*.jar"/></fileset>
-    <fileset id="jboss.jars" dir="../lib/jboss"><include name="**/*.jar"/></fileset>
-    <fileset id="jboss.portal.jars" dir="../lib/jboss-portal"><include name="**/*.jar"/></fileset>
-    <fileset id="jboss.jaae.jars" dir="../lib/jboss-jaae"><include name="**/*.jar"/></fileset>
-    <fileset id="portlet.jars" dir="../lib/portlet"><include name="**/*.jar"/></fileset>
-    <fileset id="facelets.jars" dir="../lib/facelets"><include name="**/*.jar"/></fileset>
-    <fileset id="myfaces.jars" dir="../lib/myfaces"><include name="**/*.jar"/></fileset>
-    <fileset id="jstl.jars" dir="../lib/jstl"><include name="**/*.jar"/></fileset>
-    <fileset id="hibernate.jars" dir="../lib/hibernate"><include name="**/*.jar"/></fileset>
-    <fileset id="servlet.jars" dir="../lib/servlet"><include name="**/*.jar"/></fileset>
-    <fileset id="jexl.jars" dir="../lib/jexl"><include name="**/*.jar"/></fileset>
-
-    <fileset id="log4j.jar" dir="../lib/xdoclet"><include name="log4j.jar"/></fileset>
-
-    <fileset id="jboss.portal.identity.jars" dir="../lib/jboss-portal">
-        <include name="**/portal-identity-lib.jar"/></fileset>
-
-    <!-- Classpath for building the application: includes all dependency jars -->
-    <path id="base.jars">
-        <fileset refid="rome.jars" />
-        <fileset refid="jboss.jars" />
-        <fileset refid="jboss.portal.jars" />
-        <fileset refid="jboss.jaae.jars" />
-        <fileset refid="portlet.jars" />
-        <fileset refid="facelets.jars" />
-        <fileset refid="myfaces.jars" />
-        <fileset refid="jstl.jars" />
-        <fileset refid="hibernate.jars" />
-        <fileset refid="servlet.jars" />
-
-        <fileset refid="log4j.jar" />
-    </path>
-
-    <!-- XDoclet task definition -->
-    <path id="xdoclet.jars">
-        <fileset dir="../lib/xdoclet"><include name="**/*.jar"/></fileset>
-    </path>
-
-    <taskdef name="jmxdoclet"
-             classname="xdoclet.modules.jmx.JMXDocletTask"
-             classpathref="xdoclet.jars"/>
-    <taskdef name="hibernatedoclet"
-             classname="xdoclet.modules.hibernate.HibernateDocletTask"
-             classpathref="xdoclet.jars" />
-
-    <!-- BUILD TARGETS -->
-
-    <target name="init">
-
-    </target>
-
-    <target name="copy-libs-for-servlet" unless="jboss.portal.present">
-        <copy todir="${dist.lib.dir}"><fileset refid="myfaces.jars"/></copy>
-        <copy todir="${dist.lib.dir}"><fileset refid="facelets.jars"/></copy>
-    </target>
-
-    <target name="build" depends="init,clean">
-        <mkdir dir="${build}" />
-        <!-- Compiling the source -->
-        <javac srcdir="${src.java}" destdir="${build}" target="1.4" source="1.4">
-            <classpath refid="base.jars" />
-        </javac>
-        <!-- Copying any xmls -->
-        <copy todir="${build}">
-            <fileset dir="${src.java}">
-                <include name="**/*.xml"/>
-            </fileset>
-        </copy>
-        <!-- Creating the xmbean xml-s -->
-        <jmxdoclet destdir="${build}">
-            <fileset dir="${src.java}"><include name="**/*.java"/></fileset>
-            <jbossxmbean />
-        </jmxdoclet>
-    </target>
-
-    <target name="dist" depends="build">
-        <mkdir dir="${dist.lib.dir}" />
-
-        <!-- Copying the meta information -->
-        <copy todir="${dist.main.dir}">
-            <fileset dir="${src.meta}"><include name="**/*" /></fileset>
-        </copy>
-
-        <!-- Creating the jar with the classes -->
-        <jar destfile="${dist.lib.dir}/jboss-blog-core.jar" basedir="${build}" />
-
-        <!-- Creating the web application -->
-        <mkdir dir="${dist.war.dir}" />
-        <copy todir="${dist.war.dir}">
-            <fileset dir="${src.web}"><include name="**/*" /></fileset>
-        </copy>
-
-        <!-- Copying dependency jars -->
-        <copy todir="${dist.lib.dir}"><fileset refid="rome.jars"/></copy>
-        <copy todir="${dist.lib.dir}"><fileset refid="jboss.jaae.jars"/></copy>
-        <copy todir="${dist.lib.dir}"><fileset refid="jboss.portal.identity.jars"/></copy>
-        <copy todir="${dist.lib.dir}"><fileset refid="jexl.jars"/></copy>
-        <antcall target="copy-libs-for-servlet" />
-    </target>
-
-    <target name="deploy" depends="dist,undeploy">
-        <!-- Copying the sar directory to the jboss deploy dir -->
-        <copy todir="${deploy.dir}">
-            <fileset dir="${dist}">
-                <include name="${sar.name}/**" />
-            </fileset>
-        </copy>
-    </target>
-
-    <target name="undeploy">
-        <!-- Deleting old deployment -->
-        <delete dir="${deploy.dir}/${sar.name}" />
-    </target>
-
-    <target name="clean">
-        <delete dir="${build}" />
-        <delete dir="${dist}" />
-    </target>
-</project>

Modified: trunk-esial/blog-core/src/java/org/jboss/blog/recommendBlog.java
===================================================================
--- trunk-esial/blog-core/src/java/org/jboss/blog/recommendBlog.java	2007-02-28 15:04:30 UTC (rev 53)
+++ trunk-esial/blog-core/src/java/org/jboss/blog/recommendBlog.java	2007-03-02 18:58:25 UTC (rev 54)
@@ -43,7 +43,7 @@
 	}
 	
 	public String recommendation(){
-		return "mailto:"+this.getMail()+"?subject="+this.getFirstname()+" "+this.getLastname()+" recommend a blog to you!"+"&body="+this.getComment();
+		return "mailto:"+this.getMail();//+"?subject="+this.getFirstname()+" "+this.getLastname()+" recommend a blog to you!"+"&body="+this.getComment();
 	}
 
 	

Modified: trunk-esial/blog-core/src/web/WEB-INF/faces-config.xml
===================================================================
--- trunk-esial/blog-core/src/web/WEB-INF/faces-config.xml	2007-02-28 15:04:30 UTC (rev 53)
+++ trunk-esial/blog-core/src/web/WEB-INF/faces-config.xml	2007-03-02 18:58:25 UTC (rev 54)
@@ -86,6 +86,12 @@
         <managed-bean-class>org.jboss.blog.recommendBlog</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>
+    
+    <managed-bean>
+        <managed-bean-name>templ</managed-bean-name>
+        <managed-bean-class>org.jboss.blog.templateManager</managed-bean-class>
+        <managed-bean-scope>request</managed-bean-scope>
+    </managed-bean>
 
     <!-- Post/ blog view -->
     <navigation-rule>

Modified: trunk-esial/blog-core/src/web/views/blog_view.xhtml
===================================================================
--- trunk-esial/blog-core/src/web/views/blog_view.xhtml	2007-02-28 15:04:30 UTC (rev 53)
+++ trunk-esial/blog-core/src/web/views/blog_view.xhtml	2007-03-02 18:58:25 UTC (rev 54)
@@ -41,6 +41,8 @@
         </h:panelGroup>
         
         </h:panelGrid>
+        
+        <h:outputText value="#{templ.listePosts}"/>
 
         <h:form>
         <h:dataTable value="#{blogView.posts}" var="post" binding="#{blogView.postsData}"




More information about the jboss-cvs-commits mailing list