Java Code Examples for javax.faces.context.FacesContext.isPostback()

The following are Jave code examples for showing how to use isPostback() of the javax.faces.context.FacesContext class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: myfaces-trinidad   File:   Source Code and License Vote up 5 votes
public void renderView(FacesContext context, UIViewRoot view) throws IOException
  // TRINIDAD-2347 - make sure that the session is 'touched' before rendering a page with Facelets
  if (!context.isPostback() && _isFacelets())
  super.renderView(context, view);