java - Loading jQuery with Tapestry 5 - Stack Overflow

Okay, so I'm not a Java guy, but I work with loads of them.We generally load Prototype with Tape

Okay, so I'm not a Java guy, but I work with loads of them. We generally load Prototype with Tapestry 5, as Tapestry was built on this javascript library.

As a UI/front end developer/engineer, I know the awesomeness of jQuery and the lack of prototype therein. (Feel free to debate that elsewhere -- this ticket doesn't concern that question, ha.)

I've been curious for some time if it's possible to port jQuery into Tapestry instead of Prototype -- as in pletely removing Prototype and Scriptaculous -- I realize it kind of defeats the purpose of the already bundled Prototype, but I wanted other opinions on the matter.

Thanks.

UPDATE:

We had the inventor of Tapestry visit us @ work and he discussed the explicit need for an agnostic disconnect of type of library in future versions of Tapestry. This means, hypothetically, one could bundle jQuery or Prototype with Tapestry, or possibly some other library.

For the win!

Okay, so I'm not a Java guy, but I work with loads of them. We generally load Prototype with Tapestry 5, as Tapestry was built on this javascript library.

As a UI/front end developer/engineer, I know the awesomeness of jQuery and the lack of prototype therein. (Feel free to debate that elsewhere -- this ticket doesn't concern that question, ha.)

I've been curious for some time if it's possible to port jQuery into Tapestry instead of Prototype -- as in pletely removing Prototype and Scriptaculous -- I realize it kind of defeats the purpose of the already bundled Prototype, but I wanted other opinions on the matter.

Thanks.

UPDATE:

We had the inventor of Tapestry visit us @ work and he discussed the explicit need for an agnostic disconnect of type of library in future versions of Tapestry. This means, hypothetically, one could bundle jQuery or Prototype with Tapestry, or possibly some other library.

For the win!

Share Improve this question edited Dec 29, 2011 at 14:21 Rob W 349k87 gold badges807 silver badges682 bronze badges asked May 7, 2010 at 17:35 arxpoeticaarxpoetica 5,1013 gold badges34 silver badges35 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

There's a tapestry-jquery project on github.

I haven't tried it yet but it looks promising and is supposed to do exactly what you're asking for.

Yes, quite.

There is an open issue in integrate this into the core: https://issues.apache/jira/browse/TAP5-486.

The problem is to adhere to the back patibility pieces of T5. You would not need to worry about that for your single project.

To do so, one of your Java peoples will need to create an IoC Service which grabs the Prototype rendering and replaces it with jQuery. I do not have the code in front of me, so some research will need to be had by all.

Short answer, yes, it is possible just needs some time investment.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744723366a4590043.html

相关推荐

  • java - Loading jQuery with Tapestry 5 - Stack Overflow

    Okay, so I'm not a Java guy, but I work with loads of them.We generally load Prototype with Tape

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信