Download jQuery with Tapestry 5

Ok, so I'm not a Java guy, but I work with a lot of them. We usually download Prototype with Tapestry 5 since Tapestry was built on this javascript library.

As a UI / front end developer / engineer, I know the awesomeness of jQuery and the lack of a prototype in it. (Feel free to discuss it elsewhere - this ticket does not address this issue, ha).

I was curious for some time if it was possible to port jQuery to Tapestry instead of Prototype - as if Prototype and Scriptaculous were completely removed - I understand that this seems to hit the purpose of the already connected Prototype, but I wanted different opinions on this.

Thanks.

UPDATE:

We had an inventor of Tapestry who visited us @, and he discussed the apparent need for agnostic disabling of the library type in future versions of Tapestry. This means that hypothetically it is possible to combine jQuery or Prototype with Tapestry, or, possibly, in another library.

To win!

+4
source share
2 answers

Yes, it is quite.

There is an open problem in integrating this into the kernel: https://issues.apache.org/jira/browse/TAP5-486 .

The problem is to stick to the compatibility parts of the back of the T5. You do not need to worry about this for your individual project.

To do this, one of your Java people will need to create an IoC service that captures the rendering of the prototype and replaces it with jQuery. I have no code in front of me, so some research should be done by everyone.

The short answer is yes, it may just take some time to invest.

+3
source

Here's the tapestry-jquery project on github.

I have not tried it yet, but it looks promising and should do exactly what you are asking for.

+5
source

Source: https://habr.com/ru/post/1309136/


All Articles