[jboss-cvs] JBossBlog SVN: r79 - in trunk-esial/blog-core/src: web/views and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 19 08:02:09 EDT 2007
Author: acrignon
Date: 2007-03-19 08:02:09 -0400 (Mon, 19 Mar 2007)
New Revision: 79
Added:
trunk-esial/blog-core/src/web/views/template_posts_list.xhtml
Modified:
trunk-esial/blog-core/src/java/org/jboss/blog/ui/templateManager.java
Log:
- add the template_posts_list.xhtml view
Modified: trunk-esial/blog-core/src/java/org/jboss/blog/ui/templateManager.java
===================================================================
--- trunk-esial/blog-core/src/java/org/jboss/blog/ui/templateManager.java 2007-03-19 12:01:29 UTC (rev 78)
+++ trunk-esial/blog-core/src/java/org/jboss/blog/ui/templateManager.java 2007-03-19 12:02:09 UTC (rev 79)
@@ -35,7 +35,7 @@
modelRoot.put("pouet","pouet");
t.process(modelRoot, out);
s = t.toString();
- s = str;
+ //s = str;
}
catch(Exception e){
s = e.getMessage();
@@ -81,6 +81,7 @@
allowPostsList = false;
}catch(Exception e){
s = e.getMessage();
+ }finally{
templatePostsList = s;
}
return s;
Added: trunk-esial/blog-core/src/web/views/template_posts_list.xhtml
===================================================================
--- trunk-esial/blog-core/src/web/views/template_posts_list.xhtml (rev 0)
+++ trunk-esial/blog-core/src/web/views/template_posts_list.xhtml 2007-03-19 12:02:09 UTC (rev 79)
@@ -0,0 +1,28 @@
+<div xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:blog="http://www.jboss.org/portal/jbossblog">
+
+<ui:composition template="view.xhtml">
+
+ <ui:define name="viewmain">
+
+ <h:form>
+
+ <h:panelGrid columns="1">
+
+ <h:outputText value="Here you can change the template used to display the list of the posts:"/>
+ <h:inputTextarea value="#{templ.templatePostsList}" required="true" rows="30" cols="60"/>
+ <h:commandLink value="Save this template" action="#{templ.saveTemplatePostsList}"/>
+
+ </h:panelGrid>
+
+ </h:form>
+
+ </ui:define>
+
+</ui:composition>
+
+</div>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list