Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by Community: GlassFish

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Java Enterprise

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 that consumers are hardly aware of run stacks that are a couple to several years old and for those it is not economical to change at the rate consumer electronics does. Mojarra is a piece in such a stack. As...
on Apr 30, 2015
The JavaEE 8 process is underway and JSF 2.3 is making progress. We have just released our 2nd milestone. See https://javaserverfaces.java.net/2.3/releasenotes.html for the release notes Download it from https://javaserverfaces.java.net/2.3/download.html Enjoy!
on Apr 9, 2015
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 other! I want to talk a bit about the actual work of doing the JSRs themselves. As part of the JSR we deliver a reference implementation, but in reality does the work stop there? No, it surely does not. For...
on Mar 13, 2015
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 https://maven.java.net/content/repositories/snapshots/javax/mvc/javax.mv... and the Implementation JAR from https://maven.java.net/content/repositories/snapshots/com/oracle/ozark/1... For some samples see the test directory of the Git repo at it://java.net/ozark~...
on Feb 18, 2015
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?   @FacesValidator(value = "myValidator", managed = true)  public class MyValidator implements Validator {     @Inject     MyModel model;    ..  } Note in this example...
on Jan 16, 2015
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 of what a converter is we had to look at how we can best support the requested use case. We already had an annotation (@FacesConverter) that was being used to define a converter programmatically. To...
on Jan 15, 2015
Happy New Year to all! Enjoy!
on Jan 1, 2015
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 why we are going to be doing milestone releases. So once the first one is out try it out! I hope you all will make testing your JSF application with JSF 2.3 a New Years resolution! Enjoy!
on Dec 24, 2014
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 point out that once we start publishing SNAPSHOT releases and milestones we will be looking forward to your contributions! I will tweet and blog about that day and hopefully it will be soon, but as I also...
on Dec 19, 2014
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 annotation on the class.   @Resources(value={    @Resource(name="ShoppingCartDB", type=javax.sql.DataSource),    @Resource(name="ShoppingCartMail", type...
on Dec 18, 2014
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. In code   @Resource  UserTransaction utx; Enjoy!
on Dec 15, 2014
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 code   @PreDestroy  public void destroy() {    // put your destroy code here.  } Enjoy!
on Dec 13, 2014
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   @PostConstruct  public void init() {    // put your initialization code here.  } Note the the method annotated with @PostConstruct runs only once! So if you are exposing a session bean that gets...
on Dec 12, 2014
And it is tutorial time! Where are the JavaEE tutorials for each of the JavaEE versions? JavaEE 5 tutorial JavaEE 6 tutorial JavaEE 7 tutorial Enjoy!
on Nov 6, 2014
If you want to find a specific version of the JavaEE API documentation the following links connect you to them: JavaEE 5 API documentation JavaEE 6 API documentation JavaEE 7 API documentation Enjoy!
on Nov 5, 2014
Another CDI alignment issue done In code @ViewMap@InjectMap viewMap; In words you can now inject the view map for use in your CDI managed bean. Enjoy!
on Oct 31, 2014
The following spec issues were addressed #1333 - Support @Inject for UIViewRoot #1332 - Let CDI handle #{view} #1331 - Let CDI handle #{application} And the following other issues that have a 2.3 impact were addressed #3425 - Apply Java SE 7 Strings in switch #3427 - Apply Java SE 7 multi-catch #3444 - Apply Java SE 7 multi-catch: part 3 of 3 #3443 - Apply Java SE 7 multi-catch: part 2 of 3 #3427...
on Oct 30, 2014
And now you can inject the UIViewRoot In code @InjectUIViewRoot viewRoot; Enjoy!
on Oct 29, 2014
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. Enjoy!
on Oct 27, 2014

NetBeans

I had the pleasure to review JavaServer Faces: Introduction by Example by Josh Juneau which has been published by Apress in December 2014. The highlight of the book was the simplicity with which Josh has covered some of the most complicated topics related to JavaServer Faces (JSF). I like how smoothly and seamlessly he can transition from the simple recipes to the more involved and detailed...
on Jan 6, 2015