Murray, Thanks for the advice, I will take it to heart.
Do we know anything about when 3.0 (or even 2.7) will be released? -- Bobman On Wed, Jul 23, 2008 at 9:16 AM, Murray Altheim <[EMAIL PROTECTED]> wrote: > Bob Paige wrote: > >> I have a prototype of my metadata proposal implemented, and have run into >> a >> snag. >> >> My (erroneous) assumption was that by implementing preSave and >> preTranslate >> filters I could encode the metadata without the user knowing. This is >> certainly true for the scenario where the user enters some metadata, saves >> the page, and views it. Unfortunately, the preTranslate filter is not >> called >> prior to an edit so when the user edits a page after saving it they will >> see >> the encoded metadata. I can write the encoding logic (in the preSave) >> filter >> to handle this situation, but it is still messy in that the user is now >> aware of my 'fiddling' behind the scenes. >> >> I don't suppose there is some other mechanism that would allow me to >> decode >> prior to an edit? Could I extend WikiEngine or PageManager to behave the >> way >> I want, and insert my own instance into the server? >> > > Bob, > > It sounds like you are trying to retrofit a record/page metadata > scheme on top of a very difficult edifice. As someone who's played > a lot with plugins and filters they work very well for what they > were intended for, but it's difficult to create certain kinds of > functionality. I wrote a plugin that permitted a declaration of a > name-value pair, then also wrote that as a page-level metadata, > and it works passably, but with 3.0 coming up I've given up on it. > > I've had a basic task of reformulating the metadata handling of > JSPWiki 3.0 since by that time our entire backend will be JSR-170 > compliant. Janne has worked up a prototype that I've not had much > of a chance to test. I don't have any time right now to go through > the archives but you can search on priha, JSR-170, JackRabbit and/or > metadata and you should be able to find stuff. > > I think extending one of the larger objects in the JSPWiki pantheon > is really asking for trouble, if you wanted any advice on that matter... > > Murray > > ........................................................................... > Murray Altheim <murray07 at altheim.com> === = > = > http://www.altheim.com/murray/ = = > === > SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = > > Boundless wind and moon - the eye within eyes, > Inexhaustible heaven and earth - the light beyond light, > The willow dark, the flower bright - ten thousand houses, > Knock at any door - there's one who will respond. > -- The Blue Cliff Record >
