Looks interesting! When I tried to edit http://www.bliki.info/jamwiki/en/Feedback I got a warning about edit being admin-only, but didn't see any other problems. I'll be interested to see how it develops, and if there is code you want to integrate back into JAMWiki please let me know. -- Ryan 26-Aug-2006 10:25 PDT
- Strange, the Feedback page was created with an admin account, but doesn't contain the admin flag? I have set the option "Force the setting of username" So instead of the administrators message JAMWiki should say something like "You have to register/login before yo can edit this article"
I will make an announcement if I have a public version available. -- Axel Kramer
- I'll see if maybe it's a bug in my code somewhere - I'm sure there are still a lot of such bugs hiding in the code. I was hoping that perhaps you had modified the code in some way that might let me off the hook ;) -- Ryan 26-Aug-2006 10:52 PDT
- FYI after logging in I'm able to edit. -- Ryan 26-Aug-2006 10:53 PDT
- Looks like it's my code. I'll fix it - sorry about that! -- Ryan 26-Aug-2006 10:54 PDT
- Fixed - the problem was a dumb typo from the last release. In JAMWikiServlet update the following condition in the viewLogin() method:
if (errorMessage != null) {
next.addObject("errorMessage", errorMessage);
}
- I'll include the fix in the next beta, probably a bit later today. Sorry about that! -- Ryan 26-Aug-2006 11:04 PDT
[Edit]Bliki Parser
Hi Axel - I've just rebuilt my development environment to use JDK 1.4 by default. While compiling I'm getting an error that the bliki.jar file has been built JDK 1.5 only. Can you re-upload a version that is built with 1.4?
compile:
[javac] Compiling 139 source files to D:\code\workspace\wiki\trunk\build\classes
[javac] D:\code\workspace\wiki\trunk\src\java\org\jamwiki\parser\bliki\JAMWikiModel.java:3:
cannot access info.bliki.wiki.filter.AbstractWikiModel
[javac] bad class file: D:\code\workspace\wiki\trunk\lib\bliki.jar
(info/bliki/wiki/filter/AbstractWikiModel.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the
classpath.
[javac] import info.bliki.wiki.filter.AbstractWikiModel;
[javac] ^
[javac] Note: D:\code\workspace\wiki\trunk\src\java\org\jamwiki\db\AnsiDataHandler.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 1 error
Thanks! -- Ryan 09-Dec-2006 11:42 PST
[Edit]Translations
Thanks for the German translation update - I've added your latest revision to the Subversion repository. -- Ryan 07-Sep-2006 14:17 PDT
- Thanks again, I just pushed your latest change to the source code repository. -- Ryan 14-Sep-2006 09:50 PDT
- I've added your latest translations to the source code repository - thanks! -- Ryan 16-Nov-2006 10:01 PST
- Latest translations updated in the source code repository, thanks! -- Ryan 21-Nov-2006 12:31 PST
- Thanks yet again! Latest translations have been added to Subversion for 0.6.0, and should now be appearing on jamwiki.org. -- Ryan 15-Aug-2007 01:23 PDT
- I've added your German JAMWiki texts into Subversion for the next release - hopefully that's OK with you, and thanks for doing them! -- Ryan 08-Jan-2008 22:11 PST
Hi Axel - thanks for the information about the Bliki parser. Would it be OK with you to move that information to Installation#Configuration? I think it's more likely to be seen there by individuals who are configuring JAMWiki.
- yes it's ok -- Axel Kramer
Also, if you're interested I'd be happy to add the Bliki parser to the JAMWiki Subversion repository in the org.jamwiki.parser.alt package. I've been keeping the old VQWiki parser around only as an example of how to implement an alternative parser, but it doesn't work and isn't maintained so I'd like to replace it. If you'd rather maintain your parser separately that's perfectly fine as well. Of course, if it becomes a part of the JAMWiki repostitory then I'd definitely want you to have access to the Subversion repository, and I'd also help out with making sure that any JAMWiki changes don't break your parser. Let me know! -- Ryan 21-Sep-2006 12:27 PDT
- Wow! Actually, now that I'm looking at your code I'll leave it up to you whether or not you want to integrate anything back into JAMWiki! Didn't realize your parser was such a major rewrite! Let me know if you have any interest in integrating any code back into JAMWiki, otherwise let me know if there is anything I can do to make your work easier. -- Ryan 21-Sep-2006 12:34 PDT
- The latest source code can now be found in the projects SVN Repository: http://svn.sourceforge.net/viewvc/plog4u/ I Hope this is ok for you? -- Axel Kramer
- Hi Axel - Sorry, I guess I wasn't clear. I was simply wondering if it would be easier for you if some of the Bliki parser code was eventually made part of the official JAMWiki release. I would imagine it's a bit difficult to maintain your code and also track changes in JAMWiki. If that isn't something that would be of benefit to you then don't worry about it - I'm just trying to make it easier for the two projects to work together!
- I'll keep an eye on your project, it looks quite promising. -- Ryan 21-Sep-2006 14:28 PDT
[Edit]Subversion Write Access
Hi Axel - I know you're doing a lot of work with the JAMWiki codebase as part of Bliki, so please let me know if you would like write access to the JAMWiki Subversion repository. I'm not always around to fix things immediately, so that might give you an easy way to fix any bugs that are impeding Bliki development such as the setup.jsp bug that you pointed out on Friday. -- Ryan 02-Oct-2006 13:31 PDT
- I'm interested in write access to the JAMWiki codebase. In the first step I only would like to maintain an alternative parser implementation in the main trunk if this is ok for you? My sourceforge id is
axelcl -- Axel Kramer
- Done! Let me know if you have any problems. Maintaining a separate parser is great, and it will make it easier for me to work with you to ensure that any changes I make don't break your code. -- Ryan 22-Nov-2006 22:30 PST
- which package name should I use for the parser? -- Axel Kramer 23-Nov-2006 04:05 PST
- Originally I thought that alternative parsers could go into their own packages under /wiki/trunk/src/java/org/jamwiki/parser, but it might make sense to put non-core code into its section of the Subversion tree, such as a new /contrib/parser/bliki/ package - I don't really have an opinion, so I'll defer to your best judgment, and we can always move things around later if needed. -- Ryan 23-Nov-2006 08:19 PST
[Edit]Bliki in maven repository
Hi, We have been talking in Tech:Maven about this bliki.jar file, which isn't in any maven repository. Meanwhile we can install it in a local repository. But what about installing in a remote repository? I don't know how exactly to achive this, but it would be nice if bliki is available in a Maven repository. I would prefer http://ibiblio.org/maven2, but why not http://plog4u.sourceforge.net/repository. It looks like Sourceforge doesn't provide a Maven repository.
You don't need to change to Maven, maybe we could add an Ant task, where you can deploy the jar file to the repository. Mike 14-Jul-2007 18:30 PDT
- can I commit the newest version to the jamwiki trunk? Because of the parser settings in jamwiki.properties, it shouldn't have any effect on the other functionality? Axel Kramer 20-Jul-2007 04:46 PDT
- I have changed project structure to Maven style and added a description on Building from Source. Now you can add your source code in /trunk/bliki/src/main/java. You can create a Maven file pom.xml in /trunk/bliki yourself or I will create it for you. Mike 20-Jul-2007 07:56 PDT
- Do you have published the bliki.jar into a public Maven repository ? Prospere
- Move this discussion in the bliki forum: http://groups.google.com/group/bliki/t/48b7ac212e9bbd52?hl=en
[Edit]Escaping of apostrophes
Hi Axel - in this comment you had indicated that you expected apostrophes to be escaped, and that change was implemented during the JAMWiki 0.3.x series. When I looked at using the org.springframework.web.util.HtmlUtils class for escaping, instead of the current Utilities.escapeHTML class, I deferred since it didn't escape apostrophes, but I left a FIXME note in the code (although without explaining why the change hadn't been made previously). There was a change committed today that replaces Utilities.escapeHTML with the Spring HTMLUtils class, and I just wanted to verify with you whether you still see any strong reason for escaping apostrophes, or if we can simply use the Spring utility class. Please let me know if you have any concerns - thanks! -- Ryan 30-Jul-2007 19:52 PDT
[Edit]Build Instructions
Thanks for updating the build instructions - I hardly ever use Eclipse, so I greatly appreciate your help in keeping the Eclipse build notes up-to-date. -- Ryan 27-Apr-2008 22:07 PDT
- Hi Ryan. I'm currently updating the tutorial to get started with Eclipse and JAMWiki for my blog (only in draft mode;not viewable at the moment). I would like to ask, if I can commit my changes for the current bliki parser to SVN (I'm already listed on the sf.net project page as a developer). Note: at the moment I have not many experiences with the maven tools.
As a second wish, can we please make the parseRedirect() and isRedirect() methods protected in JFlexParser (or move to AbstractParser?) to avoid duplicate code? -- Axel Kramer 29-Apr-2008 12:41 PDT
- Hi Axel - your commits have always been good ones, so feel free to make changes that you feel are necessary. The two changes you've suggested above can be committed directly to trunk since they are simple and won't cause any unforeseen surprises. For bigger changes, see How to Help#Programmers - basically, just follow the standard open source strategy of starting a discussion prior to implementing a new feature so that everyone who is interested can contribute. -- Ryan 29-Apr-2008 13:22 PDT
[Edit]Bliki 3.0
Hi Axel - is Bliki 3.0 compatible with JDK 1.4? If so, can you re-upload a version that is compiled with 1.4 compatibility? At the moment I'm getting a compile error when trying to build the JAMWiki WAR using JDK 1.4. If 3.0 is not compatible with JDK 1.4 please let me know and I will try to update the POM file so that it falls back to 1.0 for sites using JDK 1.4. -- Ryan 03-May-2008 00:17 PDT
- I will try to solve this problem. In Eclipse I'm setting the compiler compliance level to 1.4 in the JAMWiki project node and everything compiled fine, allthough the bliki project was set to 5.0, because I'm using generics and other goodies from 5.0. Axel Kramer 03-May-2008 01:31 PDT
- What errors appear when you compile? Is it possible to use Retroweaver to achieve 1.4 compatibility? -- 87.181.228.89 03-May-2008 06:34 PDT
- Hi Axel - the error is the standard "class file has wrong version 49.0, should be 48.0". If you're using features from JDK 1.5 in the new version I think it is possible in Maven to choose different versions depending on what JDK support is available. I'll investigate, which should resolve the problem. Thanks for responding! -- Ryan 03-May-2008 08:30 PDT
- Hi Axel - I've looked into this issue a bit more closely, and it turns out that it's not very easy to make one part of a project conditional on a JDK version. It might make sense to split the bliki parser into its own Maven project within JAMWiki - something like "addons/bliki-parser", and then compile it into its own jar. That would systems that don't have JDK 1.5 could be configured not to build it, and those that had JDK 1.5 or above could include it. Does that seem like a reasonable solution? If so I think I can make the change fairly quickly, although you may then need to update your build instructions. -- Ryan 03-May-2008 12:14 PDT
- That's ok. Please add the changes to the project. -- Axel Kramer 03-May-2008 13:44 PDT
- I've updated the Maven structure and POMs so that the Bliki parser should only be built for systems that support JDK 1.5 or higher. I'm still learning how Maven works, so there may be some issues - let me know if you (or anyone else) encounter any problems, and feel free to commit any patches for anything that's obviously broken. -- Ryan 05-May-2008 13:42 PDT
- Thanks Ryan. Where can I hook in and detect if the user has just saved a new version of a wiki text. For example if I would like to generate a PDF of the current page every time someone changes the entry? I personally would favor a method in the parser API? -- Axel Kramer 07-May-2008 11:39 PDT
- The most obvious point would be DataHandler.writeTopic(), but if you need that information in the parser it wouldn't be hard to add a "last modified" field to the ParserInput, ParserOutput or Topic objects. At the moment AnsiDataHandler.writeTopic() already does something similar when it triggers the search engine to re-index a topic, although it would eventually be better to use some sort of notification so that the database code didn't need to know anything about search engines, PDF, or anything else. -- Ryan 07-May-2008 16:14 PDT
- Something like an EventListener which could be registerwd for some special events like for example, saving a topic or previewing changes of a topic, would be fine. At the end of the
writeTopic() method the event list could call each registerd event. How should these events be registered prgrammatically, through Spring or through a mechanism in the jamwiki.properties file? -- Axel Kramer 08-May-2008 12:38 PDT
- (Re-indenting) Sorry for not responding sooner, I missed this comment. I think an EventListener makes a lot of sense. I'd like to wrap up the 0.6.6 release soon, so any changes will probably have to wait for 0.7.0. Feel free to start a Tech:Events (or similar) page, otherwise I'll do so once I've had some time to investigate and give this some thought. -- Ryan 09-May-2008 11:07 PDT
BTW: I made a short tutorial for an Eclipse/Maven2/Tomcat installation in my blog:
It's written in Wikipedia syntax, so that we can copy the blog entry into JAMWiki in a later step.
In the first step, I would like all JAMWiki Eclipse developers to review the tutorial.
I will post the blog entry to http://www.dzone.com the next days. Axel Kramer 03-May-2008 01:32 PDT
- Thanks - I'll take a look. A lot of people have asked about using Eclipse to build JAMWiki, so having updated build instructions would be a huge help. Thanks for putting something together. -- Ryan 03-May-2008 08:30 PDT
- I made some small changes and published the tutorial now at: http://www.dzone.com/links/developing_jamwiki_with_eclipse.html -- Axel Kramer 07-May-2008 11:35 PDT