To add jQuery (or any other javascript library) to a Vaadin 7 application, follow these easy steps:
-
Create a Vaadin project either using your favorite IDE or the vaadin maven archetype (or both). Create a new class that extends from
VaadinServlet
, and override theservletInitialized
method: -
Add the reference to the servlet in your
web.xml
or annotate the class with the@WebServlet
annotation. -
Create your jQuery snippet and invoke it using the
JavaScript
class, for example:
that's very useful
ReplyDeletethanks!!
ReplyDeletethanks, it helped a lot...
ReplyDeleteyou can also use the @Stylesheet and @Javascript annotations. its much simpler.
ReplyDelete@StyleSheet({
/*
* JQuery UI
*/
"vaadin://jquery/jquery-ui-1.9.2.custom/css/ui-darkness/jquery-ui-1.9.2.custom.min.css",
})
@JavaScript({
/*
* JQuery
*/
"vaadin://jquery/jquery-1.11.1.min.js",
/*
* JQuery UI
*/
"vaadin://jquery/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js",
})
public class MyUI extends UI {
...
}
great
ReplyDeleteIt is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me..Best Devops Training in pune
ReplyDeleteMicrosoft azure training in Bangalore
Power bi training in Chennai
.
This comment has been removed by the author.
ReplyDeleteI am really impressed with your efforts and really pleased to visit this post.
ReplyDeletePython Online certification training
python Training institute in Chennai
Python training institute in Bangalore
It is amazing and wonderful to visit your site.Thanks for sharing this information..
ReplyDeletejava training in chennai
java training in omr
aws training in chennai
aws training in omr
python training in chennai
python training in omr
selenium training in chennai
selenium training in omr
Thanks for sharing great information. I like your article about geek office dog.
ReplyDeletesap training in chennai
sap training in tambaram
azure training in chennai
azure training in tambaram
cyber security course in chennai
cyber security course in tambaram
ethical hacking course in chennai
ethical hacking course in tambaram
ReplyDeleteIt is amazing and wonderful to visit your site.Thanks for sharing this information
oracle training in chennai
oracle training in annanagar
oracle dba training in chennai
oracle dba training in annanagar
ccna training in chennai
ccna training in annanagar
seo training in chennai
seo training in annanagar
Good Post! it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article, I want to say that also a well-written article with some very good information which is very useful for the AWS Cloud Practitioner Online Training
ReplyDeleteThis is most informative and also this post most user-friendly and super navigation to all posts.
ReplyDeleteScan to BIM in Minnesota
Dimension Control Services in Birmingham
Plant Engineering Services in Bayern Germany
Reverse Engineering Services in Bayern Germany