|
|
|
Posted
13 days
ago
by
nore...@blogger.com (Mike Brock)
As you know, Errai is sponsored by JBoss and Red Hat. Errai and other great Red Hat open source technologies will be appearing at some of our fantastic upcoming community events. Here's an overview of some opportunities to learn about new
... [More]
technologies and mingle with the development teams from the plethora of great software we develop! --- Red Hat Developer Exchange:Red Hat Connect Developer Exchange is heading back to Boston. You won't want to miss this one-day event where you can learn more about Red Hat developer tools and technologies. From gcc to Java to scripting languages, from traditional models to devops--You'll get the chance to connect with fellow developers, share real-world challenges, and solve mutual problems through collaboration. 5 tracks and 25 sessions will cover important topics, including: • Programming on OpenShift Online PaaS • OpenShift Enterprise and Java • Languages and tools for mission-critical development • Get more out of Red Hat Enterprise Linux tools Red Hat Developer Exchange Agenda:http://www.redhat.com/developerexchange/agenda/ JUDCon:The activities start Sunday evening June 9th with the JUDCon, CamelOne and Red Hat Exchange reception. Then Monday and Tuesday, there will be 3 tracks of sessions, and 2 workshop tracks as well. The evening will also include a JBoss Core Developer panel, a live recording of the JBoss Community Asylum, and yes, beer. The JBoss Users and Developers Conferences are developer gatherings held around the Globe to give JBoss users the chance to talk to and collaborate with Java contributors and core developers. The core JBoss developers, along with the open source community, create and support the projects that drive innovation and help lead development in standards bodies like the Java Community Process, the Apache Software Foundation, OASIS, W3C and other open standards organizations. Many of these projects become the upstream for Red Hat JBoss products. 3 tracks and 33 sessions will cover topics including: • Java and Java EE App Development • Mobile Development • Drools, jBPM, Fuse, ActiveMQ, Infinispan • and many more6 workshops providing hands-on labs covering: • Ceylon taught by Gavin King and Stephane Epardaud • Infinispan and JBoss Data Grid cross-datacenter replication • CDI, Forge and Errai • and many more.JUDCon:2013 Boston Agendahttp://www.jboss.org/events/JUDCon/2013/unitedstates/agenda
CamelOne:CamelOne is designed specifically for professionals using open source integration and messaging solutions in the enterprise and will feature a combination of keynote presentations, educational sessions and networking events that will enable attendees to meet, learn and share ideas with open source integration experts. Founders, committers and users of Apache Camel, ServiceMix, ActiveMQ and CXF enjoyed a great Meet and Greet in the Exhibit Hall from 6:30 to 8:30. Stop by and mingle with your community over hors d’oeuvres and drinks!
CamelOne Agendahttp://www.camelone.com/apache-camel-conference-2013/camelone_agenda_2013/ [Less]
|
|
Posted
about 1 month
ago
by
nore...@blogger.com (Christian Sadilek)
We've just released Errai 2.3.0.CR1. This is a maintenance release fixing all reported bugs in 2.2.0.Final (see the release notes for details). Errai 2.3 also upgrades all components to GWT 2.5.1. Development on Errai 3
... [More]
is already well underway and we will soon have a first milestone release available. There's lots to look forward to in Errai 3:
Automatic data synchronization (with support for JPA entities and operational transform)First class mobile support for deploying Errai apps in CordovaBuilt-in clustering support for Errai BusImproved data binding, navigation and templating systemAsynchronous Bean Manager, allowing client-side code splitting Thanks everyone for reporting problems and your feedback! Please keep it coming. In this case, more is more! [Less]
|
|
Posted
2 months
ago
by
nore...@blogger.com (Erik-Jan de Wit)
As you may already know, we are also focusing on making mobile applications with Errai. We have something that will make your life really easy. Inspired by the Cordova CLI, we have created something similar that is Maven based. How does it
... [More]
workYou want to create a Cordova based Errai project, then all you have to do is add this plugin to your maven build. The plugin will create a config.xml in your project folder. In this configuration file you can set settings, like icon and application name. After that, performing a build will copy the generated web files into the Cordova platforms and these will get built. Now you have integrated mobile platform builds into your regular release cycle. You can run the simulator with the generated binaries all out of your maven project.
InstallationCreate an Errai project with one of the archetypes and add the following to your pom Now when you perform a maven install your Android and iOS projects also get built. To see the result of that in the simulator, you just use a simple maven command: mvn cordova:emulator -Dplatform=android This will start the Android emulator for your project. It's still work in progress, but if you want to become an early adopter, just put this repo in your pom and you are ready to go Let me know what you think of it and what kind of features you would like to see in there. [Less]
|
|
Posted
2 months
ago
by
nore...@blogger.com (Mike Brock)
We really inundated JavaOne with Errai this past year. Here's a collection of booth talks we gave at the conference:
Errai UI
Errai JPA and JAX-RS
Errai CDI (In the Browser!)
|
|
Posted
3 months
ago
by
nore...@blogger.com (Christian Sadilek)
If you haven't seen our JavaOne talk on Errai yet. Here's another chance. All JavaOne videos have been posted to YouTube. This means you can sync it to your phone or tablet for offline viewing or embed it in your own blog *hint*
... [More]
*hint*!
Taming the Spaghetti: Rich Web Applications with Errai
In this talk, you will learn - how to create and send push messages (CDI events) from server to client and back - how to use the same JPA entities in the browser and on the server - how to create typesafe, refactorable JAX-RS clients in the browser - and about the underlying technologies within Errai that make all this possible [Less]
|
|
Posted
3 months
ago
by
nore...@blogger.com (Christian Sadilek)
Today's spotlight is on yet another new feature in Errai 3: RPC batching. GWT and Errai shine in big web applications that implement complex use cases. These use cases often require multiple interactions with the server. RPC batching allows
... [More]
for batched invocations of remote methods that will be executed using a single server round-trip. This is useful for reducing the number of simultaneous HTTP connections and at the same time allows for reusing and combining fine-grained remote services. Errai offers a lightweight and boilerplate-free RPC mechanism. All details can be found here. Simply inject a BatchCaller instead of a Caller<T> to make use of batched remote procedure calls. The rest of the API should be familiar if you already use Errai. Here's an example:
Only after sendBatch is called will the remote methods get executed. An additional RemoteCallback can be provided to the sendBatch call which will be invoked when all remote calls have completed in success. Consequently, an additional ErrorCallback can be provided which will get executed for all remote calls that have completed in failure.
The credits for inspiring this feature go to our invaluable community member Josh Blinick. The API might still change as we're looking for feedback! If you have ideas or any feedback, please comment. Here's the link to the JIRA. [Less]
|
|
Posted
3 months
ago
by
nore...@blogger.com (Mike Brock)
Yet another feature finds its way into the 3.0 branch today. And that feature is called style bindings; a feature designed to make your Errai UI-based apps even easier to work with. When developing moderately-complex web applications
... [More]
with Errai, you may find yourself needing to do quite a bit of programmatic style changes. A common case being: showing or enabling controls only if a user has the necessary permissions to use them. One part of the problem is securing those features from being used, and the other part -- which is an important usability consideration -- is communicating that state to the user.
That's where style bindings come in.
Let's start with the example case I just described. We have a control that we only want to be visible if the user is an admin. So the first thing we do is create a style binding annotation.
That was pretty simple. All we did was create an annotation named Admin, and annotate it with the new @StyleBinding annotation.
This now means that @Admin is a style binding. Let's see how we can apply it.
Consider the following Errai UI template class
Here we have a contrived example of a button that deletes something. In this case, if the user is not an admin, which we're checking using a call to SessionManager.isAdmin(), we hide the button from view.
Although, we can potentially refactor this to reduce code re-use. If we're using the @Admin binding throughout our application, we can actually move the applyAdminStyling() method to a common location. Let's move it to the SessionManager.
When we remove that method from our Errai UI component, we get a far more elegant set of code:
Now, when we apply the @Admin rule to any Errai UI @DataField, we automatically inherit this functionality.
The additional bonus comes when using this in conjunction with Errai Databinding. Any Errai UI component which uses @AutoBound, will get live updating of the style rules for free, anytime the model changes. Allowing dynamic styling based on user input and other state changes.
As always, if you're interested, checkout Errai 3.0-SNAPSHOT if you're ready to try and get dirty with the latest and greatest features [Less]
|
|
Posted
4 months
ago
by
nore...@blogger.com (Mike Brock)
A brand new feature to find it into the 3.0 branch these past few days is our new generator parallelization system. That's right; all the code generating magic of Errai can now be split across those idle cores of your computer to greatly increase
... [More]
compile and development mode speed.
Right now only three generators support this parallelization: IOC/CDI, Marshalling and RPC. But we'll get them all plugged in soon.
The new approach also reduces the amount of redundant work that was previously done as each generator ran. On my development laptop, we're seeing improvements in code generation time of up to 60%.
This optimization also comes on the heels of some fixes to the caching behaviour in our internal class scanning API which should also greatly benefit devmode speed.
ErraiBus Improvements
The performance optimization train is in full swing all around the framework. The new ErraiBus V3 Protocol is now fully implemented and working in the 3.0 branch. It provides a new ultra-lightweight association protocol (apps load faster), less management traffic (less chatty), and a streamlined RPC protocol (less call latency).
Another feature under development is ErraiBus support for SSE (Server-Sent Events) which will also significantly reduce bandwidth usage on the bus.
SSE is essentially a standardization of COMET built right into the browser. It allows servers to keep a port open and return a stream of responses without the needless overhead of repeated GET and response headers.
Look for this feature showing up in the coming weeks. [Less]
|
|
Posted
4 months
ago
by
nore...@blogger.com (Mike Brock)
We have a growing community of users, and we want to know who you are! If you haven't already, put us on your Ohloh stack. Secondly, remember that you can always hop on IRC at irc.freenode.net on channel #errai to get help/support or just to
... [More]
mingle with Errai community!
Thirdly, this is the time to start hearing feature requests for Errai 3.0 as we've now begun that effort in earnest.
Happy coding! [Less]
|
|
Posted
4 months
ago
by
nore...@blogger.com (Christian Sadilek)
Thank you for all the feedback and bug reports in the last month. We have just released Errai 2.2.0.Final! Check out the release notes for all the details! Now we're all looking forward to get back into R&D mode and work on some exciting
... [More]
new features for Errai 3. Stay tuned for updates on client-server data synchronization and more upcoming mobile features.
Here's a screencast demoing the biggest new features in Errai 2.2: HTML5 templating, data binding, client-side JPA persistence. Also make sure to check out the new page navigation module!
Errai To-Do List from JBoss Developer on Vimeo. [Less]
|