You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by farside <el...@gmail.com> on 2007/11/28 10:35:48 UTC

Javascript framework integration: intimate integr. OR json etc.

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.. 
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. 

How javascript library should be integrated into wicket application?
Please left your opinion there.

-- 
View this message in context: http://www.nabble.com/Javascript-framework-integration%3A-intimate-integr.-OR-json-etc.-tf4887350.html#a13988919
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Javascript framework integration: intimate integr. OR json etc.

Posted by Martijn Dashorst <ma...@gmail.com>.
Also, for wicket-1.3 integration of javascript libraries, check out
wicketstuff minis. Several mini libraries are included there.
Martijn

On Nov 28, 2007 10:35 AM, farside <el...@gmail.com> 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..
> 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.
>
> How javascript library should be integrated into wicket application?
> Please left your opinion there.
>
> --
> View this message in context:
> http://www.nabble.com/Javascript-framework-integration%3A-intimate-integr.-OR-json-etc.-tf4887350.html#a13988919
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
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/

Re: Javascript framework integration: intimate integr. OR json etc.

Posted by Martijn Dashorst <ma...@gmail.com>.
On Nov 28, 2007 10:48 AM, Martijn Dashorst <ma...@gmail.com>
wrote:

> 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)
>

Strike that... I just read in another thread that you are correct: dojo is
only supported for 0.4. This is why I don't like dojo: they have reworked
their complete API about 3-4 times in two years.

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/

Re: Javascript framework integration: intimate integr. OR json etc.

Posted by Martijn Dashorst <ma...@gmail.com>.
On Nov 28, 2007 10:35 AM, farside <el...@gmail.com> 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/

Re: Javascript framework integration: intimate integr. OR json etc.

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.

farside 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.. 
>   
No I dont think thats a problem, but as all of the wicketstuff (AFAIK) 
are opensource authors may not have the time required to maintain the 
project in the same pace as the integrated JS.
> 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. 
>
>   
Havent checked this out...
> How javascript library should be integrated into wicket application?
> Please left your opinion there.
>
>   
You could also see how datepicker or wicket input events are doing their 
integrations...

regards Nino

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org