O'Reilly logo

JBoss RichFaces 3.3 by Demetrio Filocamo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The contact detail

For the third column, we would like to show three different statuses:

  1. The "No contact selected" message when no contact is selected (so the property is null)
  2. A view-only box when we are not in the edit mode (the property selectedContactEditing is set to false)
  3. An edit box when we are in the edit mode (the property selectedContactEditing is set to true)

So, let's open the home.xhtml page and insert the third column inside the panel grid with the three statuses:

<a:outputPanel id="contactDetail"> <a:outputPanel rendered="#{homeSelectedContactHelper. selectedContact==null}"> <rich:panel> <h:outputText value="#{messages['noContactSelected']}"/> </rich:panel> </a:outputPanel> <a:outputPanel rendered="#{homeSelectedContactHelper. selectedContact!=null ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required