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: ViewDeclarationLanguageFactoryImpl.java   Source Code and License Vote up 5 votes
@Override
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())
  {
    context.getExternalContext().getSession(true);
  }
  super.renderView(context, view);
}