20040530 Sunday May 30, 2004

Testing Wiki Syntax and RSS Feed If I use wiki syntax in this entry, will it show up property in the RSS Feed? I'd better put some wiki syntax in, like a link to AppFuse, Downloads and an external link. What about the Java2HtmlPlugin, does that work?

    public ModelAndView handleRequest(HttpServletRequest request,
                                      HttpServletResponse response)
    throws Exception {
        if (log.isDebugEnabled()) {
            log.debug("entering 'handleRequest' method...");
        }

        return new ModelAndView("userList", Constants.USER_LIST,
                                mgr.getUsers(new User()));
    }

BTW, I really like the new editor layout - nice job Dave.

Update: It looks like the Wiki Plugin isn't working. I tried updating my "_entry" page with no avail. Below are the contents of this file. I used to have $wikiPlugin.render($wikiText), maybe that's the problem?

Update 2: Duh, the JSPWiki Plugin wasn't enabled in web.xml. As soon as I enabled that, and dropped the Java2HtmlPlugin JAR into WEB-INF/lib, everything worked as expected. Strangely enough, it seems I shouldn't start my entries with !, but rather just check the JSPWiki Syntax plugin. I'm guessing the exclamation point check in my _entry page is still needed for backwards compatibility.

Posted in Roller at May 30 2004, 01:31:10 PM MDT 7 Comments

Comments:

[Trackback] Wiki syntax seems to be working just *fine* in Roller 0.9.9. I'm not sure why your _entry page template is not working, Matt . Perhaps one of the macros you are using has a different call signature than it did in 0.9.8? The good news is that,...

Posted by Blogging Roller on May 30, 2004 at 03:33 PM MDT #

Hi Matt. Here's what your feed looks like in FeedDemon -------------------------------- !If I use wiki syntax in this entry, will it show up property in the RSS Feed? I'd better put some wiki syntax in, like a link to [AppFuse], [Downloads] and an [external link|http://rollerweblogger.org]. What about the Java2HtmlPlugin, does that work? [{Java2HtmlPlugin public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { if (log.isDebugEnabled()) { log.debug("entering 'handleRequest' method..."); } return new ModelAndView("userList", Constants.USER_LIST, mgr.getUsers(new User())); } }] BTW, I really like the new editor layout - nice job [Dave|http://rollerweblogger.org/page/roller]. Update: It looks like the Wiki Plugin isn't working. I tried updating my "_entry" page with no avail. Below are the contents of this file. I used to have $wikiPlugin.render($wikiText), maybe that's the problem? #if($entry.text.startsWith("!")) #set( $wikiText = $stringUtils.substring($entry.text,1)) #set( $renderedText = $pageHelper.renderPlugins($wikiText)) #elseif( $entry.plugins ) #set( $renderedText = $pageHelper.renderPlugins($entry)) #else #set( $renderedText = $entry.text ) #end #if( $entryLength == -1 ) $renderedText #else #set( $escapedText = $utilities.removeHTML($renderedText) ) $stringUtils.left( $escapedText,$entryLength )... #end ----------------------

Posted by Vinny Carpenter on May 30, 2004 at 09:34 PM MDT #

Yes Matt, leave the _entry page and any exclamations in older posts for backwards compatibility. Or you could go through and update each entry to use the JSPWiki Plugin :-)

Posted by Lance on May 31, 2004 at 08:39 AM MDT #

Unfortunately, the wiki rendering doesn't seem to be very backwards compatible. If you look at my last wiki post before the upgrade, it's not being rendered like it was before.

Posted by Matt Raible on May 31, 2004 at 10:46 AM MDT #

Looks fine to me. The only diff (so far as I can recall) is that there was a yellow box around the release bullet points. But I looked at the source and didn't see any "wiki code"...

Posted by Lance on May 31, 2004 at 11:41 AM MDT #

It is translating the HTML correctly, but the line breaks are translated incorrectly. It's putting an extra <br/> where it shouldn't be. I can reload my site before the upgrade if you don't believe me. ;-)

Posted by Matt Raible on May 31, 2004 at 12:04 PM MDT #

Fixed.

Posted by Matt Raible on June 01, 2004 at 05:11 PM MDT #

Post a Comment:
Comments are closed for this entry.
Click me to subscribe
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud