Skip to main content

Manfred Riem

I love working with a broad range of technologies. At work it is mostly JavaEE and JavaSE technologies, as a hobby I do some Java on devices.

 

mriem's blog

JSF Tip #28 - Turning logging on JSF up

Posted by mriem on October 28, 2013 at 6:46 AM PDT

Sometimes when you are working with JSF you might need to understand what is happening beneath the covers. It could be because you think a component is misbehaving and you want to make sure that is the case before you file a bug. To facilitate this you can turn the logging up and in Mojarra there are several loggers that you can use.

The following is a non-exhaustive list:

JPA Tip #2 - Make the underlying SQL show up in your logs

Posted by mriem on October 27, 2013 at 4:23 PM PDT

If you are having a problem with your JPA queries and you are trying to understand what SQL queries it actually sends below the covers you can configure the JPA runtime to show the actual SQL statements it sends over. How? Well for EclipseLink you would add the following to your persistence.xml file.

  <property name="eclipselink.logging.level" value="FINEST"/>

Mojarra 2.2.4 was released

Posted by mriem on October 25, 2013 at 9:30 PM PDT

For you folks following this blog be aware Mojarra 2.2.4 was released a little while ago!

Mojarra 2.1.26 and 2.2.3 have been released

Posted by mriem on September 6, 2013 at 3:33 PM PDT

For those of you that follow my blog you know I am working on the JSF reference implementation (Mojarra) and we have just released 2.1.26 and 2.2.3. Enjoy!

JavaEE 7 Tech Kit

Posted by mriem on August 15, 2013 at 2:58 PM PDT

Are you interested in JavaEE 7 but do not know where to start? Have a look at the JavaEE 7 Tech Kit!

JSF Tip #27 - Do not put code with side effects in a getter method

Posted by mriem on July 31, 2013 at 11:52 AM PDT

What is wrong with the code below?

  @Named
  @RequestScoped
  public class ExampleBean implement Serializable {

    public List getItems() {
      ArrayList items = new ArrayList();
      items.add("TEST1");
      items.add("TEST2");
      return items;
    }
  }

JSF Samples Update

Posted by mriem on April 5, 2013 at 12:21 PM PDT

More programmer to programmer samples on the JSF Samples Github repo. Follow this link.

JSF 2.2

Annotated Flow Enter
Enter and Exit Flow
Passthrough
Style and Layout Resource Library Contract
View-based Resource Library Contract

Emjoy!

JSF Samples

Posted by mriem on March 29, 2013 at 7:18 AM PDT

If you like from programmer to programmer samples you'll love my new GitHub javaserverfaces-samples repo. Follow this link

JSF is going spec Stateless

Posted by mriem on February 28, 2013 at 8:22 AM PST

Just wanted to let you all know that the changes to support stateless in JSF are going to be making it into the official JSF 2.2 specification and as such will be supported by all JSF implementations. Enjoy!

JSF Tip #26 - JSF is going Stateless

Posted by mriem on February 8, 2013 at 7:03 AM PST

If you have wanted JSF not to store any state now is your chance to try out the stateless mode of JSF.

It is as easy as doing the following:

<f:view transient="true">
  Your regular content
</f:view>

And voila you are running stateless.

If you decide you do want some state to be kept at the server you can use the @xxxScoped annotations on your beans