On Nov 28, 2007 10:35 AM, farside <[EMAIL PROTECTED]> wrote:
>
> I'm not a guru in javascript or in wicket.. So I'm not sure how a
> javascript
> framework(dojo, jquery, yui, etc) should be integrated into a wicket
> application. As I understand there two ways:
> 1) intimate integration, for example,
> http://wicketstuff.org/jira/browse/DOJO - there you can develope animation
> in wicket(java) code. It is very easy-to-use in development. But
> wicket-dojo
> integration use old dojo library version(0.4) though dojo community
> released
> 1.0.1 version. I suppose that it is difficult to support such
> integrations..


In subversion they support much newer versions. The 0.4 dojo version is
wicket 1.1 based iirc. Not only in Dojo land things have changed since
then... Using snapshot versions for wicketstuff dojo will give you 0.9 or
1.0 (iirc)

This option is best used when you have Java developers that don't want to
get into Javascript and use the tight integration from inside their server
side view.

2) surface integration - using own javascript code, java code(json) to bind
> js framework and wicket. It is difficult to develope in such way. But you
> are not strongly coupled to javascript library version.


Not perse... if you include the library in a base page, then you can use it
as if it is omnipresent. This way you can create behaviors that create
widgets on the client side, or animate or ... The difference is that you
couple your java code implicitly to the javascript library.

This is probably better for teams with web developers, or when you have a
complex page where a lot of client side processing takes place.

How javascript library should be integrated into wicket application?


You gave the two basic options. Either works and suits different teams. It
is a matter of preference, and whether you want to use the latest and
greatest.

Please left your opinion there.


Where? :)

Best,

Martijn

-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/

Reply via email to