So Old thread and I didn't give you any report on that :-)

I have started some hacking on redback side.

The technologies/framework, I have used are the following:

* knockout as mvc javascript library (yup data binding is nice :-) )
(http://knockoutjs.com/ MIT license)
* validation with: jquery plugin validation
(http://bassistance.de/jquery-plugins/jquery-plugin-validation/ dual
license MIT and GPL)
* i18n with http://code.google.com/p/jquery-i18n-properties/ (dual MIT
GPL: bascially REST services returns the already existed properties we
have and those i18n are "injected"/"transformed" on jquery template
loading and/or knockout template execution)
* js loader is requirejs (http://requirejs.org/ MIT / new BSD)
* css is twitter boostrap
* for advanced ui (we will probably need jqueryui in some place) a
theme exists in the same spirit as bootstrap
http://taitems.github.com/Aristo-jQuery-UI-Theme/ (MIT or GPL see
sources 
https://github.com/taitems/Aristo-jQuery-UI-Theme/blob/master/css/Aristo/Aristo.css).

The POC is currently in a module called redback-knockoutjs-example in
redback source (the usual mvn tomcat:run works fine).

To handle karma on the ui, an attribute must be added in element which
need roles.
Sample:
<li style="display: none" redback-permissions="{permissions:
['archiva-manage-users']}"><a href="#"
onclick="displayUsersGrid()">User List</a></li>

Currently I tried to make js files shareable for various applications
(btw some will be moved from the example module to an other one called
redback-knockoutjs-integration )
But I'm not really sure to be able to do something shareable as it was
done for struts2 integration.

When I will have finish all the needed screens in redback, I will
probably start a branch in archiva and start working on integrating
this.

All comments/help are welcome :-)

2011/10/27 Emmanuel Venisse <[email protected]>:
> Backbone is good too but doesn't support data-binding that is a very
> important feature to let html/JS very simple
>
> On Wed, Oct 26, 2011 at 6:42 PM, Jean-Baptiste Onofré 
> <[email protected]>wrote:
>
>> A kind of similar is Backbone.js too:
>>
>> http://documentcloud.github.**com/backbone/<http://documentcloud.github.com/backbone/>
>>
>> The rendering of Backbone is interesting and the features are very close
>> knockoutJS.
>>
>>
>> Regards
>> JB
>>
>> On 10/26/2011 03:58 PM, Emmanuel Venisse wrote:
>>
>>> Hi Olivier,
>>>
>>> Do you know knockoutJS?
>>> http://knockoutjs.com/
>>>
>>> It's a good JS framework with data binding, With it it is easy to write UI
>>> with a Model-View pattern and a complete independence between JS and html.
>>>
>>> Emmanuel
>>>
>>> On Wed, Oct 26, 2011 at 2:31 PM, Olivier Lamy<[email protected]>  wrote:
>>>
>>>  Hello Folks,
>>>>
>>>> As now we have most of the archiva services available tru REST, this
>>>> will be more easy.
>>>> My first plan is to write a struts2 theme based on jquery and
>>>> bootstrap css (this theme will be called jqboot).
>>>> The goal is to have a shareable theme (if some folks want to use it in
>>>> their applications)
>>>> Note this means using jquery for various redback stuff (users list
>>>> etc..) and in some part of ui (ajax tabs in artifact info display
>>>> etc....)
>>>>
>>>> Let me know your opinion.
>>>>
>>>> Thanks,
>>>> --
>>>> Olivier Lamy
>>>> Talend : http://talend.com
>>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>>>
>>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> [email protected]
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Reply via email to