JViews Chart
Tag chartView


Chart View Faces Component

The chart view faces component exposes an IlvChart as a JavaServer Faces component. It interfaces with a servlet that generates images from the IlvChart, and handles interactions with the component.

Usage

<jvcf:chartView
      id="chart"
      data="data/chart.icpr"
      style="width:800px;height:400px"
      waitingImage="data/images/wait.gif"
      resizable="true"
      imageFormat="PNG"/>

DHTML - JavaScript Types

IlvChartViewProxy

JSF Component Class

IlvChartDHTMLView



Tag Information
Tag Classilog.views.chart.faces.dhtml.taglib.IlvChartViewTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameChart View

Attributes
NameRequiredRequest-timeTypeDescription
backgroundColorfalsefalsejava.lang.StringThe background color of the generated image.
beforeSessionExpirationHandlerfalsefalsejava.lang.StringThe JavaScript code that will be called when the session is about to expire. For example to keep the session alive set this attribute to view.updateImage().
bindingfalsefalsejava.lang.StringThe value binding expression linking this component to a property in a backing bean. If this attribute is set, the tag does not create the component itself but retrieves it from the bean property. This attribute must be a value binding.
chartfalsefalsejava.lang.StringAn optional JViews chart to display. This must be a value reference returning an IlvChart component.
componentfalsefalsejava.lang.StringThe component to display. Valid values are chart or area. The default value is chart. In chart mode, the entire chart is displayed including the legend. In area mode, the legend is not displayed.
datafalsefalsejava.lang.StringThe data to display: icpr project, XML file, IlvDataSource instance value binding, ID of a data source component.
dataSourcefalsefalsejava.lang.StringThe binding to a predefined data source. See the dataSource component for more information.
dataSourceIdfalsefalsejava.lang.StringThe ID of a predefined data source. See the dataSource component for more information.
errorMessagefalsefalsejava.lang.StringThe message displayed when an error occurs while the image is being loaded.
generateImageMapfalsefalsejava.lang.StringTells the component whether it should generate an image map. The image map itself is provided by the servlet that generates the image. To be active the image map has to be visible.
heightfalsefalsejava.lang.StringThe desired height in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute.
idfalsefalsejava.lang.StringThe ID of this component.
imageFormatfalsefalsejava.lang.StringThe desired format of the image generated by the servlet. The format can be JPEG or PNG.
imageMapGeneratorfalsefalsejava.lang.StringThe value binding expression of the image map generator. This generator is invoked if the attribute generateImageMap is set to true.
imageMapGeneratorClassfalsefalsejava.lang.StringThe image map generator class name. This property is used if and only if the imageMapGenerator property is not set.
imageMapVisiblefalsefalsejava.lang.StringShows or hides the image map. See the generateImageMap attribute. When the image map is shown, the current interactor set on the view is disabled.
interactorfalsefalsejava.lang.StringThe binding to the default interactor to set on the view.
interactorIdfalsefalsejava.lang.StringThe ID of the default interactor to set on the view.
keepVisibleWindowfalsefalsejava.lang.StringWhether to keep or not the current visible window between two JSF requests. The default value is false
messageBoxfalsefalsejava.lang.StringThe binding to a message box component used to display messages.
messageBoxIdfalsefalsejava.lang.StringThe ID of a message box component used to display messages.
onCapabilitiesLoadedfalsefalsejava.lang.StringAn optional JavaScript handler called when the capabilities of the component are loaded. In this code the 'view' variable can be used and represent the DHTML view instance. 'view.JSFRef' represents the JavaScript proxy of the JSF component.
onImageLoadedfalsefalsejava.lang.StringAn optional JavaScript handler called when the image is loaded. In this code the 'view' variable can be used and represent the DHTML view instance. 'view.JSFRef' represents the JavaScript proxy of the JSF component.
partialTriggersfalsefalsejava.lang.StringThis attribute is meaningful only when the component is used inside an Apache MyFaces Trinidad application.

The IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too.

Separate multiple triggers with a space.

Trigger identifiers are relative to the source component for non-NamingContainer components and relative to the parent component for NamingContainer components. Identifiers must account for NamingContainers. You can use a single colon to start the search from the root, or use multiple colons to move up through the NamingContainer. For example, for a non-NamingContainer component, "::" will search from the parent naming container, ":::" will search from the grandparent naming container, etc. For a NamingContainer component, "::" will search from the parent component's parent naming container. ":::" will search from the parent component's grandparent naming container.

projectfalsefalsejava.lang.StringThe URL to a Charts Designer project.
resizablefalsefalsejava.lang.StringSets whether the chart view can be resized or not.
accessiblefalsefalsejava.lang.StringSets whether the chart view is accessible or not.
hotkeysfalsefalsejava.lang.StringSets the keyboard hotkeys for the view
servletfalsefalsejava.lang.StringThe URL or the class name of the servlet that provides the image to display.
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejava.lang.StringSpace separated list of CSS style class(es) to be applied when this element is rendered.
styleSheetfalsefalsejava.lang.StringThe URL of a CSS file used to style the chart.
styleSheetsfalsefalsejava.lang.StringThe comma separated URLs of the CSS files used to style the chart.
typefalsefalsejava.lang.StringThe type of the chart. The type must be one of the following values: Cartesian, polar, radar or pie.
updateIntervalfalsefalsejava.lang.StringThe interval in seconds between two automatic updates of the image. 0 disables the feature.
waitingImagefalsefalsejava.lang.StringThe URL of the image displayed when the component is waiting for a server response. The image may be an animated GIF.
widthfalsefalsejava.lang.StringThe desired width in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute.
XZoomFactorfalsefalsejava.lang.StringSince JViews 6.5 this attribute is deprecated. Use the attribute xZoomFactor instead.
xZoomFactorfalsefalsejava.lang.StringThe zoom factor in x applied by the zoom actions on the chart.
YZoomFactorfalsefalsejava.lang.StringSince JViews 6.5 this attribute is deprecated. Use the attribute yZoomFactor instead.
yZoomFactorfalsefalsejava.lang.StringThe zoom factor in y applied by the zoom actions on the chart.

Variables
No Variables Defined.


© Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.