content
Tag switchModeRollover


draws the button to switch between view, preview and edit mode with added support for rollover-enabled buttons.

Basically a <content:switchModeButton> tag with added support for rollover-enabled buttons. The button displays the appropriate image depending if staging is active and the user's current viewing mode. This button is only displayed when the user is logged, or when the guest was set write access on the current page.
One simply has to give it the names of the pictures used to build the buttons in each state. These names are declared in attributes in the following format :

Example :

<content:switchModeRollover viewOn="view_on.gif" viewOff="view_off.gif" editOn="edit_on.gif" editOff="edit_off.gif" previewOn="preview_on.gif" previewOff="preview_off.gif" />


Tag Information
Tag Classorg.jahia.taglibs.button.SwitchModeRolloverTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
imgdirfalsetruejava.lang.Stringthe relative path to the directory that contains the images (relative to the JSP page).

Defaulted to "images".

viewOntruetruejava.lang.Stringthe image displayed to give access to the View mode, when the mouse is over the button.

viewOfftruetruejava.lang.Stringthe image displayed to give access to the View mode, when the mouse is NOT over the button.

editOnfalsetruejava.lang.Stringthe image displayed to give access to the Edit mode, when the mouse is over the button.

editOfffalsetruejava.lang.Stringthe image displayed to give access to the Edit mode, when the mouse is NOT over the button.

previewOnfalsetruejava.lang.Stringthe image displayed to give access to the Preview mode, when the mouse is over the button.

previewOfffalsetruejava.lang.Stringthe image displayed to give access to the Preview mode, when the mouse is NOT over the button.

widthfalsetruejava.lang.Stringthe image width.

in pixels or %.

heightfalsetruejava.lang.Stringthe image height.

in pixels or %.


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.