jahiaHtml
Tag iconButton


Draw a graphic rollover button defined by three parameters.

NOTE: SAME CODE AS jahiaButtonTag.java ...

Example :

<jahiaHtml:iconButton img="cancel" href="javascript:sendFormCancel();" altBundle="engine" altKey="org.jahia.altCloseWithoutSave.label" />


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

Attributes
NameRequiredRequest-timeTypeDescription
imgtruetruejava.lang.Stringthe image button start name defined in the resource bundle properties files.

For example if the button defined in the resource bundle file is 'sortOffButtonImg' and 'sortOnButtonIMg', the start name is 'sort'. This tag will threfore automatically generate the end of string identifier.

hreftruetruejava.lang.Stringthe anchor href parameter.

This is the anchor tag <A> "href" parameter.

altfalsetruejava.lang.StringDefines a short description of the image.

Correspond to the <IMG> tag "alt" parameter.

altKeyfalsetruejava.lang.Stringthe key in the resource bundle for the internationalized version of the 'alt' text.

This key uniquely identifies the locale-specific alt text in the associated 'altBundle' bundle appropriate for the current user's locale.
Note that if altKey's value cannot be found, the value in the 'alt' attribute (if defined) is used instead. If 'altKey' and 'alt' are both defined, then precedence is given to 'altKey'.

altBundlefalsetruejava.lang.Stringthe identifier of the resource bundle where altKey's value is looked up.

If the 'altBundle' attribute isn't specified but 'altKey' is, then the default resource bundle is used instead.
Resource bundles contain key/value pairs for specific locales and are used for internalization. Go here for more details.

Note that Jahia finds the .properties file associated to a given bundleKey by doing a lookup in resourcebundles_config.xml located in \WEB-IN\etc\config. The resourcebundles_config.xml file is generated automatically during template deployment. For example, given the the following resourcebundles_config.xml:


<?xml version="1.0" encoding="UTF-8" ?>
 <registry>
       <resource-bundle>
           <key>myjahiasite_CORPORATE_PORTAL_TEMPLATES</key>
           <file>jahiatemplates.Corporate_portal_templates</file>
       </resource-bundle>
</registry>

Then given a bundleKey of myjahiasite_CORPORATE_PORTAL_TEMPLATES, the key/value lookup will be in Corporate_portal_templates.propreties (located in directory \WEB-INF\classes\jahiatemplates) for the default language; or for example in Corporate_portal_templates_de.propreties if the current user's locale is German.

onclickfalsetruejava.lang.StringDefines the "onclick" tag <A> event.

.


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.