RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.util
Class ApplicationUtils

java.lang.Object
  extended by org.richfaces.photoalbum.util.ApplicationUtils

public class ApplicationUtils
extends Object

Utility class for actions, related to direct access or modification of current request

Author:
Andrey Markhel

Method Summary
static void addFacesMessage(String componentId, String summary, String detail)
          Utility method for adding FacesMessages to specified component
static void addToRerender(String componentId)
          Utility method for programmatically adding specified component to rerender after AJAX request complete.
 void fireCheckUserExpiredEvent()
           
static javax.servlet.http.HttpSession getSession()
          Utility method for get reference to current HTTPSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addFacesMessage

public static void addFacesMessage(String componentId,
                                   String summary,
                                   String detail)
Utility method for adding FacesMessages to specified component

Parameters:
componentId - - component identifier
message - - message to add

getSession

@Produces
@Preferred
public static javax.servlet.http.HttpSession getSession()
Utility method for get reference to current HTTPSession

Returns:
session object

addToRerender

public static void addToRerender(String componentId)
Utility method for programmatically adding specified component to rerender after AJAX request complete.

Parameters:
componentId - - id of component should be added to rerender

fireCheckUserExpiredEvent

public void fireCheckUserExpiredEvent()

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.