Forgot to send to the ml as well yesterday. Pretty much same answer as
David though :-p
---------- Forwarded message ----------
From: Andrea Aime <aaime@anonymised.com>
Date: Fri, Sep 10, 2010 at 4:01 PM
Subject: Re: [Geoserver-devel] SLD XML editor component
To: Markus Schneider <schneider@anonymised.com>
On Fri, Sep 10, 2010 at 2:02 PM, Markus Schneider <schneider@anonymised.com> wrote:
Hello list,
it was great meeting you GeoServer and GeoTools guys at FOSS4G. I think
it was a really nice gathering.
I would like to ask if it would be ok for the deegree project to adapt
your SLD XML editor component from the service adminstration page?
I think so.
We're looking for a generic XML editor component that looks a bit better
than a standard textarea and has syntax highlighting.
Some questions:
- Is this you own development or based on some other OpenSource project?
Yes, it's just using editArea:
http://www.cdolivet.com/index.php?page=editArea
- Does it have any server-side dependencies (besides validation)?
Nope
- How is it licensed?
LGPL, Apache and BSD
- Which module do I need to checkout to get it?
You actually just need to drop that component into the page where you
have the editor
and point it at the text area that contains the SLD. I can show you
the wicket integration
but it's probably going to be trouble than it's worth.
That said I'm unhappy with it, it works rather well on windows but quite poorly
on Linux, to the point that I normally disable syntax highlighting
when editing SLD
there.
I was looking around and this library seems like a better alternative:
http://codemirror.net/
The downside is that it's a less complete solution and some javascript
code should
be implemented to have the same features as edit area (in particular the full
screen one, which is quite handy with longer documents).
If you code something based on codemirror would you point the result at me? :-p
Cheers
Andrea