htmlWatermark.jspx
1.24 KB
<?xml version="1.0" encoding="UTF-8"?>
<f:root xmlns:f="http://ajax4jsf.org/cdk/template" xmlns:c="http://java.sun.com/jsf/core"
xmlns:ui="http://ajax4jsf.org/cdk/ui"
xmlns:u="http://ajax4jsf.org/cdk/u" xmlns:x="http://ajax4jsf.org/cdk/x" xmlns:jsp="http://ajax4jsf.org/cdk/jsp"
class="org.richfaces.renderkit.html.WatermarkRenderer"
baseclass="org.ajax4jsf.renderkit.HeaderResourcesRendererBase"
component="org.richfaces.component.UIWatermark" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ajax4jsf.org/cdk/template ">
<h:scripts>
/org/richfaces/renderkit/html/scripts/jquery/jquery.js,
/org/richfaces/renderkit/html/scripts/jquery.watermark.js
/org/richfaces/renderkit/html/scripts/richfaces.watermark.js
</h:scripts>
<f:clientid var="clientId"/>
<jsp:scriptlet>
<![CDATA[
String target = getUtils().clientId(context,component.getParent());
variables.setVariable("for",target);
]]>
</jsp:scriptlet>
<script type="text/javascript" id="#{clientId}">
RichFaces.Watermark('#{for}', '#{component.attributes["value"]}', {className:'#{component.attributes["styleClass"]}'});
</script>
</f:root>