You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Uwe Schäfer <us...@thomas-daily.de> on 2008/11/02 15:08:16 UTC

JavaScript Framework Dependencies

hi

forgive me, if this topic is a dead horse already, but it really bugs me 
that this does not seem to be sorted out.
i´m just wondering why there isn´t a project like 
org.wicketstuff.javascript.mootools/jquery/extjs/whatever

the story: i was just implementing some mini behaviour using mootools 
when i found, that after packaging it nicely in a seperate project, it 
broke another mootools based behaviour used on a page that combined the two.
no suprise there, as they use different versions of mootools. the 
obvious solution is: ripping the dependency out in a seperate project 
and make both use this one. (assuming backward compatibility is reliable)

so, what do i learn from that? there should be *one single* source for 
mootools-header-contributions that any behaviour implementor is invited 
to use in order to prevent scripts form being loaded more than once on a 
single page (due to coming from different resources) and to give the 
user (or his maven or whatever he uses for dependency resolution) of 
these behaviours a chance of choosing the version.

yes, i know... maintaining could be work, but it is bearable to at least 
have all major versions of the bigger JS toolkits bundled together with 
a simple class defining resources to use those things.

to make it crystal clear: this is just about providing a single access 
point for using these scripts, not wrapping them with wicket components.

bad idea?

cu uwe

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


Re: JavaScript Framework Dependencies

Posted by Uwe Schäfer <us...@thomas-daily.de>.
Sven Meier schrieb:

> this is exactly the reason why we have wicketstuff-prototype:
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-prototype

good to hear that. i´ll look into it

thx uwe

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


Re: JavaScript Framework Dependencies

Posted by Sven Meier <sv...@meiers.net>.
Hi Uwe,

this is exactly the reason why we have wicketstuff-prototype:

    
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-prototype

IMHO we could use something similar for mootools.

Sven

Uwe Schäfer schrieb:
> hi
>
> forgive me, if this topic is a dead horse already, but it really bugs 
> me that this does not seem to be sorted out.
> i´m just wondering why there isn´t a project like 
> org.wicketstuff.javascript.mootools/jquery/extjs/whatever
>
> the story: i was just implementing some mini behaviour using mootools 
> when i found, that after packaging it nicely in a seperate project, it 
> broke another mootools based behaviour used on a page that combined 
> the two.
> no suprise there, as they use different versions of mootools. the 
> obvious solution is: ripping the dependency out in a seperate project 
> and make both use this one. (assuming backward compatibility is reliable)
>
> so, what do i learn from that? there should be *one single* source for 
> mootools-header-contributions that any behaviour implementor is 
> invited to use in order to prevent scripts form being loaded more than 
> once on a single page (due to coming from different resources) and to 
> give the user (or his maven or whatever he uses for dependency 
> resolution) of these behaviours a chance of choosing the version.
>
> yes, i know... maintaining could be work, but it is bearable to at 
> least have all major versions of the bigger JS toolkits bundled 
> together with a simple class defining resources to use those things.
>
> to make it crystal clear: this is just about providing a single access 
> point for using these scripts, not wrapping them with wicket components.
>
> bad idea?
>
> cu uwe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


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


Re: JavaScript Framework Dependencies

Posted by Uwe Schäfer <us...@thomas-daily.de>.
francisco treacy schrieb:

> afaik there are several projects in wicketstuff. at least for
> scriptaculous, jquery and mootools. no idea how good/extense these
> implementations are though.

i saw the contrib-mootools stuff which is pretty great, i´m sure. but it 
contains a bunch of wrapping code for integrating mootools with wicket.

while this is all great, it looks like some kind of work to keep up with 
the mootools lib. this may be the reason for this project still being 
built against 1.1.

don´t get me wrong, i really dont want any effort to be doubled and so 
increase confusion, but what i´d like to do is nothing more than a 
facility to coordinate script inclusion for otherwise totally 
unconnected projects. very near to what sven did on wicketstuff-prototype.

cu uwe

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


Re: JavaScript Framework Dependencies

Posted by francisco treacy <fr...@gmail.com>.
afaik there are several projects in wicketstuff. at least for
scriptaculous, jquery and mootools. no idea how good/extense these
implementations are though.

there is also wickext (code.google.com/p/wickext/ ) for jquery.

francisco

On Sun, Nov 2, 2008 at 8:51 PM, Igor Vaynberg <ig...@gmail.com> wrote:
> On Sun, Nov 2, 2008 at 7:08 AM, Uwe Schäfer <us...@thomas-daily.de> wrote:
>> i´m just wondering why there isn´t a project like
>> org.wicketstuff.javascript.mootools/jquery/extjs/whatever
>
> why? because you havent built it yet. wicketstuff is open for
> participation, feel free.
>
> -igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: JavaScript Framework Dependencies / Wicket Stuff commit access

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Yup, just give an project name and I can setup jira and teamcity if you 
want?

Igor Vaynberg wrote:
> you have svn. nino can set you up with the rest soon.
>
> -igor
>
> On Sun, Nov 2, 2008 at 1:33 PM, Uwe Schäfer <us...@thomas-daily.de> wrote:
>   
>> Igor Vaynberg schrieb:
>>
>>     
>>>> i´m just wondering why there isn´t a project like
>>>> org.wicketstuff.javascript.mootools/jquery/extjs/whatever
>>>>         
>>> why? because you havent built it yet. wicketstuff is open for
>>> participation, feel free.
>>>       
>> the answer i was hoping for ;)
>>
>> i´d like to ask for permission to commit org.wicketstuff.js.mootools project
>> then and maybe some simple behaviours using it afterwards.
>>
>> sourceforge/teamcity/jira acount: "uweschaefer"
>>
>> cu uwe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

-- 
-Wicket for love

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


Re: JavaScript Framework Dependencies / Wicket Stuff commit access

Posted by Igor Vaynberg <ig...@gmail.com>.
you have svn. nino can set you up with the rest soon.

-igor

On Sun, Nov 2, 2008 at 1:33 PM, Uwe Schäfer <us...@thomas-daily.de> wrote:
> Igor Vaynberg schrieb:
>
>>> i´m just wondering why there isn´t a project like
>>> org.wicketstuff.javascript.mootools/jquery/extjs/whatever
>>
>> why? because you havent built it yet. wicketstuff is open for
>> participation, feel free.
>
> the answer i was hoping for ;)
>
> i´d like to ask for permission to commit org.wicketstuff.js.mootools project
> then and maybe some simple behaviours using it afterwards.
>
> sourceforge/teamcity/jira acount: "uweschaefer"
>
> cu uwe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: JavaScript Framework Dependencies / Wicket Stuff commit access

Posted by Uwe Schäfer <us...@thomas-daily.de>.
Igor Vaynberg schrieb:

>> i´m just wondering why there isn´t a project like
>> org.wicketstuff.javascript.mootools/jquery/extjs/whatever
> why? because you havent built it yet. wicketstuff is open for
> participation, feel free.

the answer i was hoping for ;)

i´d like to ask for permission to commit org.wicketstuff.js.mootools 
project then and maybe some simple behaviours using it afterwards.

sourceforge/teamcity/jira acount: "uweschaefer"

cu uwe

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


Re: JavaScript Framework Dependencies

Posted by Igor Vaynberg <ig...@gmail.com>.
On Sun, Nov 2, 2008 at 7:08 AM, Uwe Schäfer <us...@thomas-daily.de> wrote:
> i´m just wondering why there isn´t a project like
> org.wicketstuff.javascript.mootools/jquery/extjs/whatever

why? because you havent built it yet. wicketstuff is open for
participation, feel free.

-igor

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