[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui ...
Christian Bauer
christian at hibernate.org
Fri Mar 9 03:02:09 EST 2007
User: cbauer
Date: 07/03/09 03:02:09
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/ui
UIWikiFormattedText.java
Log:
Fixed file uploading
Revision Changes Path
1.4 +0 -10 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/UIWikiFormattedText.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIWikiFormattedText.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/UIWikiFormattedText.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- UIWikiFormattedText.java 8 Mar 2007 17:50:58 -0000 1.3
+++ UIWikiFormattedText.java 9 Mar 2007 08:02:09 -0000 1.4
@@ -24,8 +24,6 @@
@Override
public void encodeBegin(FacesContext context) throws IOException {
- System.out.println("############### GOT IT ");
-
if (!isRendered() || getValue() == null) return;
Reader r = new StringReader((String) getValue());
SeamTextLexer lexer = new SeamTextLexer(r);
@@ -50,16 +48,8 @@
context.getResponseWriter().write(parser.toString());
- // Flush persistence context after parsing/rendering - resolved and updated links need to be stored
- /* TODO: can't flush after rendering some wiki text, breaks preview feature in docEdit flushmode.manual conversation
- EntityManager em = ((EntityManager)org.jboss.seam.Component.getInstance("entityManager"));
- em.joinTransaction();
- em.flush();
- */
-
// Put attachments (wiki links...) into the event context for later rendering
Contexts.getEventContext().set("wikiTextAttachments", parser.getAttachments());
}
-
}
More information about the jboss-cvs-commits
mailing list