htmlCoordinatesGrid.jspx 1.54 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.CoordinatesGridRenderer"
    baseclass="org.richfaces.renderkit.html.CoordinatesGridRendererBase"
    component="org.richfaces.component.UICoordinatesGrid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ajax4jsf.org/cdk/template ">

    <h:styles>/org/richfaces/renderkit/html/css/richfaces.coordinatesGrid.xcss</h:styles>
    <h:scripts>
        new org.ajax4jsf.javascript.PrototypeScript(),
        new org.ajax4jsf.javascript.AjaxScript(),
        /org/richfaces/renderkit/html/scripts/jquery/jquery.js,
        /org/richfaces/renderkit/html/scripts/richfaces.coordinatesGrid.js
    </h:scripts>


    <f:clientid var="clientId"/>

    <jsp:scriptlet>
        <![CDATA[
        org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context, component);
        variables.setVariable("selectableStyleClass",((Boolean)component.getAttributes().get("selectable"))?" rf-cg-se":"");
        ]]>
    </jsp:scriptlet>
    <div id="#{clientId}" class="rf-cg#{selectableStyleClass} #{component.attributes['styleClass']}" style="#{component.attributes['style']}">
        <script type="text/javascript">
            <f:call name="writeInitFunction"/>
        </script>
    </div>
</f:root>