|
HeadTag
The "head" tag renders required JavaScript code and necessary css styles.
IntroductionThe "head" tag renders required JavaScript code to configure jQuery and is required in order to use any of the tags included in the jQuery plugin. SamplesHead tag for base AJAX calls<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head/>
</head>
<body>
</body>
</html>Head tag for AJAX calls, Effects and WidgetsThe "locale" attribute configures jQuery locale for datepicker. Default is "en" you can use all locales that are bundled with jQuery. e.g. "de, "fr", "ja", ... <%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head locale="de" jqueryui="true"/>
</head>
<body>
</body>
</html>ThemesBase ThemesBuilt in themes from Plugin
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head locale="de" jqueryui="true" jquerytheme="redmond"/>
</head>
<body>
</body>
</html>Custume ThemesCreate and Download your own Theme with jQuery ThemeRoller Create a folder in your WebRoot path template/themes/mytheme and copy following files from the downloaded theme into it.
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head locale="de" jqueryui="true" jquerytheme="mytheme" customBasepath="template/themes"/>
</head>
<body>
</body>
</html>Attributes
|
Sign in to add a comment