Errai: The browser as a platform

Thursday, November 10, 2016

Errai 4.0.0.Beta4 released!

Greetings!

Errai 4.0.0.Beta4 is now available. This release contains mostly bug fixes, but here are some noteworthy changes:
  • Upgrade GWT to 2.8.0 and Guava to 20.0
  • The Errai Tutorial now showcases Errai's JS interop integration

Errai Tutorial Enhancments

A major vision of Errai 4 has been more support for working directly with the DOM and more support for using JS interop. With this latest round of enhancements, the Errai Tutorial now showcases this vision and below I'll highlight some of the major features in action.

UI Components without GWT Widgets

The Errai Tutorial now showcases UI components built without any GWT widgets [1] [2]. These components are built with Errai templating using JS interop wrappers for interacting with the DOM; Element wrappers are used in place of GWT widgets and DOM events in place of GWT widget events.

One big advantage of this approach is that the markup of these UI components at runtime is exactly the same as the template HTML. Because GWT widgets are often implemented with multiple tags and custom CSS classes, using widgets as @DataFields can result in UI components rendering differently than their templates render when viewed outside the application.

Custom JS Interop Wrappers for DOM Elements and Web Components

The Errai Tutorial demonstrates how you can integrate web components with your Errai app, and how you can write your own custom element wrappers with specialized data-binding behaviour.

The tutorial now uses the Polymer paper-input and paper-textarea web components as part of a @Templated form. These components can be injected and used as @DataFields (as they are here). By using Errai's new HasValue interface for native @JsTypes with the @JsProperty annotation, these wrappers declaratively instruct Errai to use the "value" property of the paper elements for data-binding.

The tutorial also includes custom anchor element wrappers that showcase more complex data-binding behaviour. The BindableEmailAnchor is a wrapper for an anchor element that uses HasValue and @JsOverlay so that @Bound instances will display an email address as a mailto link as well as in the anchor text content.

Since the @JsOverlay method implementation is the only code generated by the GWT-compiler for a native @JsType, this is a light-weight way to declare element interfaces with custom data-binding behaviour.

Uses JQuery to Demonstrate Third-Party JavaScript Integration

The Errai Tutorial has a wrapper for a small subset of JQuery to showcase third-party JavaScript integration. With only a single @Produces annotation added to the JQuery wrapper, it is possible to inject the JQuery function for use in GWT code.

In general, we on the Errai team believe that using dependency injection is a best practice, but this is especially important with native JavaScript objects. By injecting the JQuery function rather than accessing it through a static method, it is much easier to mock out that object and test the code using it in a Java SE environment.

Try It Out and Give Us Your Feedback

We encourage you all to check out Errai 4.0.0.Beta4 and our new tutorial and share with us your feedback, whether that feedback is bug reports to our JIRA page, or more general disucssion in our forum.

Until the next time, happy coding!

14 comments:

  1. your articles following all these tips for a web dev

    ReplyDelete
    Replies
    1. i am ERIC BRUNT by name. Greetings to every one that is reading this testimony. I have been rejected by my wife after three(3) years of marriage just because another Man had a spell on her and she left me and the kid to suffer. one day when i was reading through the web, i saw a post on how this spell caster on this address AKHERETEMPLE@gmail.com have help a woman to get back her husband and i gave him a reply to his address and he told me that a man had a spell on my wife and he told me that he will help me and after 3 days that i will have my wife back. i believed him and today i am glad to let you all know that this spell caster have the power to bring lovers back. because i am now happy with my wife. Thanks for helping me Dr Akhere contact him on email: AKHERETEMPLE@gmail.com
      or
      call/whatsapp:+2349057261346




      i am ERIC BRUNT by name. Greetings to every one that is reading this testimony. I have been rejected by my wife after three(3) years of marriage just because another Man had a spell on her and she left me and the kid to suffer. one day when i was reading through the web, i saw a post on how this spell caster on this address AKHERETEMPLE@gmail.com have help a woman to get back her husband and i gave him a reply to his address and he told me that a man had a spell on my wife and he told me that he will help me and after 3 days that i will have my wife back. i believed him and today i am glad to let you all know that this spell caster have the power to bring lovers back. because i am now happy with my wife. Thanks for helping me Dr Akhere contact him on email: AKHERETEMPLE@gmail.com
      or
      call/whatsapp:+2349057261346

      Delete
    2. WITH THE HELP OF  DR PERFECT ENLARGEMENT CREAM MY PENIS GROW  FROM 3 INCHES TO 9 INCHES YOU CAN ON EMAIL AT SOLUTIONTOALLPROBLEMS1@GMAIL.COM

      Hello everyone I have to give my testimony about a herbal doctor called Dr Perfect. I was heartbroken because I had a very small penis not good enough to satisfy a woman, I have been in so many relationships but they were cut off because of my situation, I have used so many products prescribed by the doctor but none could render me the help I was looking for, so I decided to search online for solution and I saw a lot of comments about this specialist called Dr Perfect on how he helped people with small penis, cancer and others so I decided to give his herbal product a try, I messaged him on WhatsApp and replied me back, he gave me some comforting words we talked on how i can receive the product and he sent me his herbal product for penis enlargement, within 1 week of using it I began to feel the enlargement of my penis, now it just two weeks of me using his products my penis is about 9 inches longer, and I settle things with my girlfriend I was surprised when she said that she is satisfied with my performance in bed and am happy that i have a big penis now all thanks to Dr Perfect feel free to contact Dr Perfect at solutiontoallproblems1@gmail.com or WhatsApp him +1(256)251-3614 and get your enlargement cream 






      WITH THE HELP OF  DR PERFECT ENLARGEMENT CREAM MY PENIS GROW  FROM 3 INCHES TO 9 INCHES YOU CAN ON EMAIL AT SOLUTIONTOALLPROBLEMS1@GMAIL.COM

      Hello everyone I have to give my testimony about a herbal doctor called Dr Perfect. I was heartbroken because I had a very small penis not good enough to satisfy a woman, I have been in so many relationships but they were cut off because of my situation, I have used so many products prescribed by the doctor but none could render me the help I was looking for, so I decided to search online for solution and I saw a lot of comments about this specialist called Dr Perfect on how he helped people with small penis, cancer and others so I decided to give his herbal product a try, I messaged him on WhatsApp and replied me back, he gave me some comforting words we talked on how i can receive the product and he sent me his herbal product for penis enlargement, within 1 week of using it I began to feel the enlargement of my penis, now it just two weeks of me using his products my penis is about 9 inches longer, and I settle things with my girlfriend I was surprised when she said that she is satisfied with my performance in bed and am happy that i have a big penis now all thanks to Dr Perfect feel free to contact Dr Perfect at solutiontoallproblems1@gmail.com or WhatsApp him +1(256)251-3614 and get your enlargement cream 

      Delete
    3. Hello viewer’s
      I don’t have much to say there are so may scammers going on online so we cant detect the real herbal medicine doctors. Thank GOD for leading me, please don’t ignore this post is real Dr Emmanuel, is a real herbal Doctor, he cured me from Herpes virus, i am living so happy and free , i was fully recovered within 4 weeks of usage of dr Emmanuel herbal medicine ,please viewers out there that have any deadly disease don't fail to contact him via his email; nativehealthclinic@gmail.com or WhatsApp/Call: +2348140073965  thanks once again to dr Emmanuel GOD bless you abundantly  
      he also cured HIV/AIDS,CANCER,GENITAL WART,COPD,BRAIN TUMOR

      Delete
  2. Looks good, thanks for sharing! Thanks for writing such great texts.
    organic noni

    ReplyDelete
  3. Useful article, thank you for sharing the article!!!

    Website bloggiaidap247.com và website blogcothebanchuabiet.com giúp bạn giải đáp mọi thắc mắc.

    ReplyDelete
  4. i am ERIC BRUNT by name. Greetings to every one that is reading this testimony. I have been rejected by my wife after three(3) years of marriage just because another Man had a spell on her and she left me and the kid to suffer. one day when i was reading through the web, i saw a post on how this spell caster on this address AKHERETEMPLE@gmail.com have help a woman to get back her husband and i gave him a reply to his address and he told me that a man had a spell on my wife and he told me that he will help me and after 3 days that i will have my wife back. i believed him and today i am glad to let you all know that this spell caster have the power to bring lovers back. because i am now happy with my wife. Thanks for helping me Dr Akhere contact him on email: AKHERETEMPLE@gmail.com
    or
    call/whatsapp:+2349057261346




    i am ERIC BRUNT by name. Greetings to every one that is reading this testimony. I have been rejected by my wife after three(3) years of marriage just because another Man had a spell on her and she left me and the kid to suffer. one day when i was reading through the web, i saw a post on how this spell caster on this address AKHERETEMPLE@gmail.com have help a woman to get back her husband and i gave him a reply to his address and he told me that a man had a spell on my wife and he told me that he will help me and after 3 days that i will have my wife back. i believed him and today i am glad to let you all know that this spell caster have the power to bring lovers back. because i am now happy with my wife. Thanks for helping me Dr Akhere contact him on email: AKHERETEMPLE@gmail.com
    or
    call/whatsapp:+2349057261346

    ReplyDelete
  5. WITH THE HELP OF  DR PERFECT ENLARGEMENT CREAM MY PENIS GROW  FROM 3 INCHES TO 9 INCHES YOU CAN ON EMAIL AT SOLUTIONTOALLPROBLEMS1@GMAIL.COM

    Hello everyone I have to give my testimony about a herbal doctor called Dr Perfect. I was heartbroken because I had a very small penis not good enough to satisfy a woman, I have been in so many relationships but they were cut off because of my situation, I have used so many products prescribed by the doctor but none could render me the help I was looking for, so I decided to search online for solution and I saw a lot of comments about this specialist called Dr Perfect on how he helped people with small penis, cancer and others so I decided to give his herbal product a try, I messaged him on WhatsApp and replied me back, he gave me some comforting words we talked on how i can receive the product and he sent me his herbal product for penis enlargement, within 1 week of using it I began to feel the enlargement of my penis, now it just two weeks of me using his products my penis is about 9 inches longer, and I settle things with my girlfriend I was surprised when she said that she is satisfied with my performance in bed and am happy that i have a big penis now all thanks to Dr Perfect feel free to contact Dr Perfect at solutiontoallproblems1@gmail.com or WhatsApp him +1(256)251-3614 and get your enlargement cream 

    ReplyDelete
  6. I'm so excited my broken Marriage has been restored my ex husband is back after he left me and our 2kids for another woman. i was so happy to met Dr. OKu how he help many people to bring there Lover back so i contact him to help me too. that was how Dr. Oku help me to bring my husband back.. A big thank to you Dr. Oku because I never thought my ex Husband will be back to me so quickly with your spell. You are the best and world greatest. if you are here and you need your Ex Lover back or your husband moved to another woman, do not cry anymore, contact this powerful spell caster now. Here’s his contact:
    Email him at: okutemple@gmail.com You can also Call/WhatsApp:+2347053113465

    ReplyDelete
  7. I'm so excited my broken Marriage has been restored my ex husband is back after he left me and our 2kids for another woman. i was so happy to met Dr. OKu how he help many people to bring there Lover back so i contact him to help me too. that was how Dr. Oku help me to bring my husband back.. A big thank to you Dr. Oku because I never thought my ex Husband will be back to me so quickly with your spell. You are the best and world greatest. if you are here and you need your Ex Lover back or your husband moved to another woman, do not cry anymore, contact this powerful spell caster now. Here’s his contact:
    Email him at: okutemple@gmail.com You can also Call/WhatsApp:+2347053113465

    ReplyDelete
  8. HOW DR PERFECT ENLARGEMENT CREAM HELP ME TO ENLARGE MY PENIS YOU CAN ADD HIM UP ON WHATSAPP +1(256) 251 3614

    My name is David Richardson from USA I want to share a testimony of how Dr Perfect herbal mixture cream saved me from shame and disgrace, my penis was a big problem to me as the size was really so embarrassing and I was also having weak erection problem. I can't make love to my wife and my penis was just too small, a full grown man like me having 3 inches penis and to worsen it I don't last long in sex I can't even last four minutes it was really a big shame to me. My wife was really tired of me because my sex life was very poor, she never enjoyed sex, I was always thinking and searching for solutions everywhere until when I saw a testimony of how Dr Perfect herbal mixture cream have been helping people regarding their sex life, so I decided to give him a try and to my greatest surprise in less than one week of taking the herbs my penis grow to 10 inches I couldn't believe my eyes and as I speak now my penis is now 10 inches long and I don't have weak erection anymore. I can make love to my wife longer in bed. And my marriage is now stable my wife is now enjoy me very well in bed. All thanks to Dr Perfect for enlarging my penis he indeed save my marriage. You can contact him at solutiontoallproblems1@gmail.com or you can add him up on WhatsApp +1(256) 251 3614. you can also view my blog http://davidrichardson12356.over-blog.com. He also specializes in the following things
    Herpes virus
    Cancer
    Hsv
    Chronic venous disease
    and others 

    ReplyDelete
  9. I'm very happy being Herpes free now. It was a sad incident that was announced to me after the check up in the hospital and I was diagnosed of HSV 2. I thank God now for using Dr.odey Abang to cure my virus. I'm not ashamed to say this because no virus of such can be detected in me. I'm Charlotte from Columbia. I thought about it many Times when I heard about this Herbal cures for Herpes. I was really happy when I came across blogs of comments of Doctors who run cures sicknesses and was comfortable to try Dr. Abang from patients testimony I came across here on my online page. I knew now they are real Africa herbalists who run cures for Herpes. There's every opportunity to be cure with natural herbs, because all medical prescriptions are derived from herbs and roots. Its really hard time living with Herpes on drugs which can't get you cure. I tried this and I can boost of myself now as a woman. I need to be loved not to lost, get your instant cure to all sicknesses from Dr, Odey Abang.
    He cures HSV,HPV,Cancer,low spam count and much more from the evidence I saw 💯 % sure no site effects with active immune booster

    Email him for you cure
    Odeyabangherbalhome@gmail.com
    WhatsApp/calls
    +2349015049094

    ReplyDelete
  10. Nothing is not possible in this word.
    Herpes I cried out for 8moths had a cure and was making use of the Medication that never wanted a life living on drugs, I applied Antibiotics, he prescribed for me the acyclovir(Zovirax), famciclovir (Famvir), andvalacyclovir (Valtrex).
    They never get me cured.
    My God keep blessing you and your Family. Dr
    ODEY ABANG, your a powerful Herbalist fir your work in my life
    I wish you know how I feel inside me when I was making use of does tablets that never could there get me cured. I had to search about some of my favourite blogs when I thought about Dr Odey abang from the testimonies of patients and I remember a friend who told me I should try Dr. Odey Abang herbal medicine. He told me the man can cure me,but was shy and feel its dirty taking in herbs made with African herbalists.
    You need to know I would have been cured before now since I knew him then, but still interested in letting you that was my punishment.
    Thanks reading my article, feel good and not make my mistake, I love testimonies and explanations of the new beginning is all I hope for
    Think about your live and use herbs to get you cured of your challenge on
    HIV/Aids
    SYPHILIS
    DIABETES
    CANCER
    ALL CAN BE CURED WITH MANY OTHERS BY DR. ODEY ABANG
    His email is for you so you speak to him

    Odeyabangherbalhome@gmail.com
    WhatsApp number +2349015049094

    ReplyDelete
  11. First, I want to complement this site administrator for creating this platform I frequently get cold sores(which lasts for 5-6 days on my lips and its painful both physically and mentally) .. As a bodybuilder, I basically get outbreak due to the daily pressure and heat in the body.. Recently I stumbled upon my salvation. I found a herbal remedy to cure hsv completely, in just 4weeks ..

    I got to know about Dr Utu after seeing a lady's testimony online. I reached the doctor and I ordered for herpes herbal medicine. He sent the herbs to me and I started making use of them. In just 2days, the cold sores are cleared. 4weeks after medication, I went to the hospital for test of cold sores and it was completely NEGATIVE.

    By following every prescription, i was able to cure my cold sore in less than 4weeks. 100% natural herbs no after effect.
    Note: Please do let others know if this work for you.
    The doctor's email is drutuherbalcure@gmail.com
    Note : follow all instructions accordingly..

    If you are sure that you have benefited from this African herbs be courageous to inform others.
    Thanks in advance

    ReplyDelete