[Yanel-dev] Editing XML files

Michael Wechner michael.wechner at wyona.com
Fri Apr 3 11:23:58 EDT 2015


Hi Simon

I have figured out now that one can also use the query string parameter
"edit-path" and also
to set an access policy for the file to edit and using a "write" usecase.

But now the next step would be I guess to use a jelly to generate a
view, but there does not seem to
be a jelly or XSLT part of the resource. How do you generate the view?

Could you provide a resource config example and also the jelly or XSLT
accordingly?

Thanks

Michael

Am 03.04.15 um 14:33 schrieb Michael Wechner:
> Hi Simon
>
> Do you intend to use and improve jquery.xmleditor?
>
> I would be happy to help improve it. At the moment I am struggling a bit
> to set the editPath, because the matcher-extension property is not
> really documented and I get the following WARNING
>
> 97162 2015-04-03 14:26:35,187 +0200 [http-bio-8443-exec-1] WARN 
> com.litwan.yanel.impl.resources.jqueryxmleditor.JqueryXmleditorResource.init():85
> [] {id=127.0.0.1_9E3C} - Could not get Resource Configuration Property
> 'matcher-extension'. Fallback to previous version ...
>
> Can you give me an example of a matcher-extension?
>
> Shall I do  a pull request with my changes or could you give me write
> access to the source of this resource?
>
> Thanks
>
> Michael
>
> Am 03.04.15 um 12:05 schrieb simon:
>> Hi Michael
>>
>> Sorry Michael you just found one of the resource-types which is more a
>> sketch. don't think this resource-type is working. i just started it.
>> I'm certainly glad if you work on it.
>> Some of the resource-types in my repo are more developed and some not.
>>
>> I'm really looking forward to find a solution for the missing link
>> between GUI and java. I'm really happy with Jaxb. But i hate to make
>> forms and usecases to make a CRUD GUI. The jquery.xmleditor was one of
>> the more promising tools which could help to avoid implementing form
>> based usecased.
>>
>> There is also a textedit resource-type based on
>> https://codemirror.net/ which you can configure to edit XML. But it is
>> more a texteditor with highlighting but it's able to autocomplete XML
>> see: https://codemirror.net/demo/xmlcomplete.html
>> But one probably needs to update the codemirror version. i did this
>> when version 0.91 was current and now it's 5.1
>>
>> About the check in of the binary, this was accidental.
>>
>> Cheers
>> Simon
>>> Hi Simon
>>>
>>> I have just added the jquery.xmleditor to Yanel and built the resource
>>> and after doing so realized that your git already contains the binaries
>>>
>>>      modified:
>>> build/classes/com/litwan/yanel/impl/resources/jqueryxmleditor/JqueryXmleditorResource.class
>>>
>>>      modified:  
>>> build/lib/yanel-resource-jquery.xmleditor-0.0.1-dev-rXXX.jar
>>>
>>> I am not sure whether you intended to do so, but it might be better to
>>> remove the build directory from git, unless
>>> you want to provide the resource as package, such that one does not have
>>> to build it.
>>>
>>> I will try to use now your resource :-)
>>>
>>> Thanks
>>>
>>> Michael
>>>
>>> Am 03.04.15 um 00:01 schrieb Michael Wechner:
>>>> Hi Simon
>>>>
>>>> IIUC the following resource allows to edit XML files
>>>>
>>>> https://github.com/teil3/3k3-yanel-contributions/tree/master/resource-types/jquery.xmleditor
>>>>
>>>>
>>>> right?
>>>>
>>>> Or would you suggest some other resource to edit XML files?
>>>>
>>>> Thanks
>>>>
>>>> Michael
>>



More information about the Yanel-development mailing list