Are "hands-off" blocks possible?

2019-04-02 Thread Ulf Dittmer
Hi- I'm trying to expand the markup possibilities by adding code blocks that get styled using the https://github.com/codelibs/jhighlight library (which emits HTML). I've written a filter that uses preTranslate to look for a particular syntax I invented ("[]") and replaces the contents of those

Re: Are "hands-off" blocks possible?

2019-04-02 Thread Ulf Dittmer
No, I hadn't been aware of that. That does pretty much what I want to accomplish. And I see there's CSS to alter the colors. Thanks a lot! Out of curiosity: is there any way to achieve what I originally asked? I see myself wanting to have this in JSPWiki in some way sooner or later. Ulf On Tue,

Re: Are "hands-off" blocks possible?

2019-04-03 Thread Ulf Dittmer
That was awesome - I got it to work with %%prettify, as a filter and as a plugin - so much choice :) Thanks Juan and Dirk, for the quick and comprehensive help, and telling me about the details of filters and plugins. Ulf

Re: How to show trail on the topleft

2019-06-08 Thread Ulf Dittmer
That's in the file templates/default/Nav.jsp, which gets included in Header.jsp. Ulf On Sat, Jun 8, 2019 at 2:14 PM Michael Xu <8957...@qq.com> wrote: > Hi all, > > I am a new user of jspwiki and wondering how to configure jspwiki to show > Trail on the top left which I can see in > https://jspw

Re: Login issues after upgrade - mgr.isContainerAuthenticated() has incorrect value

2019-07-02 Thread Ulf Dittmer
I have not gotten container auth to work with 2.11.0.M3. I'm quite familiar with Java web apps, so I know what to comment and what not in web.xml, but no dice. I don't use SSO, though. But container auth works fine with other web apps on the same Tomcat instance. Ulf

Re: Global %%add-css blocks

2019-07-06 Thread Ulf Dittmer
Is that supposed to work in 2.11.0.M3? I tried this and the CSS got added like this: /*hide the default jspwiki logo */a.logo { border:none; text-indent:-99em;}a.logo b:before { content:""; }/* put the clean-blue logo, attached to this page */a.logo {background: url(images/imagej.jpg); bac

Re: Global %%add-css blocks

2019-07-08 Thread Ulf Dittmer
k format) > > >> background: url([images/imagej.jpg]); > > > dirk > > > > > > > On Sat, Jul 6, 2019 at 1:19 PM Ulf Dittmer > wrote: > > > Is that supposed to work in 2.11.0.M3? I tried this and the CSS got added > > like this: >

Re: Global %%add-css blocks

2019-07-09 Thread Ulf Dittmer
OK. I got it to work by using a PNG - using the same image as a JPG does not work. It would be good to mention that on https://jspwiki-wiki.apache.org/Wiki.jsp?page=How%20to%20change%20the%20site%20logo Thanks very much for your help! Ulf On Mon, Jul 8, 2019 at 6:24 PM Dirk Frederickx wrote: >

Re: Global %%add-css blocks

2019-07-09 Thread Ulf Dittmer
Rodríguez < juanpablo.san...@gmail.com> wrote: > Hi Ulf, > > IIRC, only png images are inlined by default. Check for > jspwiki.translatorReader.inlinePattern entries on > jspwiki[-custom].properties file. > > (on mobile, apologies on brevity and typos) > > > HTH, &

Redirecting from one page to another, and displaying alternative page names

2019-07-09 Thread Ulf Dittmer
Occasionally I decide that FooBar is no longer a good name for a page, and wish to to change it FooPage, and want the old page name to redirect to the new one. What would be the easiest way to achieve that? Also, If I don't want FooPage to be the page title, but something entirely different (Like

Adding meta tags to page headers

2019-07-09 Thread Ulf Dittmer
If I wanted to add meta tags to the page header (specifically, description, keywords and robots), would I have to write a plugin or a filter? With a plugin I can pass the values of those headers along, but I don't think plugins have access (or can add) tags to the HTML header...? With a post-transl

Re: Adding meta tags to page headers

2019-07-10 Thread Ulf Dittmer
> Adding support for "keywords" to a wiki-page would be a great addition > for JSPWiki. > See also JSPWIKI-1105 > with > the suggestions to add support for page-tags (#keyword1, #keywordk2) . > That's more involved than I can than tackle at th

Re: Adding or Modifying a Change Note

2019-12-10 Thread Ulf Dittmer
I would like to have an option to make a non-empty change comment mandatory! A quick search through jspwiki.properties comes up empty, so I don't think this is possible right now. Ulf On Tue, Dec 10, 2019 at 2:29 PM Col Willis wrote: > It might be better to ensure a change note is mandatory for

Edit preview interferes with JavaScript

2020-06-22 Thread Ulf Dittmer
I'm trying to insert JavaScript into a wiki page, like this: [{If page='SandBox' exists='true' document.writeln("User Agent: " + navigator.userAgent);}] (Yes, it's a gross hack, but I'm just playing a bit with what's possible, and sometimes it's nice to be able to inject arbitrary content

Re: Edit preview interferes with JavaScript

2020-06-23 Thread Ulf Dittmer
an turn off the edit preview with one of the dropdown menu's in > the edit toolbar : uncheck the LivePreview checkbox. > > > KR > dirk > > On Mon, Jun 22, 2020 at 5:01 PM Ulf Dittmer > wrote: > > > I'm trying to insert JavaScript into a wiki page, like this:

Re: Edit preview interferes with JavaScript

2020-06-23 Thread Ulf Dittmer
> > You may want to check an older plugin ( > https://www.ecyrd.com/JSPWiki/wiki/JSPluginScripts) who allows you to do this, but not sure if this would still work. > That executes JavaScript on the server using Rhino, but I'm trying to add client-side JavaScript so it can interact with the browse

Re: Edit preview interferes with JavaScript

2020-06-24 Thread Ulf Dittmer
> You can also set jspwiki.translatorReader.allowHTML = true on your > jspwiki.properties but that opens up a security risk on your installation That made the difference. I had set it to true; if I set it to false, the JavaScript is displayed, not executed. I understand the security implications;

Certificate on jspwiki-wiki.apache.org is expired

2021-03-09 Thread Ulf Dittmer
This is a to-whom-it-may-concern sort of mail, since I figure that some of the people on this list can do something about it. Ulf

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2021-05-09 Thread Ulf Dittmer
Tomcat 10 uses Jakarta EE, not Java EE, so it makes sense that it doesn't know about the javax.servlet package. See https://tomcat.apache.org/migration-10.html for how to make JavaEE-style web apps run on Tomcat 10. On Sun, May 9, 2021 at 1:29 PM Jim Willeke wrote: > Server version name: Apache

Re: ImageMapPlus

2021-09-07 Thread Ulf Dittmer
Given "com/ecyrd/jspwiki/plugin/WikiPlugin", it can't work with current JSPWiki versions. These days, the corresponding class would be org.apache.wiki.api.plugin.WikiPlugin. So you'd have to modify the source code to use the org.apache.wiki package and classes rather than com.ecyrd.jspwiki. I don't

Preventing seeing the page source

2023-08-21 Thread Ulf Dittmer
Hi- I’m setting up a public instance where I don't want anyone who is not Authenticated to be able to view the page source. Looking at Nav.jsp, I can’t make out how to set that up. I don't really want to remove the “raw” skin, as that might be useful for Authenticated users. Is there a way to ma

Re: Preventing seeing the page source

2023-08-22 Thread Ulf Dittmer
jsp > > page? > > > > > > HTH, > > juan pablo > > > > > > [#1]: > > > > > https://github.com/apache/jspwiki/blob/master/jspwiki-main/src/main/java/org/apache/wiki/tags/UserCheckTag.java > > > > El lun, 21 ago 2023, 15:35, Ul

Re: Changing the colors of a site

2023-10-01 Thread Ulf Dittmer
a workaround > and > > it's best to use it sparingly. For a long-term solution, I would > recommend > > getting comfortable with LESS and modifying the variables.less file. > > > > Hope this helps! > > > > > > Arturo > > > > > &

Registering a WikiEventListener

2023-11-21 Thread Ulf Dittmer
Hi- I'm trying to get notified whenever a page is delivered by listening to WikiPageEvent.PAGE_DELIVERED events. To that end I implemented a WikiEventListener like this engine.addWikiEventListener(new WikiEventListener() { @Override public void actionPerformed (WikiEvent event) {

Re: Registering a WikiEventListener

2023-11-22 Thread Ulf Dittmer
ectly, that might need to be done BEFORE WikiServletFilter in instantiated, but I don't see how that is possible. But then, I'm not sure how accurate that page is - some of the other pages describing event handling some out of date. Thanks, Ulf On Tue, Nov 21, 2023 at 11:10 AM Ulf Dittme

Re: Registering a WikiEventListener

2023-11-22 Thread Ulf Dittmer
ventUtils disappeared long ago, IIRC due to a refactor so that the > jspwiki-event could be extracted to it's own module. Don't remember very > well, but its methods ended up mostly in WiliEventManager > > > HTH, > juan pablo > > #1: > > https://jspwiki-wiki.a

Re: Registering a WikiEventListener

2023-11-22 Thread Ulf Dittmer
d you mind trying to > debug inside WikiEventManager.fireEvent to see where the events are being > dispatched? I'll try to look into this throughout the week, but can't > promise anything. > > > Best regards, > juan pablo > > El mié, 22 nov 2023, 16:52, Ulf Dittmer

Re: Registering a WikiEventListener

2023-11-23 Thread Ulf Dittmer
efault all URLs are handled as Latin1, even if they are really UTF-8. name = URLDecoder.decode(name, encoding); } On Wed, Nov 22, 2023 at 7:02 PM Ulf Dittmer wrote: > Now we're getting somewhere :-) > > In WikIEventManager, I can see my listener being added > in WikiEventDe

Re: Registering a WikiEventListener

2023-11-24 Thread Ulf Dittmer
wiki > context (attach, view, edit, etc.), which isn't there in a straightforward > way. > > > Best regards, > juan pablo > > El jue, 23 nov 2023, 11:43, Ulf Dittmer .invalid> > escribió: > > > I'm confused: URLConstructor.parsePageFromURL -which

Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-24 Thread Ulf Dittmer
Hi all- I'm experiencing a strange problem, and was hoping someone might have run into this before. I'm running a JSPWiki site on Tomcat with an Apache in front of it. The Apache refuses an edit of a very simple page with a "Forbidden - You don't have permission to access this resource.", namely

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-25 Thread Ulf Dittmer
mage}] On Sun, Feb 25, 2024 at 10:33 AM Juan Pablo Santos Rodríguez < juanpablo.san...@gmail.com> wrote: > Hi Ulf, > > Would you mind sharing how your Apache instance is set up? Does it show to > which URL is trying to access the second time? > > > Thx in advance, > j

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-25 Thread Ulf Dittmer
L is trying to access the second time? >> >> >> Thx in advance, >> juan pablo >> >> El sáb, 24 feb 2024, 18:23, Ulf Dittmer > .invalid> >> escribió: >> >> > Hi all- >> > >> > I'm experiencing a strange problem, and was

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-26 Thread Ulf Dittmer
e cases (like longer payloads or binary data, although that would not seem to be the issue here), On Sun, Feb 25, 2024 at 9:00 PM Ulf Dittmer wrote: > Sorry, that message got truncated: > > It's shared hosting, and I have no access to the Apache - so I don't know. > > I can (a

Re: Strange problem with Apache in front of JSPWiki on Tomcat

2024-02-26 Thread Ulf Dittmer
x92dp.png'> }] in addition to [{Image src=' https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png' }] and now it works. Very strange behavior by Apache. On Mon, Feb 26, 2024 at 5:31 PM Ulf Dittmer wrote: > Could it have something to do with the extens

Re: Time To Move To Jakarta EE

2024-06-01 Thread Ulf Dittmer
On Thu, May 30, 2024 at 11:12 PM Juan Pablo Santos Rodríguez < juanpablo.san...@gmail.com> wrote: > In any case, going to JDK-17 and requiring a new major version of > Tomcat, or whichever, would be a stronger reason to name it 3.0. I > remember the attempt at 3.0, but given the amount of time tha

problematic CalendarTag <-> WeblogPlugin interaction

2024-06-21 Thread Ulf Dittmer
The CalendarTag, when deciding whether to link a particular day, assumes that the presence or absence of a page "..._blogentry_'ddMMyy'_1' indicates whether there are weblog entries for a given day (this is in Sidebar.jsp). The problem is, if the first entry on that day (the one with ..._1) is del

Re: problematic CalendarTag <-> WeblogPlugin interaction

2024-06-23 Thread Ulf Dittmer
which is used to create new entries. > > > Grtz > dirk > > On Fri, Jun 21, 2024 at 10:15 AM Ulf Dittmer > wrote: > > > The CalendarTag, when deciding whether to link a particular day, assumes > > that the presence or absence of a page "..._blogentry_'

Re: problematic CalendarTag <-> WeblogPlugin interaction

2024-06-24 Thread Ulf Dittmer
Rull request created: https://github.com/apache/jspwiki/pull/350 On Sun, Jun 23, 2024 at 12:43 PM Ulf Dittmer wrote: > Thanks Dirk, I wasn't aware of the findFreeEntry method. It basically > confirms that there is no built-in method to search for pages by pattern, > and that a

WikiFormsPlugin with file input?

2024-07-03 Thread Ulf Dittmer
I want to implement a simple file upload solution for users of a JSPWiki site, and was wondering what the easiest way to go about this might be. The FormInput plugin can create file input elements, but obviously that won't work as the parameters are passed in a Map. Has anyone implemented somethin

Fwd: WikiFormsPlugin with file input?

2024-07-05 Thread Ulf Dittmer
token is present and submitted. My guess is that the form handling by the FileUpload library somehow interferes with CSRF token handling, although I can't imagine how. Can anyone provide some idea of what might be (or might not be) going on? Thanks Ulf ------ Forwarded message -

Re: WikiFormsPlugin with file input?

2024-07-08 Thread Ulf Dittmer
/InfoContent.jsp#L123 > [#4 > <https://github.com/apache/jspwiki/blob/master/jspwiki-war/src/main/webapp/templates/default/InfoContent.jsp#L123[%234>]: > > https://github.com/apache/jspwiki/blob/master/jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp#L47 >

Re: SampleAjaxPlugin problem

2024-07-10 Thread Ulf Dittmer
íguez < juanpablo.san...@gmail.com> wrote: > Hi Ulf, > > That's a bug :-/ Plugin has been unchanged mostly since developed, and the > js should be available right away. Would you mind raising a jira for that? > Or even better, a PR? O:-) > > Best regards, > juan pablo &

Streaming a file?

2024-07-10 Thread Ulf Dittmer
How would I implement to stream a file that is not a page attachment? I'm implementing an image upload and retrieval facility, and need to display a link to an image that is stored on disk. I thought DynamicAttachment might be the way to go, but I can neither get it create the correct link (create

Re: Streaming a file?

2024-07-11 Thread Ulf Dittmer
Yes, writing a servlet that streams a file is easy. But I was looking for a way to do this using JSPWiki's infrastructure - hence my mentioning of DynamicAttachments, even though that seems not to be the right approach due to its non-persisted nature.

displaying wiki properties on a page

2024-08-18 Thread Ulf Dittmer
Hi- https://jspwiki-wiki.apache.org/Wiki.jsp?page=WikiVariable#section-WikiVariable-InsertingJSPWikiProperties mentions that wiki properties can be displayed on a page, but only those "that have been defined by the site maintainer". How would I go about letting specific properties of my installat

Re: displaying wiki properties on a page

2024-08-18 Thread Ulf Dittmer
Never mind, I figured it out :-) On Sun, Aug 18, 2024 at 1:59 PM Ulf Dittmer wrote: > Hi- > > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=WikiVariable#section-WikiVariable-InsertingJSPWikiProperties > mentions that wiki properties can be displayed on a page, but only those &q