Skip to main content

Manfred Riem

 

Weblogs

You might have heard some folks in the JavaEE community scream "Glassfish is dead!"

As I work on 2 technologies that are going to end up in JavaEE 8 I can say that for me that is certainly...

When writing an article about HtmlUnit and Maven integration testing I never expected that article to become as popular as it has.

Most of my blog entries have a modest number of reads,...

Software is an interesting thing.

We currently live in a very fast paced society where changes seem to come and go. However that is really only true for consumer electronics. Most systems...

The JavaEE 8 process is underway and JSF 2.3 is making progress.

We have just released our 2nd milestone.

See...

Now that both JSRs are in full swing I am going to offer you all a bit of a different perspective between the 2 technologies.

As I have stated before I view them both complementary to each...

The MVC JSR is progressing nicely and we have started publishing SNAPSHOT builds.

If you want to try them out grab the API JAR from...

Just like the previous blog entry "JSF 2.3 Using a CDI managed Converter" you can now do the same thing with Validators.

So how does that look in code?

...

Although a converter is considered an attached object (part of the view state) commonly people ask support for CDI injection into a converter. Since we did not want to upset the original contract...

Happy New Year to all!

Enjoy!

As we are working towards our first JSF 2.3 milestone release I want to tell everyone once it is out please start testing. With your help we are able to catch so much more before we ship. This is...

Today I participated in a phone call on Adopt-a-JSR for the MVC 1.0 specification.

While we do not have a whole lot of things that can be worked upon by a JUG at the moment I do want to...

The @Resources annotation makes it possible to define resources that you are going to lookup at runtime. The example describes a way to lookup a datasource that is mentioned in the @Resources...

With the @Resource annotation you define the resource you want to inject. Note this annotation is an older style annotation. Going forward the recommendation is to use the CDI @Inject annotation...

With the @PreDestroy annotation you annotate a single method in your class that you want to be called just before your object (EJB, JSF managed bean, CDI bean) is taken out of service.

In...

The @PostConstruct annotation makes it possible to run initialization code just before something (EJB, JSF managed bean, CDI bean) is put into service.

In code

...

And it is tutorial time!

Where are the JavaEE tutorials for each of the JavaEE versions?

If you want to find a specific version of the JavaEE API documentation the following links connect you to them:

Another CDI alignment issue done

In code

@ViewMap
@Inject
Map viewMap;

In words you can now inject the view map for use in your...

The following spec issues were addressed

#1333 - Support @Inject for UIViewRoot
#1332 - Let CDI handle #{view}
#1331 - Let CDI handle #{application}

And the following...

And now you can inject the UIViewRoot

In code

@Inject
UIViewRoot viewRoot;

Enjoy!

Nothing really fancy, but #{application} EL resolving is now done using a 2.3 CDI producer.

Note there won't be @Inject support for this as it is not referring to a specific typed artifact...

While it looks like not a whole lot has been going on issue wise some additional work not covered by specification issues has be done

a) Javadoc cleanup for JavaSE 8
b) Apply diamond...

And the MVC specification project is now public at http://mvc-spec.java.net/ so we are on the way!

Enjoy!

A quick run down on the issues fixed since last time

#1325 - Let CDI handle #{applicationScope}
#1311 - Let CDI handle #{facesContext} EL resolving
#1323 - Support @Inject for...

Another CDI alignment issue done

In code

@ApplicationMap
@Inject
Map applicationMap;

In words you can now inject the application...

Starting from the new 2.3 SNAPSHOT builds you can now do

@Inject ExternalContext externalContext;

Note you will need to make sure you use the...

Starting from the new 2.3 SNAPSHOT builds you can now do

 @Inject FacesContext facesContext;

Note you will need to make sure you use the latest...

A number of spec issues have been handled for the 2.3 cycle and I would like to call them out. Note today's list is going to be a bit longer than going forward. I intend to write up a small blog...

The first batch of MVC expert group members have been determined. For the ones that were added to the EG, welcome aboard! For the ones that were declined, please be aware there are multiple ways...