Ludovic,
Thanks for your enthusiastic (and quick!) response. It's certainly a
start, though it will only work for XWiki's documentation. That's okay,
if it turns out to be quicker and easier to drive it from the XWiki
database; solving the immediate problem is the most important for the
moment.
But it would be much more generally useful if you could just point a
template at any arbitrary javadoc site, with a CVS or other source link
optional, and at each place where javadoc comments would be displayed by
the standard doclet, insert an HTML element that included the wiki
document, if it existed, or a create link if it didn't. Simple style
options could let the user choose whether to append or overlay the wiki
page on existing comments, or (possibly) even to embed them,
highlighted. In this way, the hand-copying of the original javadoc
comments would be unnecessary, and it might even provide a nice easy
means for the owners of the sources to retrofit the better ones into the
repository.
Whichever way is easier (and/or faster) to do it for Xwiki will be the
best for now; I was just wondering if it would be any harder to craft
the more general solution, and you might get more helpers than for
something that only works for one set of APIs.
BTW, I have this problem often, as do all the males in my family:
because my surname, Thomas, is also a very common first name (probably
more so than as a surname), I'm often referred to by it, or by "Tom".
No offense taken, of course; I have corrected it, and made what I
thought would be a link to my profile page, but the create link appeared
instead. Does xwiki.org not automatically create a profile page for
every user? I followed it to get a permission-denied page, so maybe I
just can't edit it, but my name appears as a normal link in the "Hello"
section. I thought that if a page existed, the create link wouldn't
appear...
brain[sic]
Claudio:
Thanks for that link! Jsourcery also has something similar, but I think
that their approach uses a custom version of javadoc, which is, I think,
where doclets come in. This would only work, again, where you actually
had access to a source archive, and I think they actually generate and
store their pages.
Another interesting facet is the ability to link to other javadoc sites;
XWiki's API javadoc doesn't link classes from externally packages, which
is not a major problem, but a small one. If an undefined reference came
up, the ability to point to its home would be helpful.
It may be that just using Jdocs would be faster, since they already have
a solution; what do you think? It's not really what I'd like to see,
which would be an almost-transparent pasting of user-edited content as
though it were in the original sources. But this is worlds better than
nothing.
Another idea would use the JDOM API, which could be used in a very
robust server-side solution that could do all that I've thought of here
and probably things I've never even dreamed of.
brain[sic]
-----Original Message-----
From: Claudio Miranda [mailto:claudio@claudius.com.br]
Sent: Thursday, March 16, 2006 11:53 AM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] IDEA: API Documentation wiki
Probably JDocs, already to the job of make comments on javadocs.
check it out: http://www.jdocs.com
[]s
Claudio
Hi Yoav
Thanks a lot for your hint.
As far as i have seen the problems stated on the sun-website are concerning
Old kernels or older glibc
We use
Kernel: 2.6.9-11.ELsmp
glibc: 2.3.4
Though the following link seems to me heading into a similiar direction:
http://forum.java.sun.com/thread.jspa?threadID=643360&start=0&tstart=0
regards
-----Original Message-----
From: Yoav Shapira [mailto:yoavs@computer.org]
Sent: Mittwoch, 15. März 2006 14:47
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Hs_err_pid XWiki 0.9.840 + tomcat 5.5.9 + vm1.5.0_06
Hola,
As someone with Tomcat (though not XWiki) experience, 99% of the time these SIGSEGV faults result from a problem with the JVM installation missing required OS patches. Start at http://java.sun.com/j2se/1.5.0/install.html, pick the edition you're installing, and click on the Linux Notes link from the resulting page for required patch levels for things like glibc. I hope that helps,
Yoav
On 3/15/06, jeremi joslin <jeremi23(a)gmail.com> wrote:
> On 3/15/06, Leonard Lin <leonard.lin(a)unic.com> wrote:
> > Hi
> >
> > Are you running xwiki.com on a virtualized system such as VMWare?
> > One of our programmers suggested, that it might have something to do
> > with VMWare (in our case) because of the SIGSEGV issued, Pointing to
> > either errornous implementation in javaVM or failing Hardware.
>
> No, xwiki.com is running on 3 real computers under Debian Sarge.
> For the rest, i don't know.
>
> Jeremi
> --
> Blog: http://www.jeremi.info
> LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
> Project Manager XWiki: http://www.xwiki.org
> skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>
>
>
--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs(a)computer.org / www.yoavshapira.com
Whenever i try to register a new user the following message keeps popping up:
"An error occured during the registration process (-1)."
I can't seem to fix this, but i searched the archive and found that someone had the same thing previously, but there was no fix in the thread.
Anyone can shed some light on this?
Dear All,
We use login IDs that are not very meaningful. I'd like to create a
page that lists the login ID and real name of each member by group to
help with administration. I can see how to get the groups, for example:
#set($sqlGrp = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='XWiki.XWikiGroups'")
#foreach ($item in $xwiki.searchDocuments($sqlGrp))
#set($itemdoc = $xwiki.getDocument($item))
Group: $itemdoc.name <br/>
#end
How do I access the members for a given group?
Thanks, John
---
John Turner
NDSD Development (Dialog IT)
Email: John.Turner.2(a)team.telstra.com
Ph: (07) 3887 4574
An enhancement that I made to the default Main.AllDocs page illustrates
how to do what you ask, which is to modify the sorting order of items.
It's done by composing a modification to the SQL string passed to
xwiki.searchDocuments(). There is, to the best of my knowledge, no
documentation on how exactly this string affects the database query
inside the search, but generally it looks like it gets parsed into
clauses that are inserted and/or merged into the default query at
syntactically appropriate places. In your case, a simple "order by"
clause would appear to be all that's needed, and of course if the status
field doesn't sort in the order you want it to appear in, you have to
give them sequence numbers or something similar.
The "order by" field is passed to the doc by a parameter named "ordby",
and the page provides links that invoke it with popular values.
By the way, I do have a project management page that does something very
similar, with a table of projects containing links to plan documents and
status, priority and other fields, plus a link to a status page that
sucks journal entries from the plan docs, displaying the same table but
with internal links to the latest journal entries for that project.
I've been intending to add the ordering feature to it, but since it's in
the bells-and-whistles category from my boss's point of view, I haven't
got to that. Of course, you are probably not doing the
xwiki.searchDocuments (although that's certainly one way of doing it),
but I believe there's a similar facility in the doc.getObjects method.
----------------------------------------------------------
#set ($ordby = $request.getParameter("ordby")) ##
#if (!$ordby)
#set ($ordby = "doc.web, doc.name")
#end
#set ($sql = "$where order by $ordby")
1 All Documents of this Wiki
Order by:
[Document Name>$doc.fullName?ordby=doc.web,doc.name]
[Creator>$doc.fullName?ordby=doc.creator]
[Last Author>$doc.fullName?ordby=doc.author]
[Date>$doc.fullName?ordby=doc.date desc]
#foreach ($item in $xwiki.searchDocuments($sql))
## display each item, keeping track of the status and displaying it
when it's different
#end
------------------------------------------------------------
brain[sic]
-----Original Message-----
From: jjanssen(a)nl.swets.com [mailto:jjanssen@nl.swets.com]
Sent: Tuesday, March 14, 2006 12:14 AM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Sorted object list
Hello,
I've got a generic question. In my wiki I'm using many sorted lists. But
there must be a smarter way of creating these lists then what I'm doing
now. Currently I'm doing the following:
Form 1 used to fill out object of type Project, with several attributes
such as the project name and status. On a overview page I want to order
the projects by name based on their status. This will create something
like:
- active:
- project1
- project4
- closed:
- project2
- project5
- deprecated:
- project3
In which all the projects are links to the pages of the projects,
containing all the project information.
Has anybody any idea of a smart way of doing this. Currently I'm looping
through all project objects for every possible status. This is way too
much overhead.
Thanks,
Joep