ilog.views.faces.dhtml.servlet
Class IlvFacesSelectActionListener

java.lang.Object
  extended by ilog.views.faces.dhtml.servlet.IlvFacesSelectActionListener
All Implemented Interfaces:
IlvDHTMLConstants, IlvFacesConstants, ServerActionListener, EventListener
Direct Known Subclasses:
IlvFacesDiagrammerSelectAction

public class IlvFacesSelectActionListener
extends Object
implements ServerActionListener, IlvDHTMLConstants

This server action is executed out of the JSF lifecycle, in the image generating servlet.
Its purpose is to translate this action event into a JSF valueChangeEvent and to invoke the value change listener passed as parameter with this translated event.

Since:
JViews 7.5
See Also:
IlvFacesObjectSelectInteractor

Field Summary
static String ACTION_NAME
          The action name used to identify the select actions.
 
Fields inherited from interface ilog.views.faces.dhtml.IlvDHTMLConstants
AUTO_SUBMIT, BACKGROUND_COLOR, CAPABILITIES_LOADED_HANDLER, COMPONENT, DO_ACTION_ON_BG_DESELECT, ERROR_MESSAGE, GENERATE_IMAGE_MAP, IMAGE_FORMAT, IMAGE_LOADED_HANDLER, IMAGE_MAP_GENERATOR, IMAGE_MAP_GENERATOR_CLASS, IMAGE_MAP_VISIBLE, IMAGE_SERVLET_CONTEXT, INVOCATION_CONTEXT, JSF_CONTEXT, ON_CLICK, ON_SELECTION_CHANGED, PORTLET_CONTEXT_KEY, PORTLET_SESSION_KEY, REPLACE_PATTERN, RESIZABLE, SESSION_EXP_HANDLER, SUBMITTED_VALUE, WAITING_IMAGE
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
Constructor Summary
IlvFacesSelectActionListener()
          Creates a new IlvFacesSelectActionListener instance.
 
Method Summary
 void actionPerformed(ServerActionEvent event)
          Performs the action requested from the client side.
protected  IlvFacesView createFakeView(IlvManagerView view)
          Returns the fake JSF view component used in the fake value change event.
protected  IlvFacesObjectSelectedFinder createFinder()
          Returns the default object finder that will be used to retrieve the selected object.
protected  FacesContext getFacesContext(javax.servlet.http.HttpServletRequest request)
          Returns the faces context that will be used to resolve the value change listener method binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_NAME

public static final String ACTION_NAME
The action name used to identify the select actions.

See Also:
Constant Field Values
Constructor Detail

IlvFacesSelectActionListener

public IlvFacesSelectActionListener()
Creates a new IlvFacesSelectActionListener instance.

Method Detail

actionPerformed

public void actionPerformed(ServerActionEvent event)
                     throws javax.servlet.ServletException
Performs the action requested from the client side.

Specified by:
actionPerformed in interface ServerActionListener
Parameters:
event - The server action event.
Throws:
javax.servlet.ServletException

createFinder

protected IlvFacesObjectSelectedFinder createFinder()
Returns the default object finder that will be used to retrieve the selected object.
This method is called if no finder is specified in the action request.
This implementation return a new IlvFacesObjectSelectedFinder instance.

Returns:
The object finder.

createFakeView

protected IlvFacesView createFakeView(IlvManagerView view)
Returns the fake JSF view component used in the fake value change event.

Returns:
The fake JSF view component.
Since:
JViews 8.0

getFacesContext

protected FacesContext getFacesContext(javax.servlet.http.HttpServletRequest request)
Returns the faces context that will be used to resolve the value change listener method binding.

Parameters:
request - The servlet request.
Returns:
The faces context.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.