[Yanel-commits] rev 60759 - in public/yanel/trunk/src/resources/comment: htdocs src/java/org/wyona/yanel/impl/resources/comment
michi at wyona.com
michi at wyona.com
Sat Sep 17 09:42:33 CEST 2011
Author: michi
Date: 2011-09-17 09:42:33 +0200 (Sat, 17 Sep 2011)
New Revision: 60759
Modified:
public/yanel/trunk/src/resources/comment/htdocs/add-comment.xsl
public/yanel/trunk/src/resources/comment/src/java/org/wyona/yanel/impl/resources/comment/CommentResource.java
Log:
also display title of comment on confirmation screen
Modified: public/yanel/trunk/src/resources/comment/htdocs/add-comment.xsl
===================================================================
--- public/yanel/trunk/src/resources/comment/htdocs/add-comment.xsl 2011-09-17 07:35:45 UTC (rev 60758)
+++ public/yanel/trunk/src/resources/comment/htdocs/add-comment.xsl 2011-09-17 07:42:33 UTC (rev 60759)
@@ -76,7 +76,8 @@
<xsl:template match="comment">
<p>The following comment has been added successfully:</p>
- <p><xsl:value-of select="."/></p>
+ <p>Title: <xsl:value-of select="title"/></p>
+ <p>Text: <xsl:value-of select="text"/></p>
<p>Return to <a href="{$yarep.back2realm}{substring-after(@path, '/')}">page</a></p>
</xsl:template>
Modified: public/yanel/trunk/src/resources/comment/src/java/org/wyona/yanel/impl/resources/comment/CommentResource.java
===================================================================
--- public/yanel/trunk/src/resources/comment/src/java/org/wyona/yanel/impl/resources/comment/CommentResource.java 2011-09-17 07:35:45 UTC (rev 60758)
+++ public/yanel/trunk/src/resources/comment/src/java/org/wyona/yanel/impl/resources/comment/CommentResource.java 2011-09-17 07:42:33 UTC (rev 60759)
@@ -154,7 +154,8 @@
// INFO: Return content of comment as confirmation of what has been saved
sb.append("<comment path=\"" + path + "\">");
- sb.append(body);
+ sb.append("<title>" + comment.getTitle() + "</title>");
+ sb.append("<text>" + comment.getCommentText() + "</text>");
sb.append("</comment>");
} else {
sb.append(generateNoValidCommentSubmittedYetXML(path, null, null));
More information about the Yanel-commits
mailing list